Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func DisplayName(v string) predicate.User
- func DisplayNameContains(v string) predicate.User
- func DisplayNameContainsFold(v string) predicate.User
- func DisplayNameEQ(v string) predicate.User
- func DisplayNameEqualFold(v string) predicate.User
- func DisplayNameGT(v string) predicate.User
- func DisplayNameGTE(v string) predicate.User
- func DisplayNameHasPrefix(v string) predicate.User
- func DisplayNameHasSuffix(v string) predicate.User
- func DisplayNameIn(vs ...string) predicate.User
- func DisplayNameIsNil() predicate.User
- func DisplayNameLT(v string) predicate.User
- func DisplayNameLTE(v string) predicate.User
- func DisplayNameNEQ(v string) predicate.User
- func DisplayNameNotIn(vs ...string) predicate.User
- func DisplayNameNotNil() predicate.User
- func FirstName(v string) predicate.User
- func FirstNameContains(v string) predicate.User
- func FirstNameContainsFold(v string) predicate.User
- func FirstNameEQ(v string) predicate.User
- func FirstNameEqualFold(v string) predicate.User
- func FirstNameGT(v string) predicate.User
- func FirstNameGTE(v string) predicate.User
- func FirstNameHasPrefix(v string) predicate.User
- func FirstNameHasSuffix(v string) predicate.User
- func FirstNameIn(vs ...string) predicate.User
- func FirstNameIsNil() predicate.User
- func FirstNameLT(v string) predicate.User
- func FirstNameLTE(v string) predicate.User
- func FirstNameNEQ(v string) predicate.User
- func FirstNameNotIn(vs ...string) predicate.User
- func FirstNameNotNil() predicate.User
- func HasEvents() predicate.User
- func HasEventsWith(preds ...predicate.Event) predicate.User
- func HasRoles() predicate.User
- func HasRolesWith(preds ...predicate.Role) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func ImagePath(v string) predicate.User
- func ImagePathContains(v string) predicate.User
- func ImagePathContainsFold(v string) predicate.User
- func ImagePathEQ(v string) predicate.User
- func ImagePathEqualFold(v string) predicate.User
- func ImagePathGT(v string) predicate.User
- func ImagePathGTE(v string) predicate.User
- func ImagePathHasPrefix(v string) predicate.User
- func ImagePathHasSuffix(v string) predicate.User
- func ImagePathIn(vs ...string) predicate.User
- func ImagePathIsNil() predicate.User
- func ImagePathLT(v string) predicate.User
- func ImagePathLTE(v string) predicate.User
- func ImagePathNEQ(v string) predicate.User
- func ImagePathNotIn(vs ...string) predicate.User
- func ImagePathNotNil() predicate.User
- func LastName(v string) predicate.User
- func LastNameContains(v string) predicate.User
- func LastNameContainsFold(v string) predicate.User
- func LastNameEQ(v string) predicate.User
- func LastNameEqualFold(v string) predicate.User
- func LastNameGT(v string) predicate.User
- func LastNameGTE(v string) predicate.User
- func LastNameHasPrefix(v string) predicate.User
- func LastNameHasSuffix(v string) predicate.User
- func LastNameIn(vs ...string) predicate.User
- func LastNameIsNil() predicate.User
- func LastNameLT(v string) predicate.User
- func LastNameLTE(v string) predicate.User
- func LastNameNEQ(v string) predicate.User
- func LastNameNotIn(vs ...string) predicate.User
- func LastNameNotNil() predicate.User
- func Login(v string) predicate.User
- func LoginContains(v string) predicate.User
- func LoginContainsFold(v string) predicate.User
- func LoginEQ(v string) predicate.User
- func LoginEqualFold(v string) predicate.User
- func LoginGT(v string) predicate.User
- func LoginGTE(v string) predicate.User
- func LoginHasPrefix(v string) predicate.User
- func LoginHasSuffix(v string) predicate.User
- func LoginIn(vs ...string) predicate.User
- func LoginLT(v string) predicate.User
- func LoginLTE(v string) predicate.User
- func LoginNEQ(v string) predicate.User
- func LoginNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) 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" // FieldLogin holds the string denoting the login field in the database. FieldLogin = "login" // FieldFirstName holds the string denoting the firstname field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the lastname field in the database. FieldLastName = "last_name" // FieldDisplayName holds the string denoting the displayname field in the database. FieldDisplayName = "display_name" // FieldImagePath holds the string denoting the imagepath field in the database. FieldImagePath = "image_path" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // EdgeEvents holds the string denoting the events edge name in mutations. EdgeEvents = "events" // Table holds the table name of the user in the database. Table = "users" // RolesTable is the table that holds the roles relation/edge. The primary key declared below. RolesTable = "role_users" // RolesInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. RolesInverseTable = "roles" // EventsTable is the table that holds the events relation/edge. The primary key declared below. EventsTable = "event_users" // EventsInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventsInverseTable = "events" )
Variables ¶
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"role_id", "user_id"} // EventsPrimaryKey and EventsColumn2 are the table columns denoting the // primary key for the events relation (M2M). EventsPrimaryKey = []string{"event_id", "user_id"} )
var ( // LoginValidator is a validator for the "login" field. It is called by the builders before save. LoginValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldLogin, FieldFirstName, FieldLastName, FieldDisplayName, FieldImagePath, }
Columns holds all SQL columns for user fields.
Functions ¶
func DisplayName ¶
DisplayName applies equality check predicate on the "displayName" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "displayName" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "displayName" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "displayName" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "displayName" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "displayName" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "displayName" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "displayName" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "displayName" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "displayName" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "displayName" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "displayName" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "displayName" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "displayName" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "displayName" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "displayName" field.
func FirstName ¶
FirstName applies equality check predicate on the "firstName" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "firstName" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "firstName" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "firstName" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "firstName" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "firstName" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "firstName" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "firstName" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "firstName" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "firstName" field.
func FirstNameIsNil ¶
FirstNameIsNil applies the IsNil predicate on the "firstName" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "firstName" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "firstName" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "firstName" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "firstName" field.
func FirstNameNotNil ¶
FirstNameNotNil applies the NotNil predicate on the "firstName" field.
func HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasRolesWith ¶
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func ImagePath ¶
ImagePath applies equality check predicate on the "imagePath" field. It's identical to ImagePathEQ.
func ImagePathContains ¶
ImagePathContains applies the Contains predicate on the "imagePath" field.
func ImagePathContainsFold ¶
ImagePathContainsFold applies the ContainsFold predicate on the "imagePath" field.
func ImagePathEQ ¶
ImagePathEQ applies the EQ predicate on the "imagePath" field.
func ImagePathEqualFold ¶
ImagePathEqualFold applies the EqualFold predicate on the "imagePath" field.
func ImagePathGT ¶
ImagePathGT applies the GT predicate on the "imagePath" field.
func ImagePathGTE ¶
ImagePathGTE applies the GTE predicate on the "imagePath" field.
func ImagePathHasPrefix ¶
ImagePathHasPrefix applies the HasPrefix predicate on the "imagePath" field.
func ImagePathHasSuffix ¶
ImagePathHasSuffix applies the HasSuffix predicate on the "imagePath" field.
func ImagePathIn ¶
ImagePathIn applies the In predicate on the "imagePath" field.
func ImagePathIsNil ¶
ImagePathIsNil applies the IsNil predicate on the "imagePath" field.
func ImagePathLT ¶
ImagePathLT applies the LT predicate on the "imagePath" field.
func ImagePathLTE ¶
ImagePathLTE applies the LTE predicate on the "imagePath" field.
func ImagePathNEQ ¶
ImagePathNEQ applies the NEQ predicate on the "imagePath" field.
func ImagePathNotIn ¶
ImagePathNotIn applies the NotIn predicate on the "imagePath" field.
func ImagePathNotNil ¶
ImagePathNotNil applies the NotNil predicate on the "imagePath" field.
func LastName ¶
LastName applies equality check predicate on the "lastName" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "lastName" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "lastName" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "lastName" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "lastName" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "lastName" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "lastName" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "lastName" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "lastName" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "lastName" field.
func LastNameIsNil ¶
LastNameIsNil applies the IsNil predicate on the "lastName" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "lastName" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "lastName" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "lastName" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "lastName" field.
func LastNameNotNil ¶
LastNameNotNil applies the NotNil predicate on the "lastName" field.
func Login ¶
Login applies equality check predicate on the "login" field. It's identical to LoginEQ.
func LoginContains ¶
LoginContains applies the Contains predicate on the "login" field.
func LoginContainsFold ¶
LoginContainsFold applies the ContainsFold predicate on the "login" field.
func LoginEqualFold ¶
LoginEqualFold applies the EqualFold predicate on the "login" field.
func LoginHasPrefix ¶
LoginHasPrefix applies the HasPrefix predicate on the "login" field.
func LoginHasSuffix ¶
LoginHasSuffix applies the HasSuffix predicate on the "login" field.
func LoginNotIn ¶
LoginNotIn applies the NotIn predicate on the "login" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.