Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func Balance(v float64) predicate.Card
- func BalanceEQ(v float64) predicate.Card
- func BalanceGT(v float64) predicate.Card
- func BalanceGTE(v float64) predicate.Card
- func BalanceIn(vs ...float64) predicate.Card
- func BalanceLT(v float64) predicate.Card
- func BalanceLTE(v float64) predicate.Card
- func BalanceNEQ(v float64) predicate.Card
- func BalanceNotIn(vs ...float64) predicate.Card
- func CreateTime(v time.Time) predicate.Card
- func CreateTimeEQ(v time.Time) predicate.Card
- func CreateTimeGT(v time.Time) predicate.Card
- func CreateTimeGTE(v time.Time) predicate.Card
- func CreateTimeIn(vs ...time.Time) predicate.Card
- func CreateTimeLT(v time.Time) predicate.Card
- func CreateTimeLTE(v time.Time) predicate.Card
- func CreateTimeNEQ(v time.Time) predicate.Card
- func CreateTimeNotIn(vs ...time.Time) predicate.Card
- func HasOwner() predicate.Card
- func HasOwnerWith(preds ...predicate.User) predicate.Card
- func HasSpec() predicate.Card
- func HasSpecWith(preds ...predicate.Spec) predicate.Card
- func ID(id int) predicate.Card
- func IDEQ(id int) predicate.Card
- func IDGT(id int) predicate.Card
- func IDGTE(id int) predicate.Card
- func IDIn(ids ...int) predicate.Card
- func IDLT(id int) predicate.Card
- func IDLTE(id int) predicate.Card
- func IDNEQ(id int) predicate.Card
- func IDNotIn(ids ...int) predicate.Card
- func Name(v string) predicate.Card
- func NameContains(v string) predicate.Card
- func NameContainsFold(v string) predicate.Card
- func NameEQ(v string) predicate.Card
- func NameEqualFold(v string) predicate.Card
- func NameGT(v string) predicate.Card
- func NameGTE(v string) predicate.Card
- func NameHasPrefix(v string) predicate.Card
- func NameHasSuffix(v string) predicate.Card
- func NameIn(vs ...string) predicate.Card
- func NameIsNil() predicate.Card
- func NameLT(v string) predicate.Card
- func NameLTE(v string) predicate.Card
- func NameNEQ(v string) predicate.Card
- func NameNotIn(vs ...string) predicate.Card
- func NameNotNil() predicate.Card
- func Not(p predicate.Card) predicate.Card
- func Number(v string) predicate.Card
- func NumberContains(v string) predicate.Card
- func NumberContainsFold(v string) predicate.Card
- func NumberEQ(v string) predicate.Card
- func NumberEqualFold(v string) predicate.Card
- func NumberGT(v string) predicate.Card
- func NumberGTE(v string) predicate.Card
- func NumberHasPrefix(v string) predicate.Card
- func NumberHasSuffix(v string) predicate.Card
- func NumberIn(vs ...string) predicate.Card
- func NumberLT(v string) predicate.Card
- func NumberLTE(v string) predicate.Card
- func NumberNEQ(v string) predicate.Card
- func NumberNotIn(vs ...string) predicate.Card
- func Or(predicates ...predicate.Card) predicate.Card
- func UpdateTime(v time.Time) predicate.Card
- func UpdateTimeEQ(v time.Time) predicate.Card
- func UpdateTimeGT(v time.Time) predicate.Card
- func UpdateTimeGTE(v time.Time) predicate.Card
- func UpdateTimeIn(vs ...time.Time) predicate.Card
- func UpdateTimeLT(v time.Time) predicate.Card
- func UpdateTimeLTE(v time.Time) predicate.Card
- func UpdateTimeNEQ(v time.Time) predicate.Card
- func UpdateTimeNotIn(vs ...time.Time) predicate.Card
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the card type in the database. Label = "card" // 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" // FieldBalance holds the string denoting the balance field in the database. FieldBalance = "balance" // FieldNumber holds the string denoting the number field in the database. FieldNumber = "number" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeSpec holds the string denoting the spec edge name in mutations. EdgeSpec = "spec" // Table holds the table name of the card in the database. Table = "cards" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cards" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_card" // SpecTable is the table that holds the spec relation/edge. The primary key declared below. SpecTable = "spec_card" // SpecInverseTable is the table name for the Spec entity. // It exists in this package in order to avoid circular dependency with the "spec" package. SpecInverseTable = "specs" )
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 // DefaultBalance holds the default value on creation for the "balance" field. DefaultBalance float64 // NumberValidator is a validator for the "number" field. It is called by the builders before save. NumberValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldBalance, FieldNumber, FieldName, }
Columns holds all SQL columns for card fields.
var ForeignKeys = []string{
"user_card",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "cards" table and are not defined as standalone fields in the schema.
var ( // SpecPrimaryKey and SpecColumn2 are the table columns denoting the // primary key for the spec relation (M2M). SpecPrimaryKey = []string{"spec_id", "card_id"} )
Functions ¶
func Balance ¶ added in v0.7.0
Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.
func BalanceGTE ¶ added in v0.7.0
BalanceGTE applies the GTE predicate on the "balance" field.
func BalanceLTE ¶ added in v0.7.0
BalanceLTE applies the LTE predicate on the "balance" field.
func BalanceNEQ ¶ added in v0.7.0
BalanceNEQ applies the NEQ predicate on the "balance" field.
func BalanceNotIn ¶ added in v0.7.0
BalanceNotIn applies the NotIn predicate on the "balance" 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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasSpecWith ¶
HasSpecWith applies the HasEdge predicate on the "spec" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func Number ¶
Number applies equality check predicate on the "number" field. It's identical to NumberEQ.
func NumberContains ¶
NumberContains applies the Contains predicate on the "number" field.
func NumberContainsFold ¶
NumberContainsFold applies the ContainsFold predicate on the "number" field.
func NumberEqualFold ¶
NumberEqualFold applies the EqualFold predicate on the "number" field.
func NumberHasPrefix ¶
NumberHasPrefix applies the HasPrefix predicate on the "number" field.
func NumberHasSuffix ¶
NumberHasSuffix applies the HasSuffix predicate on the "number" field.
func NumberNotIn ¶
NumberNotIn applies the NotIn predicate on the "number" 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 ¶
This section is empty.