Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Spec) predicate.Spec
- func HasCard() predicate.Spec
- func HasCardWith(preds ...predicate.Card) predicate.Spec
- func ID(id int) predicate.Spec
- func IDEQ(id int) predicate.Spec
- func IDGT(id int) predicate.Spec
- func IDGTE(id int) predicate.Spec
- func IDIn(ids ...int) predicate.Spec
- func IDLT(id int) predicate.Spec
- func IDLTE(id int) predicate.Spec
- func IDNEQ(id int) predicate.Spec
- func IDNotIn(ids ...int) predicate.Spec
- func Not(p predicate.Spec) predicate.Spec
- func Or(predicates ...predicate.Spec) predicate.Spec
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the spec type in the database. Label = "spec" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeCard holds the string denoting the card edge name in mutations. EdgeCard = "card" // Table holds the table name of the spec in the database. Table = "specs" // CardTable is the table that holds the card relation/edge. The primary key declared below. CardTable = "spec_card" // CardInverseTable is the table name for the Card entity. // It exists in this package in order to avoid circular dependency with the "card" package. CardInverseTable = "cards" )
Variables ¶
View Source
var ( // CardPrimaryKey and CardColumn2 are the table columns denoting the // primary key for the card relation (M2M). CardPrimaryKey = []string{"spec_id", "card_id"} )
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for spec fields.
Functions ¶
func HasCardWith ¶
HasCardWith applies the HasEdge predicate on the "card" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.