Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RecoveryCode) predicate.RecoveryCode
- func Code(v string) predicate.RecoveryCode
- func CodeContains(v string) predicate.RecoveryCode
- func CodeContainsFold(v string) predicate.RecoveryCode
- func CodeEQ(v string) predicate.RecoveryCode
- func CodeEqualFold(v string) predicate.RecoveryCode
- func CodeGT(v string) predicate.RecoveryCode
- func CodeGTE(v string) predicate.RecoveryCode
- func CodeHasPrefix(v string) predicate.RecoveryCode
- func CodeHasSuffix(v string) predicate.RecoveryCode
- func CodeIn(vs ...string) predicate.RecoveryCode
- func CodeLT(v string) predicate.RecoveryCode
- func CodeLTE(v string) predicate.RecoveryCode
- func CodeNEQ(v string) predicate.RecoveryCode
- func CodeNotIn(vs ...string) predicate.RecoveryCode
- func ExpiresAt(v time.Time) predicate.RecoveryCode
- func ExpiresAtEQ(v time.Time) predicate.RecoveryCode
- func ExpiresAtGT(v time.Time) predicate.RecoveryCode
- func ExpiresAtGTE(v time.Time) predicate.RecoveryCode
- func ExpiresAtIn(vs ...time.Time) predicate.RecoveryCode
- func ExpiresAtIsNil() predicate.RecoveryCode
- func ExpiresAtLT(v time.Time) predicate.RecoveryCode
- func ExpiresAtLTE(v time.Time) predicate.RecoveryCode
- func ExpiresAtNEQ(v time.Time) predicate.RecoveryCode
- func ExpiresAtNotIn(vs ...time.Time) predicate.RecoveryCode
- func ExpiresAtNotNil() predicate.RecoveryCode
- func HasAccount() predicate.RecoveryCode
- func HasAccountWith(preds ...predicate.Account) predicate.RecoveryCode
- func ID(id int) predicate.RecoveryCode
- func IDEQ(id int) predicate.RecoveryCode
- func IDGT(id int) predicate.RecoveryCode
- func IDGTE(id int) predicate.RecoveryCode
- func IDIn(ids ...int) predicate.RecoveryCode
- func IDLT(id int) predicate.RecoveryCode
- func IDLTE(id int) predicate.RecoveryCode
- func IDNEQ(id int) predicate.RecoveryCode
- func IDNotIn(ids ...int) predicate.RecoveryCode
- func Not(p predicate.RecoveryCode) predicate.RecoveryCode
- func Or(predicates ...predicate.RecoveryCode) predicate.RecoveryCode
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the recoverycode type in the database. Label = "recovery_code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // Table holds the table name of the recoverycode in the database. Table = "recovery_codes" // AccountTable is the table that holds the account relation/edge. AccountTable = "recovery_codes" // AccountInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "entaccount" package. AccountInverseTable = "accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "account" )
Variables ¶
var Columns = []string{ FieldID, FieldCode, FieldExpiresAt, }
Columns holds all SQL columns for recoverycode fields.
var ForeignKeys = []string{
"account",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "recovery_codes" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.RecoveryCode) predicate.RecoveryCode
And groups predicates with the AND operator between them.
func Code ¶
func Code(v string) predicate.RecoveryCode
Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
func CodeContains ¶
func CodeContains(v string) predicate.RecoveryCode
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
func CodeContainsFold(v string) predicate.RecoveryCode
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEQ ¶
func CodeEQ(v string) predicate.RecoveryCode
CodeEQ applies the EQ predicate on the "code" field.
func CodeEqualFold ¶
func CodeEqualFold(v string) predicate.RecoveryCode
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeGT ¶
func CodeGT(v string) predicate.RecoveryCode
CodeGT applies the GT predicate on the "code" field.
func CodeGTE ¶
func CodeGTE(v string) predicate.RecoveryCode
CodeGTE applies the GTE predicate on the "code" field.
func CodeHasPrefix ¶
func CodeHasPrefix(v string) predicate.RecoveryCode
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
func CodeHasSuffix(v string) predicate.RecoveryCode
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeIn ¶
func CodeIn(vs ...string) predicate.RecoveryCode
CodeIn applies the In predicate on the "code" field.
func CodeLT ¶
func CodeLT(v string) predicate.RecoveryCode
CodeLT applies the LT predicate on the "code" field.
func CodeLTE ¶
func CodeLTE(v string) predicate.RecoveryCode
CodeLTE applies the LTE predicate on the "code" field.
func CodeNEQ ¶
func CodeNEQ(v string) predicate.RecoveryCode
CodeNEQ applies the NEQ predicate on the "code" field.
func CodeNotIn ¶
func CodeNotIn(vs ...string) predicate.RecoveryCode
CodeNotIn applies the NotIn predicate on the "code" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.RecoveryCode
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.RecoveryCode
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.RecoveryCode
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.RecoveryCode
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.RecoveryCode
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
func ExpiresAtIsNil() predicate.RecoveryCode
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.RecoveryCode
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.RecoveryCode
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.RecoveryCode
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.RecoveryCode
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
func ExpiresAtNotNil() predicate.RecoveryCode
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasAccount ¶
func HasAccount() predicate.RecoveryCode
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
func HasAccountWith(preds ...predicate.Account) predicate.RecoveryCode
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.RecoveryCode
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.RecoveryCode
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.RecoveryCode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.RecoveryCode
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.RecoveryCode
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.RecoveryCode) predicate.RecoveryCode
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.RecoveryCode) predicate.RecoveryCode
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.