card

package
v0.0.0-...-b44d1c1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 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"
	// FieldOracleID holds the string denoting the oracle_id field in the database.
	FieldOracleID = "oracle_id"
	// FieldColorIdentity holds the string denoting the color_identity field in the database.
	FieldColorIdentity = "color_identity"
	// EdgeFaces holds the string denoting the faces edge name in mutations.
	EdgeFaces = "faces"
	// EdgeRulings holds the string denoting the rulings edge name in mutations.
	EdgeRulings = "rulings"
	// Table holds the table name of the card in the database.
	Table = "cards"
	// FacesTable is the table that holds the faces relation/edge.
	FacesTable = "card_faces"
	// FacesInverseTable is the table name for the CardFace entity.
	// It exists in this package in order to avoid circular dependency with the "cardface" package.
	FacesInverseTable = "card_faces"
	// FacesColumn is the table column denoting the faces relation/edge.
	FacesColumn = "card_face_card"
	// RulingsTable is the table that holds the rulings relation/edge.
	RulingsTable = "rulings"
	// RulingsInverseTable is the table name for the Ruling entity.
	// It exists in this package in order to avoid circular dependency with the "ruling" package.
	RulingsInverseTable = "rulings"
	// RulingsColumn is the table column denoting the rulings relation/edge.
	RulingsColumn = "ruling_card"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// OracleIDValidator is a validator for the "oracle_id" field. It is called by the builders before save.
	OracleIDValidator func(string) error
)

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 ColorIdentity

func ColorIdentity(v uint8) predicate.Card

ColorIdentity applies equality check predicate on the "color_identity" field. It's identical to ColorIdentityEQ.

func ColorIdentityEQ

func ColorIdentityEQ(v uint8) predicate.Card

ColorIdentityEQ applies the EQ predicate on the "color_identity" field.

func ColorIdentityGT

func ColorIdentityGT(v uint8) predicate.Card

ColorIdentityGT applies the GT predicate on the "color_identity" field.

func ColorIdentityGTE

func ColorIdentityGTE(v uint8) predicate.Card

ColorIdentityGTE applies the GTE predicate on the "color_identity" field.

func ColorIdentityIn

func ColorIdentityIn(vs ...uint8) predicate.Card

ColorIdentityIn applies the In predicate on the "color_identity" field.

func ColorIdentityLT

func ColorIdentityLT(v uint8) predicate.Card

ColorIdentityLT applies the LT predicate on the "color_identity" field.

func ColorIdentityLTE

func ColorIdentityLTE(v uint8) predicate.Card

ColorIdentityLTE applies the LTE predicate on the "color_identity" field.

func ColorIdentityNEQ

func ColorIdentityNEQ(v uint8) predicate.Card

ColorIdentityNEQ applies the NEQ predicate on the "color_identity" field.

func ColorIdentityNotIn

func ColorIdentityNotIn(vs ...uint8) predicate.Card

ColorIdentityNotIn applies the NotIn predicate on the "color_identity" field.

func HasFaces

func HasFaces() predicate.Card

HasFaces applies the HasEdge predicate on the "faces" edge.

func HasFacesWith

func HasFacesWith(preds ...predicate.CardFace) predicate.Card

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

func HasRulings

func HasRulings() predicate.Card

HasRulings applies the HasEdge predicate on the "rulings" edge.

func HasRulingsWith

func HasRulingsWith(preds ...predicate.Ruling) predicate.Card

HasRulingsWith applies the HasEdge predicate on the "rulings" 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 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 OracleID

func OracleID(v string) predicate.Card

OracleID applies equality check predicate on the "oracle_id" field. It's identical to OracleIDEQ.

func OracleIDContains

func OracleIDContains(v string) predicate.Card

OracleIDContains applies the Contains predicate on the "oracle_id" field.

func OracleIDContainsFold

func OracleIDContainsFold(v string) predicate.Card

OracleIDContainsFold applies the ContainsFold predicate on the "oracle_id" field.

func OracleIDEQ

func OracleIDEQ(v string) predicate.Card

OracleIDEQ applies the EQ predicate on the "oracle_id" field.

func OracleIDEqualFold

func OracleIDEqualFold(v string) predicate.Card

OracleIDEqualFold applies the EqualFold predicate on the "oracle_id" field.

func OracleIDGT

func OracleIDGT(v string) predicate.Card

OracleIDGT applies the GT predicate on the "oracle_id" field.

func OracleIDGTE

func OracleIDGTE(v string) predicate.Card

OracleIDGTE applies the GTE predicate on the "oracle_id" field.

func OracleIDHasPrefix

func OracleIDHasPrefix(v string) predicate.Card

OracleIDHasPrefix applies the HasPrefix predicate on the "oracle_id" field.

func OracleIDHasSuffix

func OracleIDHasSuffix(v string) predicate.Card

OracleIDHasSuffix applies the HasSuffix predicate on the "oracle_id" field.

func OracleIDIn

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

OracleIDIn applies the In predicate on the "oracle_id" field.

func OracleIDLT

func OracleIDLT(v string) predicate.Card

OracleIDLT applies the LT predicate on the "oracle_id" field.

func OracleIDLTE

func OracleIDLTE(v string) predicate.Card

OracleIDLTE applies the LTE predicate on the "oracle_id" field.

func OracleIDNEQ

func OracleIDNEQ(v string) predicate.Card

OracleIDNEQ applies the NEQ predicate on the "oracle_id" field.

func OracleIDNotIn

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

OracleIDNotIn applies the NotIn predicate on the "oracle_id" 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 ByColorIdentity

func ByColorIdentity(opts ...sql.OrderTermOption) OrderOption

ByColorIdentity orders the results by the color_identity field.

func ByFaces

func ByFaces(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFaces orders the results by faces terms.

func ByFacesCount

func ByFacesCount(opts ...sql.OrderTermOption) OrderOption

ByFacesCount orders the results by faces count.

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 ByOracleID

func ByOracleID(opts ...sql.OrderTermOption) OrderOption

ByOracleID orders the results by the oracle_id field.

func ByRulings

func ByRulings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRulings orders the results by rulings terms.

func ByRulingsCount

func ByRulingsCount(opts ...sql.OrderTermOption) OrderOption

ByRulingsCount orders the results by rulings count.

Jump to

Keyboard shortcuts

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