Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Account) predicate.Account
- func Email(v string) predicate.Account
- func EmailContains(v string) predicate.Account
- func EmailContainsFold(v string) predicate.Account
- func EmailEQ(v string) predicate.Account
- func EmailEqualFold(v string) predicate.Account
- func EmailGT(v string) predicate.Account
- func EmailGTE(v string) predicate.Account
- func EmailHasPrefix(v string) predicate.Account
- func EmailHasSuffix(v string) predicate.Account
- func EmailIn(vs ...string) predicate.Account
- func EmailLT(v string) predicate.Account
- func EmailLTE(v string) predicate.Account
- func EmailNEQ(v string) predicate.Account
- func EmailNotIn(vs ...string) predicate.Account
- func HasToken() predicate.Account
- func HasTokenWith(preds ...predicate.Token) predicate.Account
- func ID(id sid.ID) predicate.Account
- func IDEQ(id sid.ID) predicate.Account
- func IDGT(id sid.ID) predicate.Account
- func IDGTE(id sid.ID) predicate.Account
- func IDIn(ids ...sid.ID) predicate.Account
- func IDLT(id sid.ID) predicate.Account
- func IDLTE(id sid.ID) predicate.Account
- func IDNEQ(id sid.ID) predicate.Account
- func IDNotIn(ids ...sid.ID) predicate.Account
- func Not(p predicate.Account) predicate.Account
- func Or(predicates ...predicate.Account) predicate.Account
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the account type in the database. Label = "account" // 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" // EdgeToken holds the string denoting the token edge name in mutations. EdgeToken = "token" // Table holds the table name of the account in the database. Table = "accounts" // TokenTable is the table that holds the token relation/edge. TokenTable = "tokens" // TokenInverseTable is the table name for the Token entity. // It exists in this package in order to avoid circular dependency with the "token" package. TokenInverseTable = "tokens" // TokenColumn is the table column denoting the token relation/edge. TokenColumn = "account_token" )
Variables ¶
var ( // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() sid.ID )
var Columns = []string{ FieldID, FieldEmail, }
Columns holds all SQL columns for account fields.
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 HasTokenWith ¶
HasTokenWith applies the HasEdge predicate on the "token" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.