card

package
v0.0.0-...-c8c1909 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0, MIT 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"
	// 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 server edge name in mutations.
	EdgeUser = "server"
	// Table holds the table name of the card in the database.
	Table = "cards"
	// UserTable is the table that holds the server 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 "server" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the server relation/edge.
	UserColumn = "user_cards"
)

Variables

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

Columns holds all SQL columns for card fields.

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

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

And groups predicates with the AND operator between them.

func CardNo

func CardNo(v string) predicate.Card

CardNo applies equality check predicate on the "card_no" field. It's identical to CardNoEQ.

func CardNoContains

func CardNoContains(v string) predicate.Card

CardNoContains applies the Contains predicate on the "card_no" field.

func CardNoContainsFold

func CardNoContainsFold(v string) predicate.Card

CardNoContainsFold applies the ContainsFold predicate on the "card_no" field.

func CardNoEQ

func CardNoEQ(v string) predicate.Card

CardNoEQ applies the EQ predicate on the "card_no" field.

func CardNoEqualFold

func CardNoEqualFold(v string) predicate.Card

CardNoEqualFold applies the EqualFold predicate on the "card_no" field.

func CardNoGT

func CardNoGT(v string) predicate.Card

CardNoGT applies the GT predicate on the "card_no" field.

func CardNoGTE

func CardNoGTE(v string) predicate.Card

CardNoGTE applies the GTE predicate on the "card_no" field.

func CardNoHasPrefix

func CardNoHasPrefix(v string) predicate.Card

CardNoHasPrefix applies the HasPrefix predicate on the "card_no" field.

func CardNoHasSuffix

func CardNoHasSuffix(v string) predicate.Card

CardNoHasSuffix applies the HasSuffix predicate on the "card_no" field.

func CardNoIn

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

CardNoIn applies the In predicate on the "card_no" field.

func CardNoLT

func CardNoLT(v string) predicate.Card

CardNoLT applies the LT predicate on the "card_no" field.

func CardNoLTE

func CardNoLTE(v string) predicate.Card

CardNoLTE applies the LTE predicate on the "card_no" field.

func CardNoNEQ

func CardNoNEQ(v string) predicate.Card

CardNoNEQ applies the NEQ predicate on the "card_no" field.

func CardNoNotIn

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

CardNoNotIn applies the NotIn predicate on the "card_no" field.

func Ccv

func Ccv(v string) predicate.Card

Ccv applies equality check predicate on the "ccv" field. It's identical to CcvEQ.

func CcvContains

func CcvContains(v string) predicate.Card

CcvContains applies the Contains predicate on the "ccv" field.

func CcvContainsFold

func CcvContainsFold(v string) predicate.Card

CcvContainsFold applies the ContainsFold predicate on the "ccv" field.

func CcvEQ

func CcvEQ(v string) predicate.Card

CcvEQ applies the EQ predicate on the "ccv" field.

func CcvEqualFold

func CcvEqualFold(v string) predicate.Card

CcvEqualFold applies the EqualFold predicate on the "ccv" field.

func CcvGT

func CcvGT(v string) predicate.Card

CcvGT applies the GT predicate on the "ccv" field.

func CcvGTE

func CcvGTE(v string) predicate.Card

CcvGTE applies the GTE predicate on the "ccv" field.

func CcvHasPrefix

func CcvHasPrefix(v string) predicate.Card

CcvHasPrefix applies the HasPrefix predicate on the "ccv" field.

func CcvHasSuffix

func CcvHasSuffix(v string) predicate.Card

CcvHasSuffix applies the HasSuffix predicate on the "ccv" field.

func CcvIn

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

CcvIn applies the In predicate on the "ccv" field.

func CcvLT

func CcvLT(v string) predicate.Card

CcvLT applies the LT predicate on the "ccv" field.

func CcvLTE

func CcvLTE(v string) predicate.Card

CcvLTE applies the LTE predicate on the "ccv" field.

func CcvNEQ

func CcvNEQ(v string) predicate.Card

CcvNEQ applies the NEQ predicate on the "ccv" field.

func CcvNotIn

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

CcvNotIn applies the NotIn predicate on the "ccv" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Card

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Card

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Card

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Card

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Card

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Card

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Card

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Expires

func Expires(v string) predicate.Card

Expires applies equality check predicate on the "expires" field. It's identical to ExpiresEQ.

func ExpiresContains

func ExpiresContains(v string) predicate.Card

ExpiresContains applies the Contains predicate on the "expires" field.

func ExpiresContainsFold

func ExpiresContainsFold(v string) predicate.Card

ExpiresContainsFold applies the ContainsFold predicate on the "expires" field.

func ExpiresEQ

func ExpiresEQ(v string) predicate.Card

ExpiresEQ applies the EQ predicate on the "expires" field.

func ExpiresEqualFold

func ExpiresEqualFold(v string) predicate.Card

ExpiresEqualFold applies the EqualFold predicate on the "expires" field.

func ExpiresGT

func ExpiresGT(v string) predicate.Card

ExpiresGT applies the GT predicate on the "expires" field.

func ExpiresGTE

func ExpiresGTE(v string) predicate.Card

ExpiresGTE applies the GTE predicate on the "expires" field.

func ExpiresHasPrefix

func ExpiresHasPrefix(v string) predicate.Card

ExpiresHasPrefix applies the HasPrefix predicate on the "expires" field.

func ExpiresHasSuffix

func ExpiresHasSuffix(v string) predicate.Card

ExpiresHasSuffix applies the HasSuffix predicate on the "expires" field.

func ExpiresIn

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

ExpiresIn applies the In predicate on the "expires" field.

func ExpiresLT

func ExpiresLT(v string) predicate.Card

ExpiresLT applies the LT predicate on the "expires" field.

func ExpiresLTE

func ExpiresLTE(v string) predicate.Card

ExpiresLTE applies the LTE predicate on the "expires" field.

func ExpiresNEQ

func ExpiresNEQ(v string) predicate.Card

ExpiresNEQ applies the NEQ predicate on the "expires" field.

func ExpiresNotIn

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

ExpiresNotIn applies the NotIn predicate on the "expires" field.

func HasUser

func HasUser() predicate.Card

HasUser applies the HasEdge predicate on the "server" edge.

func HasUserWith

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

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

func ID

func ID(id int64) predicate.Card

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Card

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Card

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Card

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Card

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Card

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Card

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Card

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Card

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Card

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Card

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Card

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Card

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Card

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Card

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Card

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Card

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Card

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Card

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Card

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Card

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Card

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Card

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Card

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Card

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Card

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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