language

package
v0.0.0-...-c5055fb Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the language type in the database.
	Label = "language"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIndx holds the string denoting the indx field in the database.
	FieldIndx = "indx"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDesc holds the string denoting the desc field in the database.
	FieldDesc = "desc"
	// FieldLanguageType holds the string denoting the language_type field in the database.
	FieldLanguageType = "language_type"
	// FieldScript holds the string denoting the script field in the database.
	FieldScript = "script"
	// EdgeRaceSpeakers holds the string denoting the race_speakers edge name in mutations.
	EdgeRaceSpeakers = "race_speakers"
	// Table holds the table name of the language in the database.
	Table = "languages"
	// RaceSpeakersTable is the table that holds the race_speakers relation/edge. The primary key declared below.
	RaceSpeakersTable = "race_languages"
	// RaceSpeakersInverseTable is the table name for the Race entity.
	// It exists in this package in order to avoid circular dependency with the "race" package.
	RaceSpeakersInverseTable = "races"
)
View Source
const DefaultLanguageType = LanguageTypeSTANDARD

LanguageTypeSTANDARD is the default value of the LanguageType enum.

View Source
const DefaultScript = ScriptCommon

ScriptCommon is the default value of the Script enum.

Variables

View Source
var (
	// IndxValidator is a validator for the "indx" field. It is called by the builders before save.
	IndxValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Columns holds all SQL columns for language fields.

View Source
var (
	// RaceSpeakersPrimaryKey and RaceSpeakersColumn2 are the table columns denoting the
	// primary key for the race_speakers relation (M2M).
	RaceSpeakersPrimaryKey = []string{"race_id", "language_id"}
)

Functions

func And

func And(predicates ...predicate.Language) predicate.Language

And groups predicates with the AND operator between them.

func Desc

func Desc(v string) predicate.Language

Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.

func DescContains

func DescContains(v string) predicate.Language

DescContains applies the Contains predicate on the "desc" field.

func DescContainsFold

func DescContainsFold(v string) predicate.Language

DescContainsFold applies the ContainsFold predicate on the "desc" field.

func DescEQ

func DescEQ(v string) predicate.Language

DescEQ applies the EQ predicate on the "desc" field.

func DescEqualFold

func DescEqualFold(v string) predicate.Language

DescEqualFold applies the EqualFold predicate on the "desc" field.

func DescGT

func DescGT(v string) predicate.Language

DescGT applies the GT predicate on the "desc" field.

func DescGTE

func DescGTE(v string) predicate.Language

DescGTE applies the GTE predicate on the "desc" field.

func DescHasPrefix

func DescHasPrefix(v string) predicate.Language

DescHasPrefix applies the HasPrefix predicate on the "desc" field.

func DescHasSuffix

func DescHasSuffix(v string) predicate.Language

DescHasSuffix applies the HasSuffix predicate on the "desc" field.

func DescIn

func DescIn(vs ...string) predicate.Language

DescIn applies the In predicate on the "desc" field.

func DescLT

func DescLT(v string) predicate.Language

DescLT applies the LT predicate on the "desc" field.

func DescLTE

func DescLTE(v string) predicate.Language

DescLTE applies the LTE predicate on the "desc" field.

func DescNEQ

func DescNEQ(v string) predicate.Language

DescNEQ applies the NEQ predicate on the "desc" field.

func DescNotIn

func DescNotIn(vs ...string) predicate.Language

DescNotIn applies the NotIn predicate on the "desc" field.

func HasRaceSpeakers

func HasRaceSpeakers() predicate.Language

HasRaceSpeakers applies the HasEdge predicate on the "race_speakers" edge.

func HasRaceSpeakersWith

func HasRaceSpeakersWith(preds ...predicate.Race) predicate.Language

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

func ID

func ID(id int) predicate.Language

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Language

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Language

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Language

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Language

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Language

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Language

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Language

Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.

func IndxContains

func IndxContains(v string) predicate.Language

IndxContains applies the Contains predicate on the "indx" field.

func IndxContainsFold

func IndxContainsFold(v string) predicate.Language

IndxContainsFold applies the ContainsFold predicate on the "indx" field.

func IndxEQ

func IndxEQ(v string) predicate.Language

IndxEQ applies the EQ predicate on the "indx" field.

func IndxEqualFold

func IndxEqualFold(v string) predicate.Language

IndxEqualFold applies the EqualFold predicate on the "indx" field.

func IndxGT

func IndxGT(v string) predicate.Language

IndxGT applies the GT predicate on the "indx" field.

func IndxGTE

func IndxGTE(v string) predicate.Language

IndxGTE applies the GTE predicate on the "indx" field.

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Language

IndxHasPrefix applies the HasPrefix predicate on the "indx" field.

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Language

IndxHasSuffix applies the HasSuffix predicate on the "indx" field.

func IndxIn

func IndxIn(vs ...string) predicate.Language

IndxIn applies the In predicate on the "indx" field.

func IndxLT

func IndxLT(v string) predicate.Language

IndxLT applies the LT predicate on the "indx" field.

func IndxLTE

func IndxLTE(v string) predicate.Language

IndxLTE applies the LTE predicate on the "indx" field.

func IndxNEQ

func IndxNEQ(v string) predicate.Language

IndxNEQ applies the NEQ predicate on the "indx" field.

func IndxNotIn

func IndxNotIn(vs ...string) predicate.Language

IndxNotIn applies the NotIn predicate on the "indx" field.

func LanguageTypeEQ

func LanguageTypeEQ(v LanguageType) predicate.Language

LanguageTypeEQ applies the EQ predicate on the "language_type" field.

func LanguageTypeIn

func LanguageTypeIn(vs ...LanguageType) predicate.Language

LanguageTypeIn applies the In predicate on the "language_type" field.

func LanguageTypeNEQ

func LanguageTypeNEQ(v LanguageType) predicate.Language

LanguageTypeNEQ applies the NEQ predicate on the "language_type" field.

func LanguageTypeNotIn

func LanguageTypeNotIn(vs ...LanguageType) predicate.Language

LanguageTypeNotIn applies the NotIn predicate on the "language_type" field.

func LanguageTypeValidator

func LanguageTypeValidator(lt LanguageType) error

LanguageTypeValidator is a validator for the "language_type" field enum values. It is called by the builders before save.

func Name

func Name(v string) predicate.Language

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Language

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Language

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Language

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Language

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Language

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Language

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Language

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Language

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Language

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Language

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Language

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Language

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Language

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Language) predicate.Language

Or groups predicates with the OR operator between them.

func ScriptEQ

func ScriptEQ(v Script) predicate.Language

ScriptEQ applies the EQ predicate on the "script" field.

func ScriptIn

func ScriptIn(vs ...Script) predicate.Language

ScriptIn applies the In predicate on the "script" field.

func ScriptIsNil

func ScriptIsNil() predicate.Language

ScriptIsNil applies the IsNil predicate on the "script" field.

func ScriptNEQ

func ScriptNEQ(v Script) predicate.Language

ScriptNEQ applies the NEQ predicate on the "script" field.

func ScriptNotIn

func ScriptNotIn(vs ...Script) predicate.Language

ScriptNotIn applies the NotIn predicate on the "script" field.

func ScriptNotNil

func ScriptNotNil() predicate.Language

ScriptNotNil applies the NotNil predicate on the "script" field.

func ScriptValidator

func ScriptValidator(s Script) error

ScriptValidator is a validator for the "script" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type LanguageType

type LanguageType string

LanguageType defines the type for the "language_type" enum field.

const (
	LanguageTypeSTANDARD LanguageType = "STANDARD"
	LanguageTypeEXOTIC   LanguageType = "EXOTIC"
)

LanguageType values.

func (LanguageType) MarshalGQL

func (e LanguageType) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (LanguageType) String

func (lt LanguageType) String() string

func (*LanguageType) UnmarshalGQL

func (e *LanguageType) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Language queries.

func ByDesc

func ByDesc(opts ...sql.OrderTermOption) OrderOption

ByDesc orders the results by the desc field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIndx

func ByIndx(opts ...sql.OrderTermOption) OrderOption

ByIndx orders the results by the indx field.

func ByLanguageType

func ByLanguageType(opts ...sql.OrderTermOption) OrderOption

ByLanguageType orders the results by the language_type field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByRaceSpeakers

func ByRaceSpeakers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRaceSpeakers orders the results by race_speakers terms.

func ByRaceSpeakersCount

func ByRaceSpeakersCount(opts ...sql.OrderTermOption) OrderOption

ByRaceSpeakersCount orders the results by race_speakers count.

func ByScript

func ByScript(opts ...sql.OrderTermOption) OrderOption

ByScript orders the results by the script field.

type Script

type Script string

Script defines the type for the "script" enum field.

const (
	ScriptCommon    Script = "Common"
	ScriptDwarvish  Script = "Dwarvish"
	ScriptElvish    Script = "Elvish"
	ScriptInfernal  Script = "Infernal"
	ScriptDraconic  Script = "Draconic"
	ScriptCelestial Script = "Celestial"
	ScriptAbyssal   Script = "Abyssal"
	ScriptGiant     Script = "Giant"
	ScriptGnomish   Script = "Gnomish"
	ScriptGoblin    Script = "Goblin"
	ScriptHalfling  Script = "Halfling"
	ScriptOrc       Script = "Orc"
	ScriptOther     Script = "Other"
)

Script values.

func (Script) MarshalGQL

func (e Script) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Script) String

func (s Script) String() string

func (*Script) UnmarshalGQL

func (e *Script) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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