Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func HasEvents() predicate.User
- func HasEventsWith(preds ...predicate.Event) predicate.User
- func HasJobs() predicate.User
- func HasJobsWith(preds ...predicate.Job) 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 IsActivated(v bool) predicate.User
- func IsActivatedEQ(v bool) predicate.User
- func IsActivatedNEQ(v bool) predicate.User
- func IsAdmin(v bool) predicate.User
- func IsAdminEQ(v bool) predicate.User
- func IsAdminNEQ(v bool) 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 OAuthID(v string) predicate.User
- func OAuthIDContains(v string) predicate.User
- func OAuthIDContainsFold(v string) predicate.User
- func OAuthIDEQ(v string) predicate.User
- func OAuthIDEqualFold(v string) predicate.User
- func OAuthIDGT(v string) predicate.User
- func OAuthIDGTE(v string) predicate.User
- func OAuthIDHasPrefix(v string) predicate.User
- func OAuthIDHasSuffix(v string) predicate.User
- func OAuthIDIn(vs ...string) predicate.User
- func OAuthIDLT(v string) predicate.User
- func OAuthIDLTE(v string) predicate.User
- func OAuthIDNEQ(v string) predicate.User
- func OAuthIDNotIn(vs ...string) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PhotoURL(v string) predicate.User
- func PhotoURLContains(v string) predicate.User
- func PhotoURLContainsFold(v string) predicate.User
- func PhotoURLEQ(v string) predicate.User
- func PhotoURLEqualFold(v string) predicate.User
- func PhotoURLGT(v string) predicate.User
- func PhotoURLGTE(v string) predicate.User
- func PhotoURLHasPrefix(v string) predicate.User
- func PhotoURLHasSuffix(v string) predicate.User
- func PhotoURLIn(vs ...string) predicate.User
- func PhotoURLLT(v string) predicate.User
- func PhotoURLLTE(v string) predicate.User
- func PhotoURLNEQ(v string) predicate.User
- func PhotoURLNotIn(vs ...string) predicate.User
- func SessionToken(v string) predicate.User
- func SessionTokenContains(v string) predicate.User
- func SessionTokenContainsFold(v string) predicate.User
- func SessionTokenEQ(v string) predicate.User
- func SessionTokenEqualFold(v string) predicate.User
- func SessionTokenGT(v string) predicate.User
- func SessionTokenGTE(v string) predicate.User
- func SessionTokenHasPrefix(v string) predicate.User
- func SessionTokenHasSuffix(v string) predicate.User
- func SessionTokenIn(vs ...string) predicate.User
- func SessionTokenIsNil() predicate.User
- func SessionTokenLT(v string) predicate.User
- func SessionTokenLTE(v string) predicate.User
- func SessionTokenNEQ(v string) predicate.User
- func SessionTokenNotIn(vs ...string) predicate.User
- func SessionTokenNotNil() 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldOAuthID holds the string denoting the oauthid field in the database. FieldOAuthID = "oauth_id" // FieldPhotoURL holds the string denoting the photourl field in the database. FieldPhotoURL = "photo_url" // FieldSessionToken holds the string denoting the sessiontoken field in the database. FieldSessionToken = "session_token" // FieldIsActivated holds the string denoting the isactivated field in the database. FieldIsActivated = "is_activated" // FieldIsAdmin holds the string denoting the isadmin field in the database. FieldIsAdmin = "is_admin" // EdgeJobs holds the string denoting the jobs edge name in mutations. EdgeJobs = "jobs" // 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" // JobsTable is the table that holds the jobs relation/edge. JobsTable = "jobs" // JobsInverseTable is the table name for the Job entity. // It exists in this package in order to avoid circular dependency with the "job" package. JobsInverseTable = "jobs" // JobsColumn is the table column denoting the jobs relation/edge. JobsColumn = "user_jobs" // 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_events" )
Variables ¶
var ( // NameValidator is a validator for the "Name" field. It is called by the builders before save. NameValidator func(string) error // SessionTokenValidator is a validator for the "SessionToken" field. It is called by the builders before save. SessionTokenValidator func(string) error // DefaultIsActivated holds the default value on creation for the "IsActivated" field. DefaultIsActivated bool // DefaultIsAdmin holds the default value on creation for the "IsAdmin" field. DefaultIsAdmin bool )
var Columns = []string{ FieldID, FieldName, FieldOAuthID, FieldPhotoURL, FieldSessionToken, FieldIsActivated, FieldIsAdmin, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"event_likers",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
Functions ¶
func HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasJobsWith ¶
HasJobsWith applies the HasEdge predicate on the "jobs" edge with a given conditions (other predicates).
func IsActivated ¶
IsActivated applies equality check predicate on the "IsActivated" field. It's identical to IsActivatedEQ.
func IsActivatedEQ ¶
IsActivatedEQ applies the EQ predicate on the "IsActivated" field.
func IsActivatedNEQ ¶
IsActivatedNEQ applies the NEQ predicate on the "IsActivated" field.
func IsAdmin ¶
IsAdmin applies equality check predicate on the "IsAdmin" field. It's identical to IsAdminEQ.
func IsAdminNEQ ¶
IsAdminNEQ applies the NEQ predicate on the "IsAdmin" 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 OAuthID ¶
OAuthID applies equality check predicate on the "OAuthID" field. It's identical to OAuthIDEQ.
func OAuthIDContains ¶
OAuthIDContains applies the Contains predicate on the "OAuthID" field.
func OAuthIDContainsFold ¶
OAuthIDContainsFold applies the ContainsFold predicate on the "OAuthID" field.
func OAuthIDEqualFold ¶
OAuthIDEqualFold applies the EqualFold predicate on the "OAuthID" field.
func OAuthIDGTE ¶
OAuthIDGTE applies the GTE predicate on the "OAuthID" field.
func OAuthIDHasPrefix ¶
OAuthIDHasPrefix applies the HasPrefix predicate on the "OAuthID" field.
func OAuthIDHasSuffix ¶
OAuthIDHasSuffix applies the HasSuffix predicate on the "OAuthID" field.
func OAuthIDLTE ¶
OAuthIDLTE applies the LTE predicate on the "OAuthID" field.
func OAuthIDNEQ ¶
OAuthIDNEQ applies the NEQ predicate on the "OAuthID" field.
func OAuthIDNotIn ¶
OAuthIDNotIn applies the NotIn predicate on the "OAuthID" field.
func PhotoURL ¶
PhotoURL applies equality check predicate on the "PhotoURL" field. It's identical to PhotoURLEQ.
func PhotoURLContains ¶
PhotoURLContains applies the Contains predicate on the "PhotoURL" field.
func PhotoURLContainsFold ¶
PhotoURLContainsFold applies the ContainsFold predicate on the "PhotoURL" field.
func PhotoURLEQ ¶
PhotoURLEQ applies the EQ predicate on the "PhotoURL" field.
func PhotoURLEqualFold ¶
PhotoURLEqualFold applies the EqualFold predicate on the "PhotoURL" field.
func PhotoURLGT ¶
PhotoURLGT applies the GT predicate on the "PhotoURL" field.
func PhotoURLGTE ¶
PhotoURLGTE applies the GTE predicate on the "PhotoURL" field.
func PhotoURLHasPrefix ¶
PhotoURLHasPrefix applies the HasPrefix predicate on the "PhotoURL" field.
func PhotoURLHasSuffix ¶
PhotoURLHasSuffix applies the HasSuffix predicate on the "PhotoURL" field.
func PhotoURLIn ¶
PhotoURLIn applies the In predicate on the "PhotoURL" field.
func PhotoURLLT ¶
PhotoURLLT applies the LT predicate on the "PhotoURL" field.
func PhotoURLLTE ¶
PhotoURLLTE applies the LTE predicate on the "PhotoURL" field.
func PhotoURLNEQ ¶
PhotoURLNEQ applies the NEQ predicate on the "PhotoURL" field.
func PhotoURLNotIn ¶
PhotoURLNotIn applies the NotIn predicate on the "PhotoURL" field.
func SessionToken ¶
SessionToken applies equality check predicate on the "SessionToken" field. It's identical to SessionTokenEQ.
func SessionTokenContains ¶
SessionTokenContains applies the Contains predicate on the "SessionToken" field.
func SessionTokenContainsFold ¶
SessionTokenContainsFold applies the ContainsFold predicate on the "SessionToken" field.
func SessionTokenEQ ¶
SessionTokenEQ applies the EQ predicate on the "SessionToken" field.
func SessionTokenEqualFold ¶
SessionTokenEqualFold applies the EqualFold predicate on the "SessionToken" field.
func SessionTokenGT ¶
SessionTokenGT applies the GT predicate on the "SessionToken" field.
func SessionTokenGTE ¶
SessionTokenGTE applies the GTE predicate on the "SessionToken" field.
func SessionTokenHasPrefix ¶
SessionTokenHasPrefix applies the HasPrefix predicate on the "SessionToken" field.
func SessionTokenHasSuffix ¶
SessionTokenHasSuffix applies the HasSuffix predicate on the "SessionToken" field.
func SessionTokenIn ¶
SessionTokenIn applies the In predicate on the "SessionToken" field.
func SessionTokenIsNil ¶
SessionTokenIsNil applies the IsNil predicate on the "SessionToken" field.
func SessionTokenLT ¶
SessionTokenLT applies the LT predicate on the "SessionToken" field.
func SessionTokenLTE ¶
SessionTokenLTE applies the LTE predicate on the "SessionToken" field.
func SessionTokenNEQ ¶
SessionTokenNEQ applies the NEQ predicate on the "SessionToken" field.
func SessionTokenNotIn ¶
SessionTokenNotIn applies the NotIn predicate on the "SessionToken" field.
func SessionTokenNotNil ¶
SessionTokenNotNil applies the NotNil predicate on the "SessionToken" field.
func ValidColumn ¶ added in v0.4.3
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.