Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func AttributesIsNil() predicate.User
- func AttributesNotNil() predicate.User
- func Credential(v string) predicate.User
- func CredentialContains(v string) predicate.User
- func CredentialContainsFold(v string) predicate.User
- func CredentialEQ(v string) predicate.User
- func CredentialEqualFold(v string) predicate.User
- func CredentialGT(v string) predicate.User
- func CredentialGTE(v string) predicate.User
- func CredentialHasPrefix(v string) predicate.User
- func CredentialHasSuffix(v string) predicate.User
- func CredentialIn(vs ...string) predicate.User
- func CredentialLT(v string) predicate.User
- func CredentialLTE(v string) predicate.User
- func CredentialNEQ(v string) predicate.User
- func CredentialNotIn(vs ...string) 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 HasEvents() predicate.User
- func HasEventsWith(preds ...predicate.Event) predicate.User
- func ID(id string) predicate.User
- func IDContainsFold(id string) predicate.User
- func IDEQ(id string) predicate.User
- func IDEqualFold(id string) predicate.User
- func IDGT(id string) predicate.User
- func IDGTE(id string) predicate.User
- func IDIn(ids ...string) predicate.User
- func IDLT(id string) predicate.User
- func IDLTE(id string) predicate.User
- func IDNEQ(id string) predicate.User
- func IDNotIn(ids ...string) 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 ByCredential(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEventsCount(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 = "user_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" // FieldCredential holds the string denoting the credential field in the database. FieldCredential = "credential" // FieldAttributes holds the string denoting the attributes field in the database. FieldAttributes = "attributes" // EdgeEvents holds the string denoting the events edge name in mutations. EdgeEvents = "events" // EventFieldID holds the string denoting the ID field of the Event. EventFieldID = "event_id" // Table holds the table name of the user in the database. Table = "users" // EventsTable is the table that holds the events relation/edge. EventsTable = "events" // 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" // EventsColumn is the table column denoting the events relation/edge. EventsColumn = "user_id" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CredentialValidator is a validator for the "credential" field. It is called by the builders before save. CredentialValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldName, FieldEmail, FieldCredential, FieldAttributes, }
Columns holds all SQL columns for user fields.
Functions ¶
func AttributesIsNil ¶
AttributesIsNil applies the IsNil predicate on the "attributes" field.
func AttributesNotNil ¶
AttributesNotNil applies the NotNil predicate on the "attributes" field.
func Credential ¶
Credential applies equality check predicate on the "credential" field. It's identical to CredentialEQ.
func CredentialContains ¶
CredentialContains applies the Contains predicate on the "credential" field.
func CredentialContainsFold ¶
CredentialContainsFold applies the ContainsFold predicate on the "credential" field.
func CredentialEQ ¶
CredentialEQ applies the EQ predicate on the "credential" field.
func CredentialEqualFold ¶
CredentialEqualFold applies the EqualFold predicate on the "credential" field.
func CredentialGT ¶
CredentialGT applies the GT predicate on the "credential" field.
func CredentialGTE ¶
CredentialGTE applies the GTE predicate on the "credential" field.
func CredentialHasPrefix ¶
CredentialHasPrefix applies the HasPrefix predicate on the "credential" field.
func CredentialHasSuffix ¶
CredentialHasSuffix applies the HasSuffix predicate on the "credential" field.
func CredentialIn ¶
CredentialIn applies the In predicate on the "credential" field.
func CredentialLT ¶
CredentialLT applies the LT predicate on the "credential" field.
func CredentialLTE ¶
CredentialLTE applies the LTE predicate on the "credential" field.
func CredentialNEQ ¶
CredentialNEQ applies the NEQ predicate on the "credential" field.
func CredentialNotIn ¶
CredentialNotIn applies the NotIn predicate on the "credential" 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 HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
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 ByCredential ¶
func ByCredential(opts ...sql.OrderTermOption) OrderOption
ByCredential orders the results by the credential field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByEvents ¶
func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEvents orders the results by events terms.
func ByEventsCount ¶
func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
ByEventsCount orders the results by events 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.