Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserBalance) predicate.UserBalance
- func Balance(v float64) predicate.UserBalance
- func BalanceEQ(v float64) predicate.UserBalance
- func BalanceGT(v float64) predicate.UserBalance
- func BalanceGTE(v float64) predicate.UserBalance
- func BalanceIn(vs ...float64) predicate.UserBalance
- func BalanceLT(v float64) predicate.UserBalance
- func BalanceLTE(v float64) predicate.UserBalance
- func BalanceNEQ(v float64) predicate.UserBalance
- func BalanceNotIn(vs ...float64) predicate.UserBalance
- func CreatedAt(v time.Time) predicate.UserBalance
- func CreatedAtEQ(v time.Time) predicate.UserBalance
- func CreatedAtGT(v time.Time) predicate.UserBalance
- func CreatedAtGTE(v time.Time) predicate.UserBalance
- func CreatedAtIn(vs ...time.Time) predicate.UserBalance
- func CreatedAtLT(v time.Time) predicate.UserBalance
- func CreatedAtLTE(v time.Time) predicate.UserBalance
- func CreatedAtNEQ(v time.Time) predicate.UserBalance
- func CreatedAtNotIn(vs ...time.Time) predicate.UserBalance
- func ID(id int) predicate.UserBalance
- func IDEQ(id int) predicate.UserBalance
- func IDGT(id int) predicate.UserBalance
- func IDGTE(id int) predicate.UserBalance
- func IDIn(ids ...int) predicate.UserBalance
- func IDLT(id int) predicate.UserBalance
- func IDLTE(id int) predicate.UserBalance
- func IDNEQ(id int) predicate.UserBalance
- func IDNotIn(ids ...int) predicate.UserBalance
- func Not(p predicate.UserBalance) predicate.UserBalance
- func Or(predicates ...predicate.UserBalance) predicate.UserBalance
- func UpdatedAt(v time.Time) predicate.UserBalance
- func UpdatedAtEQ(v time.Time) predicate.UserBalance
- func UpdatedAtGT(v time.Time) predicate.UserBalance
- func UpdatedAtGTE(v time.Time) predicate.UserBalance
- func UpdatedAtIn(vs ...time.Time) predicate.UserBalance
- func UpdatedAtLT(v time.Time) predicate.UserBalance
- func UpdatedAtLTE(v time.Time) predicate.UserBalance
- func UpdatedAtNEQ(v time.Time) predicate.UserBalance
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserBalance
- func UserID(v string) predicate.UserBalance
- func UserIDContains(v string) predicate.UserBalance
- func UserIDContainsFold(v string) predicate.UserBalance
- func UserIDEQ(v string) predicate.UserBalance
- func UserIDEqualFold(v string) predicate.UserBalance
- func UserIDGT(v string) predicate.UserBalance
- func UserIDGTE(v string) predicate.UserBalance
- func UserIDHasPrefix(v string) predicate.UserBalance
- func UserIDHasSuffix(v string) predicate.UserBalance
- func UserIDIn(vs ...string) predicate.UserBalance
- func UserIDLT(v string) predicate.UserBalance
- func UserIDLTE(v string) predicate.UserBalance
- func UserIDNEQ(v string) predicate.UserBalance
- func UserIDNotIn(vs ...string) predicate.UserBalance
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the userbalance type in the database. Label = "user_balance" // 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" // FieldBalance holds the string denoting the balance field in the database. FieldBalance = "balance" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // Table holds the table name of the userbalance in the database. Table = "user_balances" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldUserID, FieldBalance, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for userbalance fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserBalance) predicate.UserBalance
And groups predicates with the AND operator between them.
func Balance ¶
func Balance(v float64) predicate.UserBalance
Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.
func BalanceEQ ¶
func BalanceEQ(v float64) predicate.UserBalance
BalanceEQ applies the EQ predicate on the "balance" field.
func BalanceGT ¶
func BalanceGT(v float64) predicate.UserBalance
BalanceGT applies the GT predicate on the "balance" field.
func BalanceGTE ¶
func BalanceGTE(v float64) predicate.UserBalance
BalanceGTE applies the GTE predicate on the "balance" field.
func BalanceIn ¶
func BalanceIn(vs ...float64) predicate.UserBalance
BalanceIn applies the In predicate on the "balance" field.
func BalanceLT ¶
func BalanceLT(v float64) predicate.UserBalance
BalanceLT applies the LT predicate on the "balance" field.
func BalanceLTE ¶
func BalanceLTE(v float64) predicate.UserBalance
BalanceLTE applies the LTE predicate on the "balance" field.
func BalanceNEQ ¶
func BalanceNEQ(v float64) predicate.UserBalance
BalanceNEQ applies the NEQ predicate on the "balance" field.
func BalanceNotIn ¶
func BalanceNotIn(vs ...float64) predicate.UserBalance
BalanceNotIn applies the NotIn predicate on the "balance" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserBalance
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserBalance
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserBalance
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserBalance
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserBalance
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserBalance
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserBalance
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserBalance
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserBalance
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func IDGTE ¶
func IDGTE(id int) predicate.UserBalance
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserBalance
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserBalance
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserBalance
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserBalance
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserBalance) predicate.UserBalance
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserBalance) predicate.UserBalance
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserBalance
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserBalance
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserBalance
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserBalance
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserBalance
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserBalance
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserBalance
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserBalance
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserBalance
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
func UserID(v string) predicate.UserBalance
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
func UserIDContains(v string) predicate.UserBalance
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
func UserIDContainsFold(v string) predicate.UserBalance
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEQ ¶
func UserIDEQ(v string) predicate.UserBalance
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEqualFold ¶
func UserIDEqualFold(v string) predicate.UserBalance
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v string) predicate.UserBalance
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v string) predicate.UserBalance
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDHasPrefix ¶
func UserIDHasPrefix(v string) predicate.UserBalance
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
func UserIDHasSuffix(v string) predicate.UserBalance
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...string) predicate.UserBalance
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v string) predicate.UserBalance
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v string) predicate.UserBalance
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v string) predicate.UserBalance
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...string) predicate.UserBalance
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 UserBalance queries.
func ByBalance ¶
func ByBalance(opts ...sql.OrderTermOption) OrderOption
ByBalance orders the results by the balance field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.