product

package
v0.0.0-...-18f4101 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var (
	// CardsPrimaryKey and CardsColumn2 are the table columns denoting the
	// primary key for the cards relation (M2M).
	CardsPrimaryKey = []string{"product_id", "card_id"}
)

Columns holds all SQL columns for product fields.

Functions

func And

func And(predicates ...predicate.Product) predicate.Product

And groups predicates with the AND operator between them.

func HasCards

func HasCards() predicate.Product

HasCards applies the HasEdge predicate on the "cards" edge.

func HasCardsWith

func HasCardsWith(preds ...predicate.Card) predicate.Product

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

func HasRevision

func HasRevision() predicate.Product

HasRevision applies the HasEdge predicate on the "revision" edge.

func HasRevisionWith

func HasRevisionWith(preds ...predicate.Revision) predicate.Product

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

func ID

func ID(id int) predicate.Product

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Product

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Product

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Product

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Product

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Product

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Product

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Product

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Product

IDNotIn applies the NotIn predicate on the ID field.

func IsOfficialJa

func IsOfficialJa(v bool) predicate.Product

IsOfficialJa applies equality check predicate on the "is_official_ja" field. It's identical to IsOfficialJaEQ.

func IsOfficialJaEQ

func IsOfficialJaEQ(v bool) predicate.Product

IsOfficialJaEQ applies the EQ predicate on the "is_official_ja" field.

func IsOfficialJaNEQ

func IsOfficialJaNEQ(v bool) predicate.Product

IsOfficialJaNEQ applies the NEQ predicate on the "is_official_ja" field.

func NameEn

func NameEn(v string) predicate.Product

NameEn applies equality check predicate on the "name_en" field. It's identical to NameEnEQ.

func NameEnContains

func NameEnContains(v string) predicate.Product

NameEnContains applies the Contains predicate on the "name_en" field.

func NameEnContainsFold

func NameEnContainsFold(v string) predicate.Product

NameEnContainsFold applies the ContainsFold predicate on the "name_en" field.

func NameEnEQ

func NameEnEQ(v string) predicate.Product

NameEnEQ applies the EQ predicate on the "name_en" field.

func NameEnEqualFold

func NameEnEqualFold(v string) predicate.Product

NameEnEqualFold applies the EqualFold predicate on the "name_en" field.

func NameEnGT

func NameEnGT(v string) predicate.Product

NameEnGT applies the GT predicate on the "name_en" field.

func NameEnGTE

func NameEnGTE(v string) predicate.Product

NameEnGTE applies the GTE predicate on the "name_en" field.

func NameEnHasPrefix

func NameEnHasPrefix(v string) predicate.Product

NameEnHasPrefix applies the HasPrefix predicate on the "name_en" field.

func NameEnHasSuffix

func NameEnHasSuffix(v string) predicate.Product

NameEnHasSuffix applies the HasSuffix predicate on the "name_en" field.

func NameEnIn

func NameEnIn(vs ...string) predicate.Product

NameEnIn applies the In predicate on the "name_en" field.

func NameEnIsNil

func NameEnIsNil() predicate.Product

NameEnIsNil applies the IsNil predicate on the "name_en" field.

func NameEnLT

func NameEnLT(v string) predicate.Product

NameEnLT applies the LT predicate on the "name_en" field.

func NameEnLTE

func NameEnLTE(v string) predicate.Product

NameEnLTE applies the LTE predicate on the "name_en" field.

func NameEnNEQ

func NameEnNEQ(v string) predicate.Product

NameEnNEQ applies the NEQ predicate on the "name_en" field.

func NameEnNotIn

func NameEnNotIn(vs ...string) predicate.Product

NameEnNotIn applies the NotIn predicate on the "name_en" field.

func NameEnNotNil

func NameEnNotNil() predicate.Product

NameEnNotNil applies the NotNil predicate on the "name_en" field.

func NameJa

func NameJa(v string) predicate.Product

NameJa applies equality check predicate on the "name_ja" field. It's identical to NameJaEQ.

func NameJaContains

func NameJaContains(v string) predicate.Product

NameJaContains applies the Contains predicate on the "name_ja" field.

func NameJaContainsFold

func NameJaContainsFold(v string) predicate.Product

NameJaContainsFold applies the ContainsFold predicate on the "name_ja" field.

func NameJaEQ

func NameJaEQ(v string) predicate.Product

NameJaEQ applies the EQ predicate on the "name_ja" field.

func NameJaEqualFold

func NameJaEqualFold(v string) predicate.Product

NameJaEqualFold applies the EqualFold predicate on the "name_ja" field.

func NameJaGT

func NameJaGT(v string) predicate.Product

NameJaGT applies the GT predicate on the "name_ja" field.

func NameJaGTE

func NameJaGTE(v string) predicate.Product

NameJaGTE applies the GTE predicate on the "name_ja" field.

func NameJaHasPrefix

func NameJaHasPrefix(v string) predicate.Product

NameJaHasPrefix applies the HasPrefix predicate on the "name_ja" field.

func NameJaHasSuffix

func NameJaHasSuffix(v string) predicate.Product

NameJaHasSuffix applies the HasSuffix predicate on the "name_ja" field.

func NameJaIn

func NameJaIn(vs ...string) predicate.Product

NameJaIn applies the In predicate on the "name_ja" field.

func NameJaIsNil

func NameJaIsNil() predicate.Product

NameJaIsNil applies the IsNil predicate on the "name_ja" field.

func NameJaLT

func NameJaLT(v string) predicate.Product

NameJaLT applies the LT predicate on the "name_ja" field.

func NameJaLTE

func NameJaLTE(v string) predicate.Product

NameJaLTE applies the LTE predicate on the "name_ja" field.

func NameJaNEQ

func NameJaNEQ(v string) predicate.Product

NameJaNEQ applies the NEQ predicate on the "name_ja" field.

func NameJaNotIn

func NameJaNotIn(vs ...string) predicate.Product

NameJaNotIn applies the NotIn predicate on the "name_ja" field.

func NameJaNotNil

func NameJaNotNil() predicate.Product

NameJaNotNil applies the NotNil predicate on the "name_ja" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Product) predicate.Product

Or groups predicates with the OR operator between them.

func PublishedYear

func PublishedYear(v int) predicate.Product

PublishedYear applies equality check predicate on the "published_year" field. It's identical to PublishedYearEQ.

func PublishedYearEQ

func PublishedYearEQ(v int) predicate.Product

PublishedYearEQ applies the EQ predicate on the "published_year" field.

func PublishedYearGT

func PublishedYearGT(v int) predicate.Product

PublishedYearGT applies the GT predicate on the "published_year" field.

func PublishedYearGTE

func PublishedYearGTE(v int) predicate.Product

PublishedYearGTE applies the GTE predicate on the "published_year" field.

func PublishedYearIn

func PublishedYearIn(vs ...int) predicate.Product

PublishedYearIn applies the In predicate on the "published_year" field.

func PublishedYearIsNil

func PublishedYearIsNil() predicate.Product

PublishedYearIsNil applies the IsNil predicate on the "published_year" field.

func PublishedYearLT

func PublishedYearLT(v int) predicate.Product

PublishedYearLT applies the LT predicate on the "published_year" field.

func PublishedYearLTE

func PublishedYearLTE(v int) predicate.Product

PublishedYearLTE applies the LTE predicate on the "published_year" field.

func PublishedYearNEQ

func PublishedYearNEQ(v int) predicate.Product

PublishedYearNEQ applies the NEQ predicate on the "published_year" field.

func PublishedYearNotIn

func PublishedYearNotIn(vs ...int) predicate.Product

PublishedYearNotIn applies the NotIn predicate on the "published_year" field.

func PublishedYearNotNil

func PublishedYearNotNil() predicate.Product

PublishedYearNotNil applies the NotNil predicate on the "published_year" field.

func RevisionID

func RevisionID(v int) predicate.Product

RevisionID applies equality check predicate on the "revision_id" field. It's identical to RevisionIDEQ.

func RevisionIDEQ

func RevisionIDEQ(v int) predicate.Product

RevisionIDEQ applies the EQ predicate on the "revision_id" field.

func RevisionIDIn

func RevisionIDIn(vs ...int) predicate.Product

RevisionIDIn applies the In predicate on the "revision_id" field.

func RevisionIDNEQ

func RevisionIDNEQ(v int) predicate.Product

RevisionIDNEQ applies the NEQ predicate on the "revision_id" field.

func RevisionIDNotIn

func RevisionIDNotIn(vs ...int) predicate.Product

RevisionIDNotIn applies the NotIn predicate on the "revision_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 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.

Jump to

Keyboard shortcuts

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