Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func ColorIdentity(v uint8) predicate.Card
- func ColorIdentityEQ(v uint8) predicate.Card
- func ColorIdentityGT(v uint8) predicate.Card
- func ColorIdentityGTE(v uint8) predicate.Card
- func ColorIdentityIn(vs ...uint8) predicate.Card
- func ColorIdentityLT(v uint8) predicate.Card
- func ColorIdentityLTE(v uint8) predicate.Card
- func ColorIdentityNEQ(v uint8) predicate.Card
- func ColorIdentityNotIn(vs ...uint8) predicate.Card
- func HasFaces() predicate.Card
- func HasFacesWith(preds ...predicate.CardFace) predicate.Card
- func HasRulings() predicate.Card
- func HasRulingsWith(preds ...predicate.Ruling) 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 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 OracleID(v string) predicate.Card
- func OracleIDContains(v string) predicate.Card
- func OracleIDContainsFold(v string) predicate.Card
- func OracleIDEQ(v string) predicate.Card
- func OracleIDEqualFold(v string) predicate.Card
- func OracleIDGT(v string) predicate.Card
- func OracleIDGTE(v string) predicate.Card
- func OracleIDHasPrefix(v string) predicate.Card
- func OracleIDHasSuffix(v string) predicate.Card
- func OracleIDIn(vs ...string) predicate.Card
- func OracleIDLT(v string) predicate.Card
- func OracleIDLTE(v string) predicate.Card
- func OracleIDNEQ(v string) predicate.Card
- func OracleIDNotIn(vs ...string) predicate.Card
- func ValidColumn(column string) bool
- type OrderOption
- func ByColorIdentity(opts ...sql.OrderTermOption) OrderOption
- func ByFaces(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFacesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOracleID(opts ...sql.OrderTermOption) OrderOption
- func ByRulings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRulingsCount(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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldOracleID, FieldColorIdentity, }
Columns holds all SQL columns for card fields.
Functions ¶
func ColorIdentity ¶
ColorIdentity applies equality check predicate on the "color_identity" field. It's identical to ColorIdentityEQ.
func ColorIdentityEQ ¶
ColorIdentityEQ applies the EQ predicate on the "color_identity" field.
func ColorIdentityGT ¶
ColorIdentityGT applies the GT predicate on the "color_identity" field.
func ColorIdentityGTE ¶
ColorIdentityGTE applies the GTE predicate on the "color_identity" field.
func ColorIdentityIn ¶
ColorIdentityIn applies the In predicate on the "color_identity" field.
func ColorIdentityLT ¶
ColorIdentityLT applies the LT predicate on the "color_identity" field.
func ColorIdentityLTE ¶
ColorIdentityLTE applies the LTE predicate on the "color_identity" field.
func ColorIdentityNEQ ¶
ColorIdentityNEQ applies the NEQ predicate on the "color_identity" field.
func ColorIdentityNotIn ¶
ColorIdentityNotIn applies the NotIn predicate on the "color_identity" field.
func HasFacesWith ¶
HasFacesWith applies the HasEdge predicate on the "faces" edge with a given conditions (other predicates).
func HasRulings ¶
HasRulings applies the HasEdge predicate on the "rulings" edge.
func HasRulingsWith ¶
HasRulingsWith applies the HasEdge predicate on the "rulings" 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 OracleID ¶
OracleID applies equality check predicate on the "oracle_id" field. It's identical to OracleIDEQ.
func OracleIDContains ¶
OracleIDContains applies the Contains predicate on the "oracle_id" field.
func OracleIDContainsFold ¶
OracleIDContainsFold applies the ContainsFold predicate on the "oracle_id" field.
func OracleIDEQ ¶
OracleIDEQ applies the EQ predicate on the "oracle_id" field.
func OracleIDEqualFold ¶
OracleIDEqualFold applies the EqualFold predicate on the "oracle_id" field.
func OracleIDGT ¶
OracleIDGT applies the GT predicate on the "oracle_id" field.
func OracleIDGTE ¶
OracleIDGTE applies the GTE predicate on the "oracle_id" field.
func OracleIDHasPrefix ¶
OracleIDHasPrefix applies the HasPrefix predicate on the "oracle_id" field.
func OracleIDHasSuffix ¶
OracleIDHasSuffix applies the HasSuffix predicate on the "oracle_id" field.
func OracleIDIn ¶
OracleIDIn applies the In predicate on the "oracle_id" field.
func OracleIDLT ¶
OracleIDLT applies the LT predicate on the "oracle_id" field.
func OracleIDLTE ¶
OracleIDLTE applies the LTE predicate on the "oracle_id" field.
func OracleIDNEQ ¶
OracleIDNEQ applies the NEQ predicate on the "oracle_id" field.
func OracleIDNotIn ¶
OracleIDNotIn applies the NotIn predicate on the "oracle_id" 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 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.