Documentation
¶
Index ¶
- Constants
- Variables
- func Algorithm(v int32) predicate.User
- func AlgorithmEQ(v int32) predicate.User
- func AlgorithmGT(v int32) predicate.User
- func AlgorithmGTE(v int32) predicate.User
- func AlgorithmIn(vs ...int32) predicate.User
- func AlgorithmLT(v int32) predicate.User
- func AlgorithmLTE(v int32) predicate.User
- func AlgorithmNEQ(v int32) predicate.User
- func AlgorithmNotIn(vs ...int32) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.Group) predicate.User
- func Hash(v string) predicate.User
- func HashContains(v string) predicate.User
- func HashContainsFold(v string) predicate.User
- func HashEQ(v string) predicate.User
- func HashEqualFold(v string) predicate.User
- func HashGT(v string) predicate.User
- func HashGTE(v string) predicate.User
- func HashHasPrefix(v string) predicate.User
- func HashHasSuffix(v string) predicate.User
- func HashIn(vs ...string) predicate.User
- func HashLT(v string) predicate.User
- func HashLTE(v string) predicate.User
- func HashNEQ(v string) predicate.User
- func HashNotIn(vs ...string) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Salt(v string) predicate.User
- func SaltContains(v string) predicate.User
- func SaltContainsFold(v string) predicate.User
- func SaltEQ(v string) predicate.User
- func SaltEqualFold(v string) predicate.User
- func SaltGT(v string) predicate.User
- func SaltGTE(v string) predicate.User
- func SaltHasPrefix(v string) predicate.User
- func SaltHasSuffix(v string) predicate.User
- func SaltIn(vs ...string) predicate.User
- func SaltLT(v string) predicate.User
- func SaltLTE(v string) predicate.User
- func SaltNEQ(v string) predicate.User
- func SaltNotIn(vs ...string) predicate.User
- func UUID(v uuid.UUID) predicate.User
- func UUIDEQ(v uuid.UUID) predicate.User
- func UUIDGT(v uuid.UUID) predicate.User
- func UUIDGTE(v uuid.UUID) predicate.User
- func UUIDIn(vs ...uuid.UUID) predicate.User
- func UUIDLT(v uuid.UUID) predicate.User
- func UUIDLTE(v uuid.UUID) predicate.User
- func UUIDNEQ(v uuid.UUID) predicate.User
- func UUIDNotIn(vs ...uuid.UUID) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldSalt holds the string denoting the salt field in the database. FieldSalt = "salt" // FieldAlgorithm holds the string denoting the algorithm field in the database. FieldAlgorithm = "algorithm" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // Table holds the table name of the user in the database. Table = "users" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_users" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" )
Variables ¶
var ( // DefaultAlgorithm holds the default value on creation for the "algorithm" field. DefaultAlgorithm int32 // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldUUID, FieldUsername, FieldHash, FieldSalt, FieldAlgorithm, FieldEmail, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"group_id", "user_id"} )
Functions ¶
func Algorithm ¶
Algorithm applies equality check predicate on the "algorithm" field. It's identical to AlgorithmEQ.
func AlgorithmEQ ¶
AlgorithmEQ applies the EQ predicate on the "algorithm" field.
func AlgorithmGT ¶
AlgorithmGT applies the GT predicate on the "algorithm" field.
func AlgorithmGTE ¶
AlgorithmGTE applies the GTE predicate on the "algorithm" field.
func AlgorithmIn ¶
AlgorithmIn applies the In predicate on the "algorithm" field.
func AlgorithmLT ¶
AlgorithmLT applies the LT predicate on the "algorithm" field.
func AlgorithmLTE ¶
AlgorithmLTE applies the LTE predicate on the "algorithm" field.
func AlgorithmNEQ ¶
AlgorithmNEQ applies the NEQ predicate on the "algorithm" field.
func AlgorithmNotIn ¶
AlgorithmNotIn applies the NotIn predicate on the "algorithm" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func SaltContains ¶
SaltContains applies the Contains predicate on the "salt" field.
func SaltContainsFold ¶
SaltContainsFold applies the ContainsFold predicate on the "salt" field.
func SaltEqualFold ¶
SaltEqualFold applies the EqualFold predicate on the "salt" field.
func SaltHasPrefix ¶
SaltHasPrefix applies the HasPrefix predicate on the "salt" field.
func SaltHasSuffix ¶
SaltHasSuffix applies the HasSuffix predicate on the "salt" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.