Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func CardNo(v string) predicate.Card
- func CardNoContains(v string) predicate.Card
- func CardNoContainsFold(v string) predicate.Card
- func CardNoEQ(v string) predicate.Card
- func CardNoEqualFold(v string) predicate.Card
- func CardNoGT(v string) predicate.Card
- func CardNoGTE(v string) predicate.Card
- func CardNoHasPrefix(v string) predicate.Card
- func CardNoHasSuffix(v string) predicate.Card
- func CardNoIn(vs ...string) predicate.Card
- func CardNoLT(v string) predicate.Card
- func CardNoLTE(v string) predicate.Card
- func CardNoNEQ(v string) predicate.Card
- func CardNoNotIn(vs ...string) predicate.Card
- func Ccv(v string) predicate.Card
- func CcvContains(v string) predicate.Card
- func CcvContainsFold(v string) predicate.Card
- func CcvEQ(v string) predicate.Card
- func CcvEqualFold(v string) predicate.Card
- func CcvGT(v string) predicate.Card
- func CcvGTE(v string) predicate.Card
- func CcvHasPrefix(v string) predicate.Card
- func CcvHasSuffix(v string) predicate.Card
- func CcvIn(vs ...string) predicate.Card
- func CcvLT(v string) predicate.Card
- func CcvLTE(v string) predicate.Card
- func CcvNEQ(v string) predicate.Card
- func CcvNotIn(vs ...string) predicate.Card
- func CreatedAt(v time.Time) predicate.Card
- func CreatedAtEQ(v time.Time) predicate.Card
- func CreatedAtGT(v time.Time) predicate.Card
- func CreatedAtGTE(v time.Time) predicate.Card
- func CreatedAtIn(vs ...time.Time) predicate.Card
- func CreatedAtLT(v time.Time) predicate.Card
- func CreatedAtLTE(v time.Time) predicate.Card
- func CreatedAtNEQ(v time.Time) predicate.Card
- func CreatedAtNotIn(vs ...time.Time) predicate.Card
- func Expires(v string) predicate.Card
- func ExpiresContains(v string) predicate.Card
- func ExpiresContainsFold(v string) predicate.Card
- func ExpiresEQ(v string) predicate.Card
- func ExpiresEqualFold(v string) predicate.Card
- func ExpiresGT(v string) predicate.Card
- func ExpiresGTE(v string) predicate.Card
- func ExpiresHasPrefix(v string) predicate.Card
- func ExpiresHasSuffix(v string) predicate.Card
- func ExpiresIn(vs ...string) predicate.Card
- func ExpiresLT(v string) predicate.Card
- func ExpiresLTE(v string) predicate.Card
- func ExpiresNEQ(v string) predicate.Card
- func ExpiresNotIn(vs ...string) predicate.Card
- func HasUser() predicate.Card
- func HasUserWith(preds ...predicate.User) predicate.Card
- func ID(id int64) predicate.Card
- func IDEQ(id int64) predicate.Card
- func IDGT(id int64) predicate.Card
- func IDGTE(id int64) predicate.Card
- func IDIn(ids ...int64) predicate.Card
- func IDLT(id int64) predicate.Card
- func IDLTE(id int64) predicate.Card
- func IDNEQ(id int64) predicate.Card
- func IDNotIn(ids ...int64) 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 Or(predicates ...predicate.Card) predicate.Card
- func UpdatedAt(v time.Time) predicate.Card
- func UpdatedAtEQ(v time.Time) predicate.Card
- func UpdatedAtGT(v time.Time) predicate.Card
- func UpdatedAtGTE(v time.Time) predicate.Card
- func UpdatedAtIn(vs ...time.Time) predicate.Card
- func UpdatedAtLT(v time.Time) predicate.Card
- func UpdatedAtLTE(v time.Time) predicate.Card
- func UpdatedAtNEQ(v time.Time) predicate.Card
- func UpdatedAtNotIn(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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCardNo holds the string denoting the card_no field in the database. FieldCardNo = "card_no" // FieldCcv holds the string denoting the ccv field in the database. FieldCcv = "ccv" // FieldExpires holds the string denoting the expires field in the database. FieldExpires = "expires" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the card in the database. Table = "cards" // UserTable is the table the holds the user relation/edge. UserTable = "cards" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_cards" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldCardNo, FieldCcv, FieldExpires, FieldCreatedAt, FieldUpdatedAt, }
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 CardNo ¶
CardNo applies equality check predicate on the "card_no" field. It's identical to CardNoEQ.
func CardNoContains ¶
CardNoContains applies the Contains predicate on the "card_no" field.
func CardNoContainsFold ¶
CardNoContainsFold applies the ContainsFold predicate on the "card_no" field.
func CardNoEqualFold ¶
CardNoEqualFold applies the EqualFold predicate on the "card_no" field.
func CardNoHasPrefix ¶
CardNoHasPrefix applies the HasPrefix predicate on the "card_no" field.
func CardNoHasSuffix ¶
CardNoHasSuffix applies the HasSuffix predicate on the "card_no" field.
func CardNoNotIn ¶
CardNoNotIn applies the NotIn predicate on the "card_no" field.
func CcvContains ¶
CcvContains applies the Contains predicate on the "ccv" field.
func CcvContainsFold ¶
CcvContainsFold applies the ContainsFold predicate on the "ccv" field.
func CcvEqualFold ¶
CcvEqualFold applies the EqualFold predicate on the "ccv" field.
func CcvHasPrefix ¶
CcvHasPrefix applies the HasPrefix predicate on the "ccv" field.
func CcvHasSuffix ¶
CcvHasSuffix applies the HasSuffix predicate on the "ccv" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Expires ¶
Expires applies equality check predicate on the "expires" field. It's identical to ExpiresEQ.
func ExpiresContains ¶
ExpiresContains applies the Contains predicate on the "expires" field.
func ExpiresContainsFold ¶
ExpiresContainsFold applies the ContainsFold predicate on the "expires" field.
func ExpiresEqualFold ¶
ExpiresEqualFold applies the EqualFold predicate on the "expires" field.
func ExpiresGTE ¶
ExpiresGTE applies the GTE predicate on the "expires" field.
func ExpiresHasPrefix ¶
ExpiresHasPrefix applies the HasPrefix predicate on the "expires" field.
func ExpiresHasSuffix ¶
ExpiresHasSuffix applies the HasSuffix predicate on the "expires" field.
func ExpiresLTE ¶
ExpiresLTE applies the LTE predicate on the "expires" field.
func ExpiresNEQ ¶
ExpiresNEQ applies the NEQ predicate on the "expires" field.
func ExpiresNotIn ¶
ExpiresNotIn applies the NotIn predicate on the "expires" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.