card

package
v0.0.0-...-a1dc8d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for card fields.

Functions

func And

func And(predicates ...predicate.Card) predicate.Card

And groups predicates with the AND operator between them.

func CvvHash

func CvvHash(v string) predicate.Card

CvvHash applies equality check predicate on the "cvv_hash" field. It's identical to CvvHashEQ.

func CvvHashContains

func CvvHashContains(v string) predicate.Card

CvvHashContains applies the Contains predicate on the "cvv_hash" field.

func CvvHashContainsFold

func CvvHashContainsFold(v string) predicate.Card

CvvHashContainsFold applies the ContainsFold predicate on the "cvv_hash" field.

func CvvHashEQ

func CvvHashEQ(v string) predicate.Card

CvvHashEQ applies the EQ predicate on the "cvv_hash" field.

func CvvHashEqualFold

func CvvHashEqualFold(v string) predicate.Card

CvvHashEqualFold applies the EqualFold predicate on the "cvv_hash" field.

func CvvHashGT

func CvvHashGT(v string) predicate.Card

CvvHashGT applies the GT predicate on the "cvv_hash" field.

func CvvHashGTE

func CvvHashGTE(v string) predicate.Card

CvvHashGTE applies the GTE predicate on the "cvv_hash" field.

func CvvHashHasPrefix

func CvvHashHasPrefix(v string) predicate.Card

CvvHashHasPrefix applies the HasPrefix predicate on the "cvv_hash" field.

func CvvHashHasSuffix

func CvvHashHasSuffix(v string) predicate.Card

CvvHashHasSuffix applies the HasSuffix predicate on the "cvv_hash" field.

func CvvHashIn

func CvvHashIn(vs ...string) predicate.Card

CvvHashIn applies the In predicate on the "cvv_hash" field.

func CvvHashLT

func CvvHashLT(v string) predicate.Card

CvvHashLT applies the LT predicate on the "cvv_hash" field.

func CvvHashLTE

func CvvHashLTE(v string) predicate.Card

CvvHashLTE applies the LTE predicate on the "cvv_hash" field.

func CvvHashNEQ

func CvvHashNEQ(v string) predicate.Card

CvvHashNEQ applies the NEQ predicate on the "cvv_hash" field.

func CvvHashNotIn

func CvvHashNotIn(vs ...string) predicate.Card

CvvHashNotIn applies the NotIn predicate on the "cvv_hash" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Card

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Card

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Card

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Card

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Card

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.Card

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Card

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Card

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Card

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Card

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.Card

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func HasOwner

func HasOwner() predicate.Card

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Card

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasPayments

func HasPayments() predicate.Card

HasPayments applies the HasEdge predicate on the "payments" edge.

func HasPaymentsWith

func HasPaymentsWith(preds ...predicate.Payment) predicate.Card

HasPaymentsWith applies the HasEdge predicate on the "payments" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Card

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Card

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Card

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Card

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Card

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Card

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Card

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Card

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Card

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func NumberHash

func NumberHash(v string) predicate.Card

NumberHash applies equality check predicate on the "number_hash" field. It's identical to NumberHashEQ.

func NumberHashContains

func NumberHashContains(v string) predicate.Card

NumberHashContains applies the Contains predicate on the "number_hash" field.

func NumberHashContainsFold

func NumberHashContainsFold(v string) predicate.Card

NumberHashContainsFold applies the ContainsFold predicate on the "number_hash" field.

func NumberHashEQ

func NumberHashEQ(v string) predicate.Card

NumberHashEQ applies the EQ predicate on the "number_hash" field.

func NumberHashEqualFold

func NumberHashEqualFold(v string) predicate.Card

NumberHashEqualFold applies the EqualFold predicate on the "number_hash" field.

func NumberHashGT

func NumberHashGT(v string) predicate.Card

NumberHashGT applies the GT predicate on the "number_hash" field.

func NumberHashGTE

func NumberHashGTE(v string) predicate.Card

NumberHashGTE applies the GTE predicate on the "number_hash" field.

func NumberHashHasPrefix

func NumberHashHasPrefix(v string) predicate.Card

NumberHashHasPrefix applies the HasPrefix predicate on the "number_hash" field.

func NumberHashHasSuffix

func NumberHashHasSuffix(v string) predicate.Card

NumberHashHasSuffix applies the HasSuffix predicate on the "number_hash" field.

func NumberHashIn

func NumberHashIn(vs ...string) predicate.Card

NumberHashIn applies the In predicate on the "number_hash" field.

func NumberHashLT

func NumberHashLT(v string) predicate.Card

NumberHashLT applies the LT predicate on the "number_hash" field.

func NumberHashLTE

func NumberHashLTE(v string) predicate.Card

NumberHashLTE applies the LTE predicate on the "number_hash" field.

func NumberHashNEQ

func NumberHashNEQ(v string) predicate.Card

NumberHashNEQ applies the NEQ predicate on the "number_hash" field.

func NumberHashNotIn

func NumberHashNotIn(vs ...string) predicate.Card

NumberHashNotIn applies the NotIn predicate on the "number_hash" field.

func Or

func Or(predicates ...predicate.Card) predicate.Card

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v int) predicate.Card

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v int) predicate.Card

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...int) predicate.Card

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v int) predicate.Card

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...int) predicate.Card

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func Type

func Type(v string) predicate.Card

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Card

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Card

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Card

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Card

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Card

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Card

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Card

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Card

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Card

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Card

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Card

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Card

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Card

TypeNotIn applies the NotIn predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL