Documentation
¶
Index ¶
- Constants
- Variables
- 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 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 HasGroupMemberships() predicate.User
- func HasGroupMembershipsWith(preds ...predicate.GroupMembership) predicate.User
- func HasMemberships() predicate.User
- func HasMembershipsWith(preds ...predicate.Membership) predicate.User
- func HasRestrictedAccess(v bool) predicate.User
- func HasRestrictedAccessEQ(v bool) predicate.User
- func HasRestrictedAccessIsNil() predicate.User
- func HasRestrictedAccessNEQ(v bool) predicate.User
- func HasRestrictedAccessNotNil() 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 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 Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) 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 ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByGroupMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupMembershipsCount(opts ...sql.OrderTermOption) OrderOption
- func ByHasRestrictedAccess(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembershipsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // 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" // FieldHasRestrictedAccess holds the string denoting the has_restricted_access field in the database. FieldHasRestrictedAccess = "has_restricted_access" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // EdgeMemberships holds the string denoting the memberships edge name in mutations. EdgeMemberships = "memberships" // EdgeGroupMemberships holds the string denoting the group_memberships edge name in mutations. EdgeGroupMemberships = "group_memberships" // Table holds the table name of the user in the database. Table = "users" // MembershipsTable is the table that holds the memberships relation/edge. MembershipsTable = "memberships" // MembershipsInverseTable is the table name for the Membership entity. // It exists in this package in order to avoid circular dependency with the "membership" package. MembershipsInverseTable = "memberships" // MembershipsColumn is the table column denoting the memberships relation/edge. MembershipsColumn = "user_memberships" // GroupMembershipsTable is the table that holds the group_memberships relation/edge. GroupMembershipsTable = "group_memberships" // GroupMembershipsInverseTable is the table name for the GroupMembership entity. // It exists in this package in order to avoid circular dependency with the "groupmembership" package. GroupMembershipsInverseTable = "group_memberships" // GroupMembershipsColumn is the table column denoting the group_memberships relation/edge. GroupMembershipsColumn = "user_id" )
Variables ¶
var ( // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldEmail, FieldCreatedAt, FieldUpdatedAt, FieldHasRestrictedAccess, FieldFirstName, FieldLastName, }
Columns holds all SQL columns for user fields.
Functions ¶
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 FirstName ¶ added in v1.5.0
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶ added in v1.5.0
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶ added in v1.5.0
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶ added in v1.5.0
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶ added in v1.5.0
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶ added in v1.5.0
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶ added in v1.5.0
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶ added in v1.5.0
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶ added in v1.5.0
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶ added in v1.5.0
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameIsNil ¶ added in v1.5.0
FirstNameIsNil applies the IsNil predicate on the "first_name" field.
func FirstNameLT ¶ added in v1.5.0
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶ added in v1.5.0
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶ added in v1.5.0
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶ added in v1.5.0
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func FirstNameNotNil ¶ added in v1.5.0
FirstNameNotNil applies the NotNil predicate on the "first_name" field.
func HasGroupMemberships ¶ added in v1.38.1
HasGroupMemberships applies the HasEdge predicate on the "group_memberships" edge.
func HasGroupMembershipsWith ¶ added in v1.38.1
func HasGroupMembershipsWith(preds ...predicate.GroupMembership) predicate.User
HasGroupMembershipsWith applies the HasEdge predicate on the "group_memberships" edge with a given conditions (other predicates).
func HasMemberships ¶
HasMemberships applies the HasEdge predicate on the "memberships" edge.
func HasMembershipsWith ¶
func HasMembershipsWith(preds ...predicate.Membership) predicate.User
HasMembershipsWith applies the HasEdge predicate on the "memberships" edge with a given conditions (other predicates).
func HasRestrictedAccess ¶ added in v0.186.0
HasRestrictedAccess applies equality check predicate on the "has_restricted_access" field. It's identical to HasRestrictedAccessEQ.
func HasRestrictedAccessEQ ¶ added in v0.186.0
HasRestrictedAccessEQ applies the EQ predicate on the "has_restricted_access" field.
func HasRestrictedAccessIsNil ¶ added in v0.186.0
HasRestrictedAccessIsNil applies the IsNil predicate on the "has_restricted_access" field.
func HasRestrictedAccessNEQ ¶ added in v0.186.0
HasRestrictedAccessNEQ applies the NEQ predicate on the "has_restricted_access" field.
func HasRestrictedAccessNotNil ¶ added in v0.186.0
HasRestrictedAccessNotNil applies the NotNil predicate on the "has_restricted_access" field.
func LastName ¶ added in v1.5.0
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶ added in v1.5.0
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶ added in v1.5.0
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶ added in v1.5.0
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶ added in v1.5.0
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶ added in v1.5.0
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶ added in v1.5.0
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶ added in v1.5.0
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶ added in v1.5.0
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶ added in v1.5.0
LastNameIn applies the In predicate on the "last_name" field.
func LastNameIsNil ¶ added in v1.5.0
LastNameIsNil applies the IsNil predicate on the "last_name" field.
func LastNameLT ¶ added in v1.5.0
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶ added in v1.5.0
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶ added in v1.5.0
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶ added in v1.5.0
LastNameNotIn applies the NotIn predicate on the "last_name" field.
func LastNameNotNil ¶ added in v1.5.0
LastNameNotNil applies the NotNil predicate on the "last_name" field.
func UpdatedAt ¶ added in v1.41.0
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶ added in v1.41.0
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶ added in v1.41.0
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶ added in v1.41.0
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶ added in v1.41.0
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶ added in v1.41.0
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶ added in v1.41.0
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶ added in v1.41.0
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶ added in v1.41.0
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByFirstName ¶ added in v1.5.0
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_name field.
func ByGroupMemberships ¶ added in v1.38.1
func ByGroupMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroupMemberships orders the results by group_memberships terms.
func ByGroupMembershipsCount ¶ added in v1.38.1
func ByGroupMembershipsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupMembershipsCount orders the results by group_memberships count.
func ByHasRestrictedAccess ¶ added in v0.186.0
func ByHasRestrictedAccess(opts ...sql.OrderTermOption) OrderOption
ByHasRestrictedAccess orders the results by the has_restricted_access field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastName ¶ added in v1.5.0
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByMemberships ¶
func ByMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMemberships orders the results by memberships terms.
func ByMembershipsCount ¶
func ByMembershipsCount(opts ...sql.OrderTermOption) OrderOption
ByMembershipsCount orders the results by memberships count.
func ByUpdatedAt ¶ added in v1.41.0
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.