Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func CvvHash(v string) predicate.Card
- func CvvHashContains(v string) predicate.Card
- func CvvHashContainsFold(v string) predicate.Card
- func CvvHashEQ(v string) predicate.Card
- func CvvHashEqualFold(v string) predicate.Card
- func CvvHashGT(v string) predicate.Card
- func CvvHashGTE(v string) predicate.Card
- func CvvHashHasPrefix(v string) predicate.Card
- func CvvHashHasSuffix(v string) predicate.Card
- func CvvHashIn(vs ...string) predicate.Card
- func CvvHashLT(v string) predicate.Card
- func CvvHashLTE(v string) predicate.Card
- func CvvHashNEQ(v string) predicate.Card
- func CvvHashNotIn(vs ...string) predicate.Card
- func ExpiresAt(v time.Time) predicate.Card
- func ExpiresAtEQ(v time.Time) predicate.Card
- func ExpiresAtGT(v time.Time) predicate.Card
- func ExpiresAtGTE(v time.Time) predicate.Card
- func ExpiresAtIn(vs ...time.Time) predicate.Card
- func ExpiresAtIsNil() predicate.Card
- func ExpiresAtLT(v time.Time) predicate.Card
- func ExpiresAtLTE(v time.Time) predicate.Card
- func ExpiresAtNEQ(v time.Time) predicate.Card
- func ExpiresAtNotIn(vs ...time.Time) predicate.Card
- func ExpiresAtNotNil() predicate.Card
- func HasOwner() predicate.Card
- func HasOwnerWith(preds ...predicate.User) predicate.Card
- func HasPayments() predicate.Card
- func HasPaymentsWith(preds ...predicate.Payment) 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 NumberHash(v string) predicate.Card
- func NumberHashContains(v string) predicate.Card
- func NumberHashContainsFold(v string) predicate.Card
- func NumberHashEQ(v string) predicate.Card
- func NumberHashEqualFold(v string) predicate.Card
- func NumberHashGT(v string) predicate.Card
- func NumberHashGTE(v string) predicate.Card
- func NumberHashHasPrefix(v string) predicate.Card
- func NumberHashHasSuffix(v string) predicate.Card
- func NumberHashIn(vs ...string) predicate.Card
- func NumberHashLT(v string) predicate.Card
- func NumberHashLTE(v string) predicate.Card
- func NumberHashNEQ(v string) predicate.Card
- func NumberHashNotIn(vs ...string) predicate.Card
- func Or(predicates ...predicate.Card) predicate.Card
- func OwnerID(v int) predicate.Card
- func OwnerIDEQ(v int) predicate.Card
- func OwnerIDIn(vs ...int) predicate.Card
- func OwnerIDNEQ(v int) predicate.Card
- func OwnerIDNotIn(vs ...int) predicate.Card
- func Type(v string) predicate.Card
- func TypeContains(v string) predicate.Card
- func TypeContainsFold(v string) predicate.Card
- func TypeEQ(v string) predicate.Card
- func TypeEqualFold(v string) predicate.Card
- func TypeGT(v string) predicate.Card
- func TypeGTE(v string) predicate.Card
- func TypeHasPrefix(v string) predicate.Card
- func TypeHasSuffix(v string) predicate.Card
- func TypeIn(vs ...string) predicate.Card
- func TypeLT(v string) predicate.Card
- func TypeLTE(v string) predicate.Card
- func TypeNEQ(v string) predicate.Card
- func TypeNotIn(vs ...string) predicate.Card
- func ValidColumn(column string) bool
- type OrderOption
- func ByCvvHash(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNumberHash(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByPayments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPaymentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByType(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 = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldNumberHash holds the string denoting the number_hash field in the database. FieldNumberHash = "number_hash" // FieldCvvHash holds the string denoting the cvv_hash field in the database. FieldCvvHash = "cvv_hash" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgePayments holds the string denoting the payments edge name in mutations. EdgePayments = "payments" // 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 = "owner_id" // PaymentsTable is the table that holds the payments relation/edge. PaymentsTable = "payments" // PaymentsInverseTable is the table name for the Payment entity. // It exists in this package in order to avoid circular dependency with the "payment" package. PaymentsInverseTable = "payments" // PaymentsColumn is the table column denoting the payments relation/edge. PaymentsColumn = "card_id" )
Variables ¶
var ( // DefaultType holds the default value on creation for the "type" field. DefaultType string // DefaultOwnerID holds the default value on creation for the "owner_id" field. DefaultOwnerID int )
var Columns = []string{ FieldID, FieldType, FieldNumberHash, FieldCvvHash, FieldExpiresAt, FieldOwnerID, }
Columns holds all SQL columns for card fields.
Functions ¶
func CvvHash ¶
CvvHash applies equality check predicate on the "cvv_hash" field. It's identical to CvvHashEQ.
func CvvHashContains ¶
CvvHashContains applies the Contains predicate on the "cvv_hash" field.
func CvvHashContainsFold ¶
CvvHashContainsFold applies the ContainsFold predicate on the "cvv_hash" field.
func CvvHashEqualFold ¶
CvvHashEqualFold applies the EqualFold predicate on the "cvv_hash" field.
func CvvHashGTE ¶
CvvHashGTE applies the GTE predicate on the "cvv_hash" field.
func CvvHashHasPrefix ¶
CvvHashHasPrefix applies the HasPrefix predicate on the "cvv_hash" field.
func CvvHashHasSuffix ¶
CvvHashHasSuffix applies the HasSuffix predicate on the "cvv_hash" field.
func CvvHashLTE ¶
CvvHashLTE applies the LTE predicate on the "cvv_hash" field.
func CvvHashNEQ ¶
CvvHashNEQ applies the NEQ predicate on the "cvv_hash" field.
func CvvHashNotIn ¶
CvvHashNotIn applies the NotIn predicate on the "cvv_hash" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasPayments ¶
HasPayments applies the HasEdge predicate on the "payments" edge.
func HasPaymentsWith ¶
HasPaymentsWith applies the HasEdge predicate on the "payments" edge with a given conditions (other predicates).
func NumberHash ¶
NumberHash applies equality check predicate on the "number_hash" field. It's identical to NumberHashEQ.
func NumberHashContains ¶
NumberHashContains applies the Contains predicate on the "number_hash" field.
func NumberHashContainsFold ¶
NumberHashContainsFold applies the ContainsFold predicate on the "number_hash" field.
func NumberHashEQ ¶
NumberHashEQ applies the EQ predicate on the "number_hash" field.
func NumberHashEqualFold ¶
NumberHashEqualFold applies the EqualFold predicate on the "number_hash" field.
func NumberHashGT ¶
NumberHashGT applies the GT predicate on the "number_hash" field.
func NumberHashGTE ¶
NumberHashGTE applies the GTE predicate on the "number_hash" field.
func NumberHashHasPrefix ¶
NumberHashHasPrefix applies the HasPrefix predicate on the "number_hash" field.
func NumberHashHasSuffix ¶
NumberHashHasSuffix applies the HasSuffix predicate on the "number_hash" field.
func NumberHashIn ¶
NumberHashIn applies the In predicate on the "number_hash" field.
func NumberHashLT ¶
NumberHashLT applies the LT predicate on the "number_hash" field.
func NumberHashLTE ¶
NumberHashLTE applies the LTE predicate on the "number_hash" field.
func NumberHashNEQ ¶
NumberHashNEQ applies the NEQ predicate on the "number_hash" field.
func NumberHashNotIn ¶
NumberHashNotIn applies the NotIn predicate on the "number_hash" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" 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 ByCvvHash ¶
func ByCvvHash(opts ...sql.OrderTermOption) OrderOption
ByCvvHash orders the results by the cvv_hash field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNumberHash ¶
func ByNumberHash(opts ...sql.OrderTermOption) OrderOption
ByNumberHash orders the results by the number_hash field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByPayments ¶
func ByPayments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPayments orders the results by payments terms.
func ByPaymentsCount ¶
func ByPaymentsCount(opts ...sql.OrderTermOption) OrderOption
ByPaymentsCount orders the results by payments count.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.