Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func Expired(v time.Time) predicate.Card
- func ExpiredEQ(v time.Time) predicate.Card
- func ExpiredGT(v time.Time) predicate.Card
- func ExpiredGTE(v time.Time) predicate.Card
- func ExpiredIn(vs ...time.Time) predicate.Card
- func ExpiredLT(v time.Time) predicate.Card
- func ExpiredLTE(v time.Time) predicate.Card
- func ExpiredNEQ(v time.Time) predicate.Card
- func ExpiredNotIn(vs ...time.Time) predicate.Card
- func HasOwner() predicate.Card
- func HasOwnerWith(preds ...predicate.User) 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 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 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" // FieldExpired holds the string denoting the expired field in the database. FieldExpired = "expired" // FieldNumber holds the string denoting the number field in the database. FieldNumber = "number" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the card in the database. Table = "cards" // OwnerTable is the table the 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" )
Variables ¶
var Columns = []string{ FieldID, FieldExpired, FieldNumber, }
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.
Functions ¶
func Expired ¶
Expired applies equality check predicate on the "expired" field. It's identical to ExpiredEQ.
func ExpiredGTE ¶
ExpiredGTE applies the GTE predicate on the "expired" field.
func ExpiredLTE ¶
ExpiredLTE applies the LTE predicate on the "expired" field.
func ExpiredNEQ ¶
ExpiredNEQ applies the NEQ predicate on the "expired" field.
func ExpiredNotIn ¶
ExpiredNotIn applies the NotIn predicate on the "expired" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.