Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) 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 string) predicate.Card
- func IDEQ(id string) predicate.Card
- func IDGT(id string) predicate.Card
- func IDGTE(id string) predicate.Card
- func IDIn(ids ...string) predicate.Card
- func IDLT(id string) predicate.Card
- func IDLTE(id string) predicate.Card
- func IDNEQ(id string) predicate.Card
- func IDNotIn(ids ...string) predicate.Card
- func Name(v string) predicate.Card
- func NameContains(v string) predicate.Card
- func NameEQ(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 NumberEQ(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
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" // 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" // OwnerInverseLabel holds the string label denoting the owner inverse edge type in the database. OwnerInverseLabel = "user_card" // SpecInverseLabel holds the string label denoting the spec inverse edge type in the database. SpecInverseLabel = "spec_card" )
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 // 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 )
Functions ¶
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 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 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.
Types ¶
This section is empty.