package
0.8.7
Repository: https://github.com/mensatt/backend.git
Documentation: pkg.go.dev

# Functions

And groups predicates with the AND operator between them.
ByCreatedAt orders the results by the created_at field.
ByEmail orders the results by the email field.
ByID orders the results by the id field.
ByPasswordHash orders the results by the password_hash field.
ByUpdatedAt orders the results by the updated_at field.
CreatedAt applies equality check predicate on the "created_at" field.
CreatedAtEQ applies the EQ predicate on the "created_at" field.
CreatedAtGT applies the GT predicate on the "created_at" field.
CreatedAtGTE applies the GTE predicate on the "created_at" field.
CreatedAtIn applies the In predicate on the "created_at" field.
CreatedAtLT applies the LT predicate on the "created_at" field.
CreatedAtLTE applies the LTE predicate on the "created_at" field.
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
Email applies equality check predicate on the "email" field.
EmailContains applies the Contains predicate on the "email" field.
EmailContainsFold applies the ContainsFold predicate on the "email" field.
EmailEQ applies the EQ predicate on the "email" field.
EmailEqualFold applies the EqualFold predicate on the "email" field.
EmailGT applies the GT predicate on the "email" field.
EmailGTE applies the GTE predicate on the "email" field.
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
EmailIn applies the In predicate on the "email" field.
EmailLT applies the LT predicate on the "email" field.
EmailLTE applies the LTE predicate on the "email" field.
EmailNEQ applies the NEQ predicate on the "email" field.
EmailNotIn applies the NotIn predicate on the "email" field.
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
PasswordHash applies equality check predicate on the "password_hash" field.
PasswordHashContains applies the Contains predicate on the "password_hash" field.
PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
PasswordHashGT applies the GT predicate on the "password_hash" field.
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
PasswordHashIn applies the In predicate on the "password_hash" field.
PasswordHashLT applies the LT predicate on the "password_hash" field.
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
UpdatedAt applies equality check predicate on the "updated_at" field.
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
UpdatedAtGT applies the GT predicate on the "updated_at" field.
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
UpdatedAtIn applies the In predicate on the "updated_at" field.
UpdatedAtLT applies the LT predicate on the "updated_at" field.
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
ValidColumn reports if the column name is valid (part of the table columns).

# Constants

FieldCreatedAt holds the string denoting the created_at field in the database.
FieldEmail holds the string denoting the email field in the database.
FieldID holds the string denoting the id field in the database.
FieldPasswordHash holds the string denoting the password_hash field in the database.
FieldUpdatedAt holds the string denoting the updated_at field in the database.
Label holds the string label denoting the user type in the database.
Table holds the table name of the user in the database.

# Variables

Columns holds all SQL columns for user fields.
DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultID holds the default value on creation for the "id" field.
DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
EmailValidator is a validator for the "email" field.
PasswordHashValidator is a validator for the "password_hash" field.
UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.

# Type aliases

OrderOption defines the ordering options for the User queries.