Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func ExpiryDate(v time.Time) predicate.Card
- func ExpiryDateEQ(v time.Time) predicate.Card
- func ExpiryDateGT(v time.Time) predicate.Card
- func ExpiryDateGTE(v time.Time) predicate.Card
- func ExpiryDateIn(vs ...time.Time) predicate.Card
- func ExpiryDateLT(v time.Time) predicate.Card
- func ExpiryDateLTE(v time.Time) predicate.Card
- func ExpiryDateNEQ(v time.Time) predicate.Card
- func ExpiryDateNotIn(vs ...time.Time) predicate.Card
- func HasAccount() predicate.Card
- func HasAccountWith(preds ...predicate.Account) predicate.Card
- func HasNetwork() predicate.Card
- func HasNetworkWith(preds ...predicate.CardNetwork) predicate.Card
- func HolderName(v string) predicate.Card
- func HolderNameContains(v string) predicate.Card
- func HolderNameContainsFold(v string) predicate.Card
- func HolderNameEQ(v string) predicate.Card
- func HolderNameEqualFold(v string) predicate.Card
- func HolderNameGT(v string) predicate.Card
- func HolderNameGTE(v string) predicate.Card
- func HolderNameHasPrefix(v string) predicate.Card
- func HolderNameHasSuffix(v string) predicate.Card
- func HolderNameIn(vs ...string) predicate.Card
- func HolderNameLT(v string) predicate.Card
- func HolderNameLTE(v string) predicate.Card
- func HolderNameNEQ(v string) predicate.Card
- func HolderNameNotIn(vs ...string) 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 StartDate(v time.Time) predicate.Card
- func StartDateEQ(v time.Time) predicate.Card
- func StartDateGT(v time.Time) predicate.Card
- func StartDateGTE(v time.Time) predicate.Card
- func StartDateIn(vs ...time.Time) predicate.Card
- func StartDateLT(v time.Time) predicate.Card
- func StartDateLTE(v time.Time) predicate.Card
- func StartDateNEQ(v time.Time) predicate.Card
- func StartDateNotIn(vs ...time.Time) predicate.Card
- func StatusEQ(v Status) predicate.Card
- func StatusIn(vs ...Status) predicate.Card
- func StatusNEQ(v Status) predicate.Card
- func StatusNotIn(vs ...Status) predicate.Card
- func StatusValidator(s Status) error
- func TypeEQ(v Type) predicate.Card
- func TypeIn(vs ...Type) predicate.Card
- func TypeNEQ(v Type) predicate.Card
- func TypeNotIn(vs ...Type) predicate.Card
- func TypeValidator(_type Type) error
- func URL(v string) predicate.Card
- func URLContains(v string) predicate.Card
- func URLContainsFold(v string) predicate.Card
- func URLEQ(v string) predicate.Card
- func URLEqualFold(v string) predicate.Card
- func URLGT(v string) predicate.Card
- func URLGTE(v string) predicate.Card
- func URLHasPrefix(v string) predicate.Card
- func URLHasSuffix(v string) predicate.Card
- func URLIn(vs ...string) predicate.Card
- func URLLT(v string) predicate.Card
- func URLLTE(v string) predicate.Card
- func URLNEQ(v string) predicate.Card
- func URLNotIn(vs ...string) predicate.Card
- func ValidColumn(column string) bool
- type Status
- type Type
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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldNumber holds the string denoting the number field in the database. FieldNumber = "number" // FieldStartDate holds the string denoting the startdate field in the database. FieldStartDate = "start_date" // FieldExpiryDate holds the string denoting the expirydate field in the database. FieldExpiryDate = "expiry_date" // FieldHolderName holds the string denoting the holdername field in the database. FieldHolderName = "holder_name" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // EdgeNetwork holds the string denoting the network edge name in mutations. EdgeNetwork = "network" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // Table holds the table name of the card in the database. Table = "cards" // NetworkTable is the table the holds the network relation/edge. NetworkTable = "cards" // NetworkInverseTable is the table name for the CardNetwork entity. // It exists in this package in order to avoid circular dependency with the "cardnetwork" package. NetworkInverseTable = "card_networks" // NetworkColumn is the table column denoting the network relation/edge. NetworkColumn = "card_network" // AccountTable is the table the holds the account relation/edge. AccountTable = "cards" // AccountInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. AccountInverseTable = "accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "account_cards" )
Variables ¶
var Columns = []string{ FieldID, FieldType, FieldNumber, FieldStartDate, FieldExpiryDate, FieldHolderName, FieldStatus, FieldURL, }
Columns holds all SQL columns for card fields.
var ForeignKeys = []string{
"account_cards",
"card_network",
}
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 ExpiryDate ¶
ExpiryDate applies equality check predicate on the "expiryDate" field. It's identical to ExpiryDateEQ.
func ExpiryDateEQ ¶
ExpiryDateEQ applies the EQ predicate on the "expiryDate" field.
func ExpiryDateGT ¶
ExpiryDateGT applies the GT predicate on the "expiryDate" field.
func ExpiryDateGTE ¶
ExpiryDateGTE applies the GTE predicate on the "expiryDate" field.
func ExpiryDateIn ¶
ExpiryDateIn applies the In predicate on the "expiryDate" field.
func ExpiryDateLT ¶
ExpiryDateLT applies the LT predicate on the "expiryDate" field.
func ExpiryDateLTE ¶
ExpiryDateLTE applies the LTE predicate on the "expiryDate" field.
func ExpiryDateNEQ ¶
ExpiryDateNEQ applies the NEQ predicate on the "expiryDate" field.
func ExpiryDateNotIn ¶
ExpiryDateNotIn applies the NotIn predicate on the "expiryDate" field.
func HasAccount ¶
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func HasNetwork ¶
HasNetwork applies the HasEdge predicate on the "network" edge.
func HasNetworkWith ¶
func HasNetworkWith(preds ...predicate.CardNetwork) predicate.Card
HasNetworkWith applies the HasEdge predicate on the "network" edge with a given conditions (other predicates).
func HolderName ¶
HolderName applies equality check predicate on the "holderName" field. It's identical to HolderNameEQ.
func HolderNameContains ¶
HolderNameContains applies the Contains predicate on the "holderName" field.
func HolderNameContainsFold ¶
HolderNameContainsFold applies the ContainsFold predicate on the "holderName" field.
func HolderNameEQ ¶
HolderNameEQ applies the EQ predicate on the "holderName" field.
func HolderNameEqualFold ¶
HolderNameEqualFold applies the EqualFold predicate on the "holderName" field.
func HolderNameGT ¶
HolderNameGT applies the GT predicate on the "holderName" field.
func HolderNameGTE ¶
HolderNameGTE applies the GTE predicate on the "holderName" field.
func HolderNameHasPrefix ¶
HolderNameHasPrefix applies the HasPrefix predicate on the "holderName" field.
func HolderNameHasSuffix ¶
HolderNameHasSuffix applies the HasSuffix predicate on the "holderName" field.
func HolderNameIn ¶
HolderNameIn applies the In predicate on the "holderName" field.
func HolderNameLT ¶
HolderNameLT applies the LT predicate on the "holderName" field.
func HolderNameLTE ¶
HolderNameLTE applies the LTE predicate on the "holderName" field.
func HolderNameNEQ ¶
HolderNameNEQ applies the NEQ predicate on the "holderName" field.
func HolderNameNotIn ¶
HolderNameNotIn applies the NotIn predicate on the "holderName" 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 StartDate ¶
StartDate applies equality check predicate on the "startDate" field. It's identical to StartDateEQ.
func StartDateEQ ¶
StartDateEQ applies the EQ predicate on the "startDate" field.
func StartDateGT ¶
StartDateGT applies the GT predicate on the "startDate" field.
func StartDateGTE ¶
StartDateGTE applies the GTE predicate on the "startDate" field.
func StartDateIn ¶
StartDateIn applies the In predicate on the "startDate" field.
func StartDateLT ¶
StartDateLT applies the LT predicate on the "startDate" field.
func StartDateLTE ¶
StartDateLTE applies the LTE predicate on the "startDate" field.
func StartDateNEQ ¶
StartDateNEQ applies the NEQ predicate on the "startDate" field.
func StartDateNotIn ¶
StartDateNotIn applies the NotIn predicate on the "startDate" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).