scaletranslation

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the scaletranslation type in the database.
	Label = "scale_translation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldLocale holds the string denoting the locale field in the database.
	FieldLocale = "locale"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldAbbreviation holds the string denoting the abbreviation field in the database.
	FieldAbbreviation = "abbreviation"
	// EdgeScale holds the string denoting the scale edge name in mutations.
	EdgeScale = "scale"
	// Table holds the table name of the scaletranslation in the database.
	Table = "scale_translations"
	// ScaleTable is the table that holds the scale relation/edge.
	ScaleTable = "scale_translations"
	// ScaleInverseTable is the table name for the Scale entity.
	// It exists in this package in order to avoid circular dependency with the "scale" package.
	ScaleInverseTable = "scales"
	// ScaleColumn is the table column denoting the scale relation/edge.
	ScaleColumn = "scale_translations"
)

Variables

View Source
var (
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultAbbreviation holds the default value on creation for the "abbreviation" field.
	DefaultAbbreviation string
	// AbbreviationValidator is a validator for the "abbreviation" field. It is called by the builders before save.
	AbbreviationValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for scaletranslation fields.

View Source
var ForeignKeys = []string{
	"scale_translations",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "scale_translations" table and are not defined as standalone fields in the schema.

Functions

func Abbreviation

func Abbreviation(v string) predicate.ScaleTranslation

Abbreviation applies equality check predicate on the "abbreviation" field. It's identical to AbbreviationEQ.

func AbbreviationContains

func AbbreviationContains(v string) predicate.ScaleTranslation

AbbreviationContains applies the Contains predicate on the "abbreviation" field.

func AbbreviationContainsFold

func AbbreviationContainsFold(v string) predicate.ScaleTranslation

AbbreviationContainsFold applies the ContainsFold predicate on the "abbreviation" field.

func AbbreviationEQ

func AbbreviationEQ(v string) predicate.ScaleTranslation

AbbreviationEQ applies the EQ predicate on the "abbreviation" field.

func AbbreviationEqualFold

func AbbreviationEqualFold(v string) predicate.ScaleTranslation

AbbreviationEqualFold applies the EqualFold predicate on the "abbreviation" field.

func AbbreviationGT

func AbbreviationGT(v string) predicate.ScaleTranslation

AbbreviationGT applies the GT predicate on the "abbreviation" field.

func AbbreviationGTE

func AbbreviationGTE(v string) predicate.ScaleTranslation

AbbreviationGTE applies the GTE predicate on the "abbreviation" field.

func AbbreviationHasPrefix

func AbbreviationHasPrefix(v string) predicate.ScaleTranslation

AbbreviationHasPrefix applies the HasPrefix predicate on the "abbreviation" field.

func AbbreviationHasSuffix

func AbbreviationHasSuffix(v string) predicate.ScaleTranslation

AbbreviationHasSuffix applies the HasSuffix predicate on the "abbreviation" field.

func AbbreviationIn

func AbbreviationIn(vs ...string) predicate.ScaleTranslation

AbbreviationIn applies the In predicate on the "abbreviation" field.

func AbbreviationLT

func AbbreviationLT(v string) predicate.ScaleTranslation

AbbreviationLT applies the LT predicate on the "abbreviation" field.

func AbbreviationLTE

func AbbreviationLTE(v string) predicate.ScaleTranslation

AbbreviationLTE applies the LTE predicate on the "abbreviation" field.

func AbbreviationNEQ

func AbbreviationNEQ(v string) predicate.ScaleTranslation

AbbreviationNEQ applies the NEQ predicate on the "abbreviation" field.

func AbbreviationNotIn

func AbbreviationNotIn(vs ...string) predicate.ScaleTranslation

AbbreviationNotIn applies the NotIn predicate on the "abbreviation" field.

func And

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.ScaleTranslation

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.ScaleTranslation

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.ScaleTranslation

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.ScaleTranslation

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.ScaleTranslation

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.ScaleTranslation

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.ScaleTranslation

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.ScaleTranslation

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.ScaleTranslation

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.ScaleTranslation

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.ScaleTranslation

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.ScaleTranslation

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.ScaleTranslation

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.ScaleTranslation

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.ScaleTranslation

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.ScaleTranslation

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasScale

func HasScale() predicate.ScaleTranslation

HasScale applies the HasEdge predicate on the "scale" edge.

func HasScaleWith

func HasScaleWith(preds ...predicate.Scale) predicate.ScaleTranslation

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.ScaleTranslation

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ScaleTranslation

IDNotIn applies the NotIn predicate on the ID field.

func LocaleEQ

func LocaleEQ(v Locale) predicate.ScaleTranslation

LocaleEQ applies the EQ predicate on the "locale" field.

func LocaleIn

func LocaleIn(vs ...Locale) predicate.ScaleTranslation

LocaleIn applies the In predicate on the "locale" field.

func LocaleNEQ

func LocaleNEQ(v Locale) predicate.ScaleTranslation

LocaleNEQ applies the NEQ predicate on the "locale" field.

func LocaleNotIn

func LocaleNotIn(vs ...Locale) predicate.ScaleTranslation

LocaleNotIn applies the NotIn predicate on the "locale" field.

func LocaleValidator

func LocaleValidator(l Locale) error

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Title

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.ScaleTranslation

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.ScaleTranslation

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.ScaleTranslation

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.ScaleTranslation

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.ScaleTranslation

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.ScaleTranslation

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.ScaleTranslation

TitleIn applies the In predicate on the "title" field.

func TitleLT

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.ScaleTranslation

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.ScaleTranslation

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.ScaleTranslation

TitleNotIn applies the NotIn predicate on the "title" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Locale

type Locale string

Locale defines the type for the "locale" enum field.

const (
	LocaleEn Locale = "en"
	LocaleRu Locale = "ru"
)

Locale values.

func (Locale) String

func (l Locale) String() string

Jump to

Keyboard shortcuts

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