Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserRecoveryCode) predicate.UserRecoveryCode
- func CodeHash(v string) predicate.UserRecoveryCode
- func CodeHashContains(v string) predicate.UserRecoveryCode
- func CodeHashContainsFold(v string) predicate.UserRecoveryCode
- func CodeHashEQ(v string) predicate.UserRecoveryCode
- func CodeHashEqualFold(v string) predicate.UserRecoveryCode
- func CodeHashGT(v string) predicate.UserRecoveryCode
- func CodeHashGTE(v string) predicate.UserRecoveryCode
- func CodeHashHasPrefix(v string) predicate.UserRecoveryCode
- func CodeHashHasSuffix(v string) predicate.UserRecoveryCode
- func CodeHashIn(vs ...string) predicate.UserRecoveryCode
- func CodeHashLT(v string) predicate.UserRecoveryCode
- func CodeHashLTE(v string) predicate.UserRecoveryCode
- func CodeHashNEQ(v string) predicate.UserRecoveryCode
- func CodeHashNotIn(vs ...string) predicate.UserRecoveryCode
- func HasUser() predicate.UserRecoveryCode
- func HasUserWith(preds ...predicate.User) predicate.UserRecoveryCode
- func ID(id int) predicate.UserRecoveryCode
- func IDEQ(id int) predicate.UserRecoveryCode
- func IDGT(id int) predicate.UserRecoveryCode
- func IDGTE(id int) predicate.UserRecoveryCode
- func IDIn(ids ...int) predicate.UserRecoveryCode
- func IDLT(id int) predicate.UserRecoveryCode
- func IDLTE(id int) predicate.UserRecoveryCode
- func IDNEQ(id int) predicate.UserRecoveryCode
- func IDNotIn(ids ...int) predicate.UserRecoveryCode
- func Not(p predicate.UserRecoveryCode) predicate.UserRecoveryCode
- func Or(predicates ...predicate.UserRecoveryCode) predicate.UserRecoveryCode
- func UsedAt(v time.Time) predicate.UserRecoveryCode
- func UsedAtEQ(v time.Time) predicate.UserRecoveryCode
- func UsedAtGT(v time.Time) predicate.UserRecoveryCode
- func UsedAtGTE(v time.Time) predicate.UserRecoveryCode
- func UsedAtIn(vs ...time.Time) predicate.UserRecoveryCode
- func UsedAtIsNil() predicate.UserRecoveryCode
- func UsedAtLT(v time.Time) predicate.UserRecoveryCode
- func UsedAtLTE(v time.Time) predicate.UserRecoveryCode
- func UsedAtNEQ(v time.Time) predicate.UserRecoveryCode
- func UsedAtNotIn(vs ...time.Time) predicate.UserRecoveryCode
- func UsedAtNotNil() predicate.UserRecoveryCode
- func UserID(v int) predicate.UserRecoveryCode
- func UserIDEQ(v int) predicate.UserRecoveryCode
- func UserIDIn(vs ...int) predicate.UserRecoveryCode
- func UserIDNEQ(v int) predicate.UserRecoveryCode
- func UserIDNotIn(vs ...int) predicate.UserRecoveryCode
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the userrecoverycode type in the database. Label = "user_recovery_code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCodeHash holds the string denoting the code_hash field in the database. FieldCodeHash = "code_hash" // FieldUsedAt holds the string denoting the used_at field in the database. FieldUsedAt = "used_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the userrecoverycode in the database. Table = "user_recovery_codes" // UserTable is the table that holds the user relation/edge. UserTable = "user_recovery_codes" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var Columns = []string{ FieldID, FieldUserID, FieldCodeHash, FieldUsedAt, }
Columns holds all SQL columns for userrecoverycode fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserRecoveryCode) predicate.UserRecoveryCode
And groups predicates with the AND operator between them.
func CodeHash ¶
func CodeHash(v string) predicate.UserRecoveryCode
CodeHash applies equality check predicate on the "code_hash" field. It's identical to CodeHashEQ.
func CodeHashContains ¶
func CodeHashContains(v string) predicate.UserRecoveryCode
CodeHashContains applies the Contains predicate on the "code_hash" field.
func CodeHashContainsFold ¶
func CodeHashContainsFold(v string) predicate.UserRecoveryCode
CodeHashContainsFold applies the ContainsFold predicate on the "code_hash" field.
func CodeHashEQ ¶
func CodeHashEQ(v string) predicate.UserRecoveryCode
CodeHashEQ applies the EQ predicate on the "code_hash" field.
func CodeHashEqualFold ¶
func CodeHashEqualFold(v string) predicate.UserRecoveryCode
CodeHashEqualFold applies the EqualFold predicate on the "code_hash" field.
func CodeHashGT ¶
func CodeHashGT(v string) predicate.UserRecoveryCode
CodeHashGT applies the GT predicate on the "code_hash" field.
func CodeHashGTE ¶
func CodeHashGTE(v string) predicate.UserRecoveryCode
CodeHashGTE applies the GTE predicate on the "code_hash" field.
func CodeHashHasPrefix ¶
func CodeHashHasPrefix(v string) predicate.UserRecoveryCode
CodeHashHasPrefix applies the HasPrefix predicate on the "code_hash" field.
func CodeHashHasSuffix ¶
func CodeHashHasSuffix(v string) predicate.UserRecoveryCode
CodeHashHasSuffix applies the HasSuffix predicate on the "code_hash" field.
func CodeHashIn ¶
func CodeHashIn(vs ...string) predicate.UserRecoveryCode
CodeHashIn applies the In predicate on the "code_hash" field.
func CodeHashLT ¶
func CodeHashLT(v string) predicate.UserRecoveryCode
CodeHashLT applies the LT predicate on the "code_hash" field.
func CodeHashLTE ¶
func CodeHashLTE(v string) predicate.UserRecoveryCode
CodeHashLTE applies the LTE predicate on the "code_hash" field.
func CodeHashNEQ ¶
func CodeHashNEQ(v string) predicate.UserRecoveryCode
CodeHashNEQ applies the NEQ predicate on the "code_hash" field.
func CodeHashNotIn ¶
func CodeHashNotIn(vs ...string) predicate.UserRecoveryCode
CodeHashNotIn applies the NotIn predicate on the "code_hash" field.
func HasUser ¶
func HasUser() predicate.UserRecoveryCode
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserRecoveryCode
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.UserRecoveryCode
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.UserRecoveryCode
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.UserRecoveryCode
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserRecoveryCode
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.UserRecoveryCode
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserRecoveryCode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserRecoveryCode
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserRecoveryCode
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserRecoveryCode) predicate.UserRecoveryCode
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserRecoveryCode) predicate.UserRecoveryCode
Or groups predicates with the OR operator between them.
func UsedAt ¶
func UsedAt(v time.Time) predicate.UserRecoveryCode
UsedAt applies equality check predicate on the "used_at" field. It's identical to UsedAtEQ.
func UsedAtEQ ¶
func UsedAtEQ(v time.Time) predicate.UserRecoveryCode
UsedAtEQ applies the EQ predicate on the "used_at" field.
func UsedAtGT ¶
func UsedAtGT(v time.Time) predicate.UserRecoveryCode
UsedAtGT applies the GT predicate on the "used_at" field.
func UsedAtGTE ¶
func UsedAtGTE(v time.Time) predicate.UserRecoveryCode
UsedAtGTE applies the GTE predicate on the "used_at" field.
func UsedAtIn ¶
func UsedAtIn(vs ...time.Time) predicate.UserRecoveryCode
UsedAtIn applies the In predicate on the "used_at" field.
func UsedAtIsNil ¶
func UsedAtIsNil() predicate.UserRecoveryCode
UsedAtIsNil applies the IsNil predicate on the "used_at" field.
func UsedAtLT ¶
func UsedAtLT(v time.Time) predicate.UserRecoveryCode
UsedAtLT applies the LT predicate on the "used_at" field.
func UsedAtLTE ¶
func UsedAtLTE(v time.Time) predicate.UserRecoveryCode
UsedAtLTE applies the LTE predicate on the "used_at" field.
func UsedAtNEQ ¶
func UsedAtNEQ(v time.Time) predicate.UserRecoveryCode
UsedAtNEQ applies the NEQ predicate on the "used_at" field.
func UsedAtNotIn ¶
func UsedAtNotIn(vs ...time.Time) predicate.UserRecoveryCode
UsedAtNotIn applies the NotIn predicate on the "used_at" field.
func UsedAtNotNil ¶
func UsedAtNotNil() predicate.UserRecoveryCode
UsedAtNotNil applies the NotNil predicate on the "used_at" field.
func UserID ¶
func UserID(v int) predicate.UserRecoveryCode
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.UserRecoveryCode
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.UserRecoveryCode
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.UserRecoveryCode
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.UserRecoveryCode
UserIDNotIn applies the NotIn predicate on the "user_id" 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 UserRecoveryCode queries.
func ByCodeHash ¶
func ByCodeHash(opts ...sql.OrderTermOption) OrderOption
ByCodeHash orders the results by the code_hash field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUsedAt ¶
func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
ByUsedAt orders the results by the used_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.