Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) 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 HasAccessTokens() predicate.User
- func HasAccessTokensWith(preds ...predicate.AccessToken) predicate.User
- func HasCodes() predicate.User
- func HasCodesWith(preds ...predicate.Code) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.Group) 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 Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAccessTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByCodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCodesCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeCodes holds the string denoting the codes edge name in mutations. EdgeCodes = "codes" // EdgeAccessTokens holds the string denoting the access_tokens edge name in mutations. EdgeAccessTokens = "access_tokens" // 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 = "user_groups" // 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" // CodesTable is the table that holds the codes relation/edge. CodesTable = "codes" // CodesInverseTable is the table name for the Code entity. // It exists in this package in order to avoid circular dependency with the "code" package. CodesInverseTable = "codes" // CodesColumn is the table column denoting the codes relation/edge. CodesColumn = "user_codes" // AccessTokensTable is the table that holds the access_tokens relation/edge. AccessTokensTable = "access_tokens" // AccessTokensInverseTable is the table name for the AccessToken entity. // It exists in this package in order to avoid circular dependency with the "accesstoken" package. AccessTokensInverseTable = "access_tokens" // AccessTokensColumn is the table column denoting the access_tokens relation/edge. AccessTokensColumn = "user_access_tokens" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldEmail, }
Columns holds all SQL columns for user fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"user_id", "group_id"} )
Functions ¶
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 HasAccessTokens ¶
HasAccessTokens applies the HasEdge predicate on the "access_tokens" edge.
func HasAccessTokensWith ¶
func HasAccessTokensWith(preds ...predicate.AccessToken) predicate.User
HasAccessTokensWith applies the HasEdge predicate on the "access_tokens" edge with a given conditions (other predicates).
func HasCodesWith ¶
HasCodesWith applies the HasEdge predicate on the "codes" edge with a given conditions (other predicates).
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 ByAccessTokens ¶
func ByAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAccessTokens orders the results by access_tokens terms.
func ByAccessTokensCount ¶
func ByAccessTokensCount(opts ...sql.OrderTermOption) OrderOption
ByAccessTokensCount orders the results by access_tokens count.
func ByCodes ¶
func ByCodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCodes orders the results by codes terms.
func ByCodesCount ¶
func ByCodesCount(opts ...sql.OrderTermOption) OrderOption
ByCodesCount orders the results by codes count.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByGroups ¶
func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroups orders the results by groups terms.
func ByGroupsCount ¶
func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupsCount orders the results by groups count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.