Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func Ccv(v int) predicate.Card
- func CcvEQ(v int) predicate.Card
- func CcvGT(v int) predicate.Card
- func CcvGTE(v int) predicate.Card
- func CcvIn(vs ...int) predicate.Card
- func CcvLT(v int) predicate.Card
- func CcvLTE(v int) predicate.Card
- func CcvNEQ(v int) predicate.Card
- func CcvNotIn(vs ...int) predicate.Card
- func ExpirationMonth(v int) predicate.Card
- func ExpirationMonthEQ(v int) predicate.Card
- func ExpirationMonthGT(v int) predicate.Card
- func ExpirationMonthGTE(v int) predicate.Card
- func ExpirationMonthIn(vs ...int) predicate.Card
- func ExpirationMonthLT(v int) predicate.Card
- func ExpirationMonthLTE(v int) predicate.Card
- func ExpirationMonthNEQ(v int) predicate.Card
- func ExpirationMonthNotIn(vs ...int) predicate.Card
- func ExpirationYear(v int) predicate.Card
- func ExpirationYearEQ(v int) predicate.Card
- func ExpirationYearGT(v int) predicate.Card
- func ExpirationYearGTE(v int) predicate.Card
- func ExpirationYearIn(vs ...int) predicate.Card
- func ExpirationYearLT(v int) predicate.Card
- func ExpirationYearLTE(v int) predicate.Card
- func ExpirationYearNEQ(v int) predicate.Card
- func ExpirationYearNotIn(vs ...int) predicate.Card
- func HasOwner() predicate.Card
- func HasOwnerWith(preds ...predicate.User) predicate.Card
- func ID(id uuid.UUID) predicate.Card
- func IDEQ(id uuid.UUID) predicate.Card
- func IDGT(id uuid.UUID) predicate.Card
- func IDGTE(id uuid.UUID) predicate.Card
- func IDIn(ids ...uuid.UUID) predicate.Card
- func IDLT(id uuid.UUID) predicate.Card
- func IDLTE(id uuid.UUID) predicate.Card
- func IDNEQ(id uuid.UUID) predicate.Card
- func IDNotIn(ids ...uuid.UUID) 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 NameLT(v string) predicate.Card
- func NameLTE(v string) predicate.Card
- func NameNEQ(v string) predicate.Card
- func NameNotIn(vs ...string) 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
- type OrderOption
- func ByCcv(opts ...sql.OrderTermOption) OrderOption
- func ByExpirationMonth(opts ...sql.OrderTermOption) OrderOption
- func ByExpirationYear(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNumber(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
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 = "oid" // 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" // FieldCcv holds the string denoting the ccv field in the database. FieldCcv = "ccv" // FieldExpirationYear holds the string denoting the expiration_year field in the database. FieldExpirationYear = "expiration_year" // FieldExpirationMonth holds the string denoting the expiration_month field in the database. FieldExpirationMonth = "expiration_month" // 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 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_cards" )
Variables ¶
var ( // 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 // CcvValidator is a validator for the "ccv" field. It is called by the builders before save. CcvValidator func(int) error // ExpirationYearValidator is a validator for the "expiration_year" field. It is called by the builders before save. ExpirationYearValidator func(int) error // ExpirationMonthValidator is a validator for the "expiration_month" field. It is called by the builders before save. ExpirationMonthValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldNumber, FieldName, FieldCcv, FieldExpirationYear, FieldExpirationMonth, }
Columns holds all SQL columns for card fields.
var ForeignKeys = []string{
"user_cards",
}
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 ExpirationMonth ¶
ExpirationMonth applies equality check predicate on the "expiration_month" field. It's identical to ExpirationMonthEQ.
func ExpirationMonthEQ ¶
ExpirationMonthEQ applies the EQ predicate on the "expiration_month" field.
func ExpirationMonthGT ¶
ExpirationMonthGT applies the GT predicate on the "expiration_month" field.
func ExpirationMonthGTE ¶
ExpirationMonthGTE applies the GTE predicate on the "expiration_month" field.
func ExpirationMonthIn ¶
ExpirationMonthIn applies the In predicate on the "expiration_month" field.
func ExpirationMonthLT ¶
ExpirationMonthLT applies the LT predicate on the "expiration_month" field.
func ExpirationMonthLTE ¶
ExpirationMonthLTE applies the LTE predicate on the "expiration_month" field.
func ExpirationMonthNEQ ¶
ExpirationMonthNEQ applies the NEQ predicate on the "expiration_month" field.
func ExpirationMonthNotIn ¶
ExpirationMonthNotIn applies the NotIn predicate on the "expiration_month" field.
func ExpirationYear ¶
ExpirationYear applies equality check predicate on the "expiration_year" field. It's identical to ExpirationYearEQ.
func ExpirationYearEQ ¶
ExpirationYearEQ applies the EQ predicate on the "expiration_year" field.
func ExpirationYearGT ¶
ExpirationYearGT applies the GT predicate on the "expiration_year" field.
func ExpirationYearGTE ¶
ExpirationYearGTE applies the GTE predicate on the "expiration_year" field.
func ExpirationYearIn ¶
ExpirationYearIn applies the In predicate on the "expiration_year" field.
func ExpirationYearLT ¶
ExpirationYearLT applies the LT predicate on the "expiration_year" field.
func ExpirationYearLTE ¶
ExpirationYearLTE applies the LTE predicate on the "expiration_year" field.
func ExpirationYearNEQ ¶
ExpirationYearNEQ applies the NEQ predicate on the "expiration_year" field.
func ExpirationYearNotIn ¶
ExpirationYearNotIn applies the NotIn predicate on the "expiration_year" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" 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 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Card queries.
func ByCcv ¶
func ByCcv(opts ...sql.OrderTermOption) OrderOption
ByCcv orders the results by the ccv field.
func ByExpirationMonth ¶
func ByExpirationMonth(opts ...sql.OrderTermOption) OrderOption
ByExpirationMonth orders the results by the expiration_month field.
func ByExpirationYear ¶
func ByExpirationYear(opts ...sql.OrderTermOption) OrderOption
ByExpirationYear orders the results by the expiration_year field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNumber ¶
func ByNumber(opts ...sql.OrderTermOption) OrderOption
ByNumber orders the results by the number field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.