Documentation
¶
Index ¶
- Constants
- Variables
- func Account(v string) predicate.Nonce
- func AccountContains(v string) predicate.Nonce
- func AccountContainsFold(v string) predicate.Nonce
- func AccountEQ(v string) predicate.Nonce
- func AccountEqualFold(v string) predicate.Nonce
- func AccountGT(v string) predicate.Nonce
- func AccountGTE(v string) predicate.Nonce
- func AccountHasPrefix(v string) predicate.Nonce
- func AccountHasSuffix(v string) predicate.Nonce
- func AccountIn(vs ...string) predicate.Nonce
- func AccountLT(v string) predicate.Nonce
- func AccountLTE(v string) predicate.Nonce
- func AccountNEQ(v string) predicate.Nonce
- func AccountNotIn(vs ...string) predicate.Nonce
- func And(predicates ...predicate.Nonce) predicate.Nonce
- func CreateTime(v time.Time) predicate.Nonce
- func CreateTimeEQ(v time.Time) predicate.Nonce
- func CreateTimeGT(v time.Time) predicate.Nonce
- func CreateTimeGTE(v time.Time) predicate.Nonce
- func CreateTimeIn(vs ...time.Time) predicate.Nonce
- func CreateTimeLT(v time.Time) predicate.Nonce
- func CreateTimeLTE(v time.Time) predicate.Nonce
- func CreateTimeNEQ(v time.Time) predicate.Nonce
- func CreateTimeNotIn(vs ...time.Time) predicate.Nonce
- func ID(id int) predicate.Nonce
- func IDEQ(id int) predicate.Nonce
- func IDGT(id int) predicate.Nonce
- func IDGTE(id int) predicate.Nonce
- func IDIn(ids ...int) predicate.Nonce
- func IDLT(id int) predicate.Nonce
- func IDLTE(id int) predicate.Nonce
- func IDNEQ(id int) predicate.Nonce
- func IDNotIn(ids ...int) predicate.Nonce
- func Nonce(v uint64) predicate.Nonce
- func NonceEQ(v uint64) predicate.Nonce
- func NonceGT(v uint64) predicate.Nonce
- func NonceGTE(v uint64) predicate.Nonce
- func NonceIn(vs ...uint64) predicate.Nonce
- func NonceLT(v uint64) predicate.Nonce
- func NonceLTE(v uint64) predicate.Nonce
- func NonceNEQ(v uint64) predicate.Nonce
- func NonceNotIn(vs ...uint64) predicate.Nonce
- func Not(p predicate.Nonce) predicate.Nonce
- func Or(predicates ...predicate.Nonce) predicate.Nonce
- func UpdateTime(v time.Time) predicate.Nonce
- func UpdateTimeEQ(v time.Time) predicate.Nonce
- func UpdateTimeGT(v time.Time) predicate.Nonce
- func UpdateTimeGTE(v time.Time) predicate.Nonce
- func UpdateTimeIn(vs ...time.Time) predicate.Nonce
- func UpdateTimeLT(v time.Time) predicate.Nonce
- func UpdateTimeLTE(v time.Time) predicate.Nonce
- func UpdateTimeNEQ(v time.Time) predicate.Nonce
- func UpdateTimeNotIn(vs ...time.Time) predicate.Nonce
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the nonce type in the database. Label = "nonce" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldAccount holds the string denoting the account field in the database. FieldAccount = "account" // FieldNonce holds the string denoting the nonce field in the database. FieldNonce = "nonce" // Table holds the table name of the nonce in the database. Table = "nonces" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // AccountValidator is a validator for the "account" field. It is called by the builders before save. AccountValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldAccount, FieldNonce, }
Columns holds all SQL columns for nonce fields.
Functions ¶
func Account ¶
Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
func AccountContains ¶
AccountContains applies the Contains predicate on the "account" field.
func AccountContainsFold ¶
AccountContainsFold applies the ContainsFold predicate on the "account" field.
func AccountEqualFold ¶
AccountEqualFold applies the EqualFold predicate on the "account" field.
func AccountGTE ¶
AccountGTE applies the GTE predicate on the "account" field.
func AccountHasPrefix ¶
AccountHasPrefix applies the HasPrefix predicate on the "account" field.
func AccountHasSuffix ¶
AccountHasSuffix applies the HasSuffix predicate on the "account" field.
func AccountLTE ¶
AccountLTE applies the LTE predicate on the "account" field.
func AccountNEQ ¶
AccountNEQ applies the NEQ predicate on the "account" field.
func AccountNotIn ¶
AccountNotIn applies the NotIn predicate on the "account" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Nonce ¶
Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.
func NonceNotIn ¶
NonceNotIn applies the NotIn predicate on the "nonce" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Nonce queries.
func ByAccount ¶
func ByAccount(opts ...sql.OrderTermOption) OrderOption
ByAccount orders the results by the account field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNonce ¶
func ByNonce(opts ...sql.OrderTermOption) OrderOption
ByNonce orders the results by the nonce field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.