Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Deck) predicate.Deck
- func HasCards() predicate.Deck
- func HasCardsWith(preds ...predicate.Card) predicate.Deck
- func HasRevision() predicate.Deck
- func HasRevisionWith(preds ...predicate.Revision) predicate.Deck
- func ID(id int) predicate.Deck
- func IDEQ(id int) predicate.Deck
- func IDGT(id int) predicate.Deck
- func IDGTE(id int) predicate.Deck
- func IDIn(ids ...int) predicate.Deck
- func IDLT(id int) predicate.Deck
- func IDLTE(id int) predicate.Deck
- func IDNEQ(id int) predicate.Deck
- func IDNotIn(ids ...int) predicate.Deck
- func Key(v string) predicate.Deck
- func KeyContains(v string) predicate.Deck
- func KeyContainsFold(v string) predicate.Deck
- func KeyEQ(v string) predicate.Deck
- func KeyEqualFold(v string) predicate.Deck
- func KeyGT(v string) predicate.Deck
- func KeyGTE(v string) predicate.Deck
- func KeyHasPrefix(v string) predicate.Deck
- func KeyHasSuffix(v string) predicate.Deck
- func KeyIn(vs ...string) predicate.Deck
- func KeyLT(v string) predicate.Deck
- func KeyLTE(v string) predicate.Deck
- func KeyNEQ(v string) predicate.Deck
- func KeyNotIn(vs ...string) predicate.Deck
- func NameEn(v string) predicate.Deck
- func NameEnContains(v string) predicate.Deck
- func NameEnContainsFold(v string) predicate.Deck
- func NameEnEQ(v string) predicate.Deck
- func NameEnEqualFold(v string) predicate.Deck
- func NameEnGT(v string) predicate.Deck
- func NameEnGTE(v string) predicate.Deck
- func NameEnHasPrefix(v string) predicate.Deck
- func NameEnHasSuffix(v string) predicate.Deck
- func NameEnIn(vs ...string) predicate.Deck
- func NameEnIsNil() predicate.Deck
- func NameEnLT(v string) predicate.Deck
- func NameEnLTE(v string) predicate.Deck
- func NameEnNEQ(v string) predicate.Deck
- func NameEnNotIn(vs ...string) predicate.Deck
- func NameEnNotNil() predicate.Deck
- func NameJa(v string) predicate.Deck
- func NameJaContains(v string) predicate.Deck
- func NameJaContainsFold(v string) predicate.Deck
- func NameJaEQ(v string) predicate.Deck
- func NameJaEqualFold(v string) predicate.Deck
- func NameJaGT(v string) predicate.Deck
- func NameJaGTE(v string) predicate.Deck
- func NameJaHasPrefix(v string) predicate.Deck
- func NameJaHasSuffix(v string) predicate.Deck
- func NameJaIn(vs ...string) predicate.Deck
- func NameJaIsNil() predicate.Deck
- func NameJaLT(v string) predicate.Deck
- func NameJaLTE(v string) predicate.Deck
- func NameJaNEQ(v string) predicate.Deck
- func NameJaNotIn(vs ...string) predicate.Deck
- func NameJaNotNil() predicate.Deck
- func Not(p predicate.Deck) predicate.Deck
- func Or(predicates ...predicate.Deck) predicate.Deck
- func RevisionID(v int) predicate.Deck
- func RevisionIDEQ(v int) predicate.Deck
- func RevisionIDIn(vs ...int) predicate.Deck
- func RevisionIDNEQ(v int) predicate.Deck
- func RevisionIDNotIn(vs ...int) predicate.Deck
- func ValidColumn(column string) bool
- type OrderOption
- func ByCards(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCardsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByNameEn(opts ...sql.OrderTermOption) OrderOption
- func ByNameJa(opts ...sql.OrderTermOption) OrderOption
- func ByRevisionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRevisionID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the deck type in the database. Label = "deck" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldRevisionID holds the string denoting the revision_id field in the database. FieldRevisionID = "revision_id" // FieldNameJa holds the string denoting the name_ja field in the database. FieldNameJa = "name_ja" // FieldNameEn holds the string denoting the name_en field in the database. FieldNameEn = "name_en" // EdgeCards holds the string denoting the cards edge name in mutations. EdgeCards = "cards" // EdgeRevision holds the string denoting the revision edge name in mutations. EdgeRevision = "revision" // Table holds the table name of the deck in the database. Table = "decks" // CardsTable is the table that holds the cards relation/edge. CardsTable = "cards" // CardsInverseTable is the table name for the Card entity. // It exists in this package in order to avoid circular dependency with the "card" package. CardsInverseTable = "cards" // CardsColumn is the table column denoting the cards relation/edge. CardsColumn = "deck_id" // RevisionTable is the table that holds the revision relation/edge. RevisionTable = "decks" // RevisionInverseTable is the table name for the Revision entity. // It exists in this package in order to avoid circular dependency with the "revision" package. RevisionInverseTable = "revisions" // RevisionColumn is the table column denoting the revision relation/edge. RevisionColumn = "revision_id" )
Variables ¶
var Columns = []string{ FieldID, FieldKey, FieldRevisionID, FieldNameJa, FieldNameEn, }
Columns holds all SQL columns for deck fields.
var ( // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error )
Functions ¶
func HasCardsWith ¶
HasCardsWith applies the HasEdge predicate on the "cards" edge with a given conditions (other predicates).
func HasRevision ¶
HasRevision applies the HasEdge predicate on the "revision" edge.
func HasRevisionWith ¶
HasRevisionWith applies the HasEdge predicate on the "revision" edge with a given conditions (other predicates).
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func NameEn ¶
NameEn applies equality check predicate on the "name_en" field. It's identical to NameEnEQ.
func NameEnContains ¶
NameEnContains applies the Contains predicate on the "name_en" field.
func NameEnContainsFold ¶
NameEnContainsFold applies the ContainsFold predicate on the "name_en" field.
func NameEnEqualFold ¶
NameEnEqualFold applies the EqualFold predicate on the "name_en" field.
func NameEnHasPrefix ¶
NameEnHasPrefix applies the HasPrefix predicate on the "name_en" field.
func NameEnHasSuffix ¶
NameEnHasSuffix applies the HasSuffix predicate on the "name_en" field.
func NameEnIsNil ¶
NameEnIsNil applies the IsNil predicate on the "name_en" field.
func NameEnNotIn ¶
NameEnNotIn applies the NotIn predicate on the "name_en" field.
func NameEnNotNil ¶
NameEnNotNil applies the NotNil predicate on the "name_en" field.
func NameJa ¶
NameJa applies equality check predicate on the "name_ja" field. It's identical to NameJaEQ.
func NameJaContains ¶
NameJaContains applies the Contains predicate on the "name_ja" field.
func NameJaContainsFold ¶
NameJaContainsFold applies the ContainsFold predicate on the "name_ja" field.
func NameJaEqualFold ¶
NameJaEqualFold applies the EqualFold predicate on the "name_ja" field.
func NameJaHasPrefix ¶
NameJaHasPrefix applies the HasPrefix predicate on the "name_ja" field.
func NameJaHasSuffix ¶
NameJaHasSuffix applies the HasSuffix predicate on the "name_ja" field.
func NameJaIsNil ¶
NameJaIsNil applies the IsNil predicate on the "name_ja" field.
func NameJaNotIn ¶
NameJaNotIn applies the NotIn predicate on the "name_ja" field.
func NameJaNotNil ¶
NameJaNotNil applies the NotNil predicate on the "name_ja" field.
func RevisionID ¶
RevisionID applies equality check predicate on the "revision_id" field. It's identical to RevisionIDEQ.
func RevisionIDEQ ¶
RevisionIDEQ applies the EQ predicate on the "revision_id" field.
func RevisionIDIn ¶
RevisionIDIn applies the In predicate on the "revision_id" field.
func RevisionIDNEQ ¶
RevisionIDNEQ applies the NEQ predicate on the "revision_id" field.
func RevisionIDNotIn ¶
RevisionIDNotIn applies the NotIn predicate on the "revision_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 Deck queries.
func ByCards ¶
func ByCards(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCards orders the results by cards terms.
func ByCardsCount ¶
func ByCardsCount(opts ...sql.OrderTermOption) OrderOption
ByCardsCount orders the results by cards count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByNameEn ¶
func ByNameEn(opts ...sql.OrderTermOption) OrderOption
ByNameEn orders the results by the name_en field.
func ByNameJa ¶
func ByNameJa(opts ...sql.OrderTermOption) OrderOption
ByNameJa orders the results by the name_ja field.
func ByRevisionField ¶
func ByRevisionField(field string, opts ...sql.OrderTermOption) OrderOption
ByRevisionField orders the results by revision field.
func ByRevisionID ¶
func ByRevisionID(opts ...sql.OrderTermOption) OrderOption
ByRevisionID orders the results by the revision_id field.