Documentation
¶
Index ¶
- Constants
- Variables
- func Account(v string) predicate.Wallet
- func AccountContains(v string) predicate.Wallet
- func AccountContainsFold(v string) predicate.Wallet
- func AccountEQ(v string) predicate.Wallet
- func AccountEqualFold(v string) predicate.Wallet
- func AccountGT(v string) predicate.Wallet
- func AccountGTE(v string) predicate.Wallet
- func AccountHasPrefix(v string) predicate.Wallet
- func AccountHasSuffix(v string) predicate.Wallet
- func AccountIn(vs ...string) predicate.Wallet
- func AccountLT(v string) predicate.Wallet
- func AccountLTE(v string) predicate.Wallet
- func AccountNEQ(v string) predicate.Wallet
- func AccountNotIn(vs ...string) predicate.Wallet
- func And(predicates ...predicate.Wallet) predicate.Wallet
- func CreateTime(v time.Time) predicate.Wallet
- func CreateTimeEQ(v time.Time) predicate.Wallet
- func CreateTimeGT(v time.Time) predicate.Wallet
- func CreateTimeGTE(v time.Time) predicate.Wallet
- func CreateTimeIn(vs ...time.Time) predicate.Wallet
- func CreateTimeLT(v time.Time) predicate.Wallet
- func CreateTimeLTE(v time.Time) predicate.Wallet
- func CreateTimeNEQ(v time.Time) predicate.Wallet
- func CreateTimeNotIn(vs ...time.Time) predicate.Wallet
- func ID(id int) predicate.Wallet
- func IDEQ(id int) predicate.Wallet
- func IDGT(id int) predicate.Wallet
- func IDGTE(id int) predicate.Wallet
- func IDIn(ids ...int) predicate.Wallet
- func IDLT(id int) predicate.Wallet
- func IDLTE(id int) predicate.Wallet
- func IDNEQ(id int) predicate.Wallet
- func IDNotIn(ids ...int) predicate.Wallet
- func Not(p predicate.Wallet) predicate.Wallet
- func Or(predicates ...predicate.Wallet) predicate.Wallet
- func Password(v string) predicate.Wallet
- func PasswordContains(v string) predicate.Wallet
- func PasswordContainsFold(v string) predicate.Wallet
- func PasswordEQ(v string) predicate.Wallet
- func PasswordEqualFold(v string) predicate.Wallet
- func PasswordGT(v string) predicate.Wallet
- func PasswordGTE(v string) predicate.Wallet
- func PasswordHasPrefix(v string) predicate.Wallet
- func PasswordHasSuffix(v string) predicate.Wallet
- func PasswordIn(vs ...string) predicate.Wallet
- func PasswordLT(v string) predicate.Wallet
- func PasswordLTE(v string) predicate.Wallet
- func PasswordNEQ(v string) predicate.Wallet
- func PasswordNotIn(vs ...string) predicate.Wallet
- func PrivateKey(v string) predicate.Wallet
- func PrivateKeyContains(v string) predicate.Wallet
- func PrivateKeyContainsFold(v string) predicate.Wallet
- func PrivateKeyEQ(v string) predicate.Wallet
- func PrivateKeyEqualFold(v string) predicate.Wallet
- func PrivateKeyGT(v string) predicate.Wallet
- func PrivateKeyGTE(v string) predicate.Wallet
- func PrivateKeyHasPrefix(v string) predicate.Wallet
- func PrivateKeyHasSuffix(v string) predicate.Wallet
- func PrivateKeyIn(vs ...string) predicate.Wallet
- func PrivateKeyLT(v string) predicate.Wallet
- func PrivateKeyLTE(v string) predicate.Wallet
- func PrivateKeyNEQ(v string) predicate.Wallet
- func PrivateKeyNotIn(vs ...string) predicate.Wallet
- func UpdateTime(v time.Time) predicate.Wallet
- func UpdateTimeEQ(v time.Time) predicate.Wallet
- func UpdateTimeGT(v time.Time) predicate.Wallet
- func UpdateTimeGTE(v time.Time) predicate.Wallet
- func UpdateTimeIn(vs ...time.Time) predicate.Wallet
- func UpdateTimeLT(v time.Time) predicate.Wallet
- func UpdateTimeLTE(v time.Time) predicate.Wallet
- func UpdateTimeNEQ(v time.Time) predicate.Wallet
- func UpdateTimeNotIn(vs ...time.Time) predicate.Wallet
- func UserId(v int64) predicate.Wallet
- func UserIdEQ(v int64) predicate.Wallet
- func UserIdGT(v int64) predicate.Wallet
- func UserIdGTE(v int64) predicate.Wallet
- func UserIdIn(vs ...int64) predicate.Wallet
- func UserIdLT(v int64) predicate.Wallet
- func UserIdLTE(v int64) predicate.Wallet
- func UserIdNEQ(v int64) predicate.Wallet
- func UserIdNotIn(vs ...int64) predicate.Wallet
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPrivateKey(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserId(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the wallet type in the database. Label = "wallet" // 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" // FieldUserId holds the string denoting the userid field in the database. FieldUserId = "user_id" // FieldAccount holds the string denoting the account field in the database. FieldAccount = "account" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldPrivateKey holds the string denoting the privatekey field in the database. FieldPrivateKey = "private_key" // Table holds the table name of the wallet in the database. Table = "wallets" )
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 // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // PrivateKeyValidator is a validator for the "privateKey" field. It is called by the builders before save. PrivateKeyValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldUserId, FieldAccount, FieldPassword, FieldPrivateKey, }
Columns holds all SQL columns for wallet 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 Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PrivateKey ¶
PrivateKey applies equality check predicate on the "privateKey" field. It's identical to PrivateKeyEQ.
func PrivateKeyContains ¶
PrivateKeyContains applies the Contains predicate on the "privateKey" field.
func PrivateKeyContainsFold ¶
PrivateKeyContainsFold applies the ContainsFold predicate on the "privateKey" field.
func PrivateKeyEQ ¶
PrivateKeyEQ applies the EQ predicate on the "privateKey" field.
func PrivateKeyEqualFold ¶
PrivateKeyEqualFold applies the EqualFold predicate on the "privateKey" field.
func PrivateKeyGT ¶
PrivateKeyGT applies the GT predicate on the "privateKey" field.
func PrivateKeyGTE ¶
PrivateKeyGTE applies the GTE predicate on the "privateKey" field.
func PrivateKeyHasPrefix ¶
PrivateKeyHasPrefix applies the HasPrefix predicate on the "privateKey" field.
func PrivateKeyHasSuffix ¶
PrivateKeyHasSuffix applies the HasSuffix predicate on the "privateKey" field.
func PrivateKeyIn ¶
PrivateKeyIn applies the In predicate on the "privateKey" field.
func PrivateKeyLT ¶
PrivateKeyLT applies the LT predicate on the "privateKey" field.
func PrivateKeyLTE ¶
PrivateKeyLTE applies the LTE predicate on the "privateKey" field.
func PrivateKeyNEQ ¶
PrivateKeyNEQ applies the NEQ predicate on the "privateKey" field.
func PrivateKeyNotIn ¶
PrivateKeyNotIn applies the NotIn predicate on the "privateKey" 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 UserId ¶
UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.
func UserIdNotIn ¶
UserIdNotIn applies the NotIn predicate on the "userId" 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 Wallet 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 ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPrivateKey ¶
func ByPrivateKey(opts ...sql.OrderTermOption) OrderOption
ByPrivateKey orders the results by the privateKey field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserId ¶
func ByUserId(opts ...sql.OrderTermOption) OrderOption
ByUserId orders the results by the userId field.