Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Product) predicate.Product
- func HasCards() predicate.Product
- func HasCardsWith(preds ...predicate.Card) predicate.Product
- func HasRevision() predicate.Product
- func HasRevisionWith(preds ...predicate.Revision) predicate.Product
- func ID(id int) predicate.Product
- func IDEQ(id int) predicate.Product
- func IDGT(id int) predicate.Product
- func IDGTE(id int) predicate.Product
- func IDIn(ids ...int) predicate.Product
- func IDLT(id int) predicate.Product
- func IDLTE(id int) predicate.Product
- func IDNEQ(id int) predicate.Product
- func IDNotIn(ids ...int) predicate.Product
- func IsOfficialJa(v bool) predicate.Product
- func IsOfficialJaEQ(v bool) predicate.Product
- func IsOfficialJaNEQ(v bool) predicate.Product
- func NameEn(v string) predicate.Product
- func NameEnContains(v string) predicate.Product
- func NameEnContainsFold(v string) predicate.Product
- func NameEnEQ(v string) predicate.Product
- func NameEnEqualFold(v string) predicate.Product
- func NameEnGT(v string) predicate.Product
- func NameEnGTE(v string) predicate.Product
- func NameEnHasPrefix(v string) predicate.Product
- func NameEnHasSuffix(v string) predicate.Product
- func NameEnIn(vs ...string) predicate.Product
- func NameEnIsNil() predicate.Product
- func NameEnLT(v string) predicate.Product
- func NameEnLTE(v string) predicate.Product
- func NameEnNEQ(v string) predicate.Product
- func NameEnNotIn(vs ...string) predicate.Product
- func NameEnNotNil() predicate.Product
- func NameJa(v string) predicate.Product
- func NameJaContains(v string) predicate.Product
- func NameJaContainsFold(v string) predicate.Product
- func NameJaEQ(v string) predicate.Product
- func NameJaEqualFold(v string) predicate.Product
- func NameJaGT(v string) predicate.Product
- func NameJaGTE(v string) predicate.Product
- func NameJaHasPrefix(v string) predicate.Product
- func NameJaHasSuffix(v string) predicate.Product
- func NameJaIn(vs ...string) predicate.Product
- func NameJaIsNil() predicate.Product
- func NameJaLT(v string) predicate.Product
- func NameJaLTE(v string) predicate.Product
- func NameJaNEQ(v string) predicate.Product
- func NameJaNotIn(vs ...string) predicate.Product
- func NameJaNotNil() predicate.Product
- func Not(p predicate.Product) predicate.Product
- func Or(predicates ...predicate.Product) predicate.Product
- func PublishedYear(v int) predicate.Product
- func PublishedYearEQ(v int) predicate.Product
- func PublishedYearGT(v int) predicate.Product
- func PublishedYearGTE(v int) predicate.Product
- func PublishedYearIn(vs ...int) predicate.Product
- func PublishedYearIsNil() predicate.Product
- func PublishedYearLT(v int) predicate.Product
- func PublishedYearLTE(v int) predicate.Product
- func PublishedYearNEQ(v int) predicate.Product
- func PublishedYearNotIn(vs ...int) predicate.Product
- func PublishedYearNotNil() predicate.Product
- func RevisionID(v int) predicate.Product
- func RevisionIDEQ(v int) predicate.Product
- func RevisionIDIn(vs ...int) predicate.Product
- func RevisionIDNEQ(v int) predicate.Product
- func RevisionIDNotIn(vs ...int) predicate.Product
- 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 ByIsOfficialJa(opts ...sql.OrderTermOption) OrderOption
- func ByNameEn(opts ...sql.OrderTermOption) OrderOption
- func ByNameJa(opts ...sql.OrderTermOption) OrderOption
- func ByPublishedYear(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 product type in the database. Label = "product" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRevisionID holds the string denoting the revision_id field in the database. FieldRevisionID = "revision_id" // FieldIsOfficialJa holds the string denoting the is_official_ja field in the database. FieldIsOfficialJa = "is_official_ja" // 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" // FieldPublishedYear holds the string denoting the published_year field in the database. FieldPublishedYear = "published_year" // 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 product in the database. Table = "products" // CardsTable is the table that holds the cards relation/edge. The primary key declared below. CardsTable = "product_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" // RevisionTable is the table that holds the revision relation/edge. RevisionTable = "products" // 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 ( // CardsPrimaryKey and CardsColumn2 are the table columns denoting the // primary key for the cards relation (M2M). CardsPrimaryKey = []string{"product_id", "card_id"} )
var Columns = []string{ FieldID, FieldRevisionID, FieldIsOfficialJa, FieldNameJa, FieldNameEn, FieldPublishedYear, }
Columns holds all SQL columns for product fields.
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 IsOfficialJa ¶
IsOfficialJa applies equality check predicate on the "is_official_ja" field. It's identical to IsOfficialJaEQ.
func IsOfficialJaEQ ¶
IsOfficialJaEQ applies the EQ predicate on the "is_official_ja" field.
func IsOfficialJaNEQ ¶
IsOfficialJaNEQ applies the NEQ predicate on the "is_official_ja" 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 PublishedYear ¶
PublishedYear applies equality check predicate on the "published_year" field. It's identical to PublishedYearEQ.
func PublishedYearEQ ¶
PublishedYearEQ applies the EQ predicate on the "published_year" field.
func PublishedYearGT ¶
PublishedYearGT applies the GT predicate on the "published_year" field.
func PublishedYearGTE ¶
PublishedYearGTE applies the GTE predicate on the "published_year" field.
func PublishedYearIn ¶
PublishedYearIn applies the In predicate on the "published_year" field.
func PublishedYearIsNil ¶
PublishedYearIsNil applies the IsNil predicate on the "published_year" field.
func PublishedYearLT ¶
PublishedYearLT applies the LT predicate on the "published_year" field.
func PublishedYearLTE ¶
PublishedYearLTE applies the LTE predicate on the "published_year" field.
func PublishedYearNEQ ¶
PublishedYearNEQ applies the NEQ predicate on the "published_year" field.
func PublishedYearNotIn ¶
PublishedYearNotIn applies the NotIn predicate on the "published_year" field.
func PublishedYearNotNil ¶
PublishedYearNotNil applies the NotNil predicate on the "published_year" 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 Product 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 ByIsOfficialJa ¶
func ByIsOfficialJa(opts ...sql.OrderTermOption) OrderOption
ByIsOfficialJa orders the results by the is_official_ja 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 ByPublishedYear ¶
func ByPublishedYear(opts ...sql.OrderTermOption) OrderOption
ByPublishedYear orders the results by the published_year 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.