testtranslation

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 testtranslation type in the database.
	Label = "test_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"
	// FieldDetails holds the string denoting the details field in the database.
	FieldDetails = "details"
	// FieldInstruction holds the string denoting the instruction field in the database.
	FieldInstruction = "instruction"
	// FieldResultPreambule holds the string denoting the result_preambule field in the database.
	FieldResultPreambule = "result_preambule"
	// EdgeTest holds the string denoting the test edge name in mutations.
	EdgeTest = "test"
	// Table holds the table name of the testtranslation in the database.
	Table = "test_translations"
	// TestTable is the table that holds the test relation/edge.
	TestTable = "test_translations"
	// TestInverseTable is the table name for the Test entity.
	// It exists in this package in order to avoid circular dependency with the "test" package.
	TestInverseTable = "tests"
	// TestColumn is the table column denoting the test relation/edge.
	TestColumn = "test_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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for testtranslation fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.TestTranslation

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

func DescriptionContains

func DescriptionContains(v string) predicate.TestTranslation

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.TestTranslation

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.TestTranslation

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.TestTranslation

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

func DescriptionGT

func DescriptionGT(v string) predicate.TestTranslation

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.TestTranslation

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.TestTranslation

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.TestTranslation

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.TestTranslation

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

func DescriptionLT

func DescriptionLT(v string) predicate.TestTranslation

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.TestTranslation

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.TestTranslation

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.TestTranslation

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

func Details

func Details(v string) predicate.TestTranslation

Details applies equality check predicate on the "details" field. It's identical to DetailsEQ.

func DetailsContains

func DetailsContains(v string) predicate.TestTranslation

DetailsContains applies the Contains predicate on the "details" field.

func DetailsContainsFold

func DetailsContainsFold(v string) predicate.TestTranslation

DetailsContainsFold applies the ContainsFold predicate on the "details" field.

func DetailsEQ

func DetailsEQ(v string) predicate.TestTranslation

DetailsEQ applies the EQ predicate on the "details" field.

func DetailsEqualFold

func DetailsEqualFold(v string) predicate.TestTranslation

DetailsEqualFold applies the EqualFold predicate on the "details" field.

func DetailsGT

func DetailsGT(v string) predicate.TestTranslation

DetailsGT applies the GT predicate on the "details" field.

func DetailsGTE

func DetailsGTE(v string) predicate.TestTranslation

DetailsGTE applies the GTE predicate on the "details" field.

func DetailsHasPrefix

func DetailsHasPrefix(v string) predicate.TestTranslation

DetailsHasPrefix applies the HasPrefix predicate on the "details" field.

func DetailsHasSuffix

func DetailsHasSuffix(v string) predicate.TestTranslation

DetailsHasSuffix applies the HasSuffix predicate on the "details" field.

func DetailsIn

func DetailsIn(vs ...string) predicate.TestTranslation

DetailsIn applies the In predicate on the "details" field.

func DetailsIsNil

func DetailsIsNil() predicate.TestTranslation

DetailsIsNil applies the IsNil predicate on the "details" field.

func DetailsLT

func DetailsLT(v string) predicate.TestTranslation

DetailsLT applies the LT predicate on the "details" field.

func DetailsLTE

func DetailsLTE(v string) predicate.TestTranslation

DetailsLTE applies the LTE predicate on the "details" field.

func DetailsNEQ

func DetailsNEQ(v string) predicate.TestTranslation

DetailsNEQ applies the NEQ predicate on the "details" field.

func DetailsNotIn

func DetailsNotIn(vs ...string) predicate.TestTranslation

DetailsNotIn applies the NotIn predicate on the "details" field.

func DetailsNotNil

func DetailsNotNil() predicate.TestTranslation

DetailsNotNil applies the NotNil predicate on the "details" field.

func HasTest

func HasTest() predicate.TestTranslation

HasTest applies the HasEdge predicate on the "test" edge.

func HasTestWith

func HasTestWith(preds ...predicate.Test) predicate.TestTranslation

HasTestWith applies the HasEdge predicate on the "test" 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.TestTranslation

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.TestTranslation

IDNotIn applies the NotIn predicate on the ID field.

func Instruction

func Instruction(v string) predicate.TestTranslation

Instruction applies equality check predicate on the "instruction" field. It's identical to InstructionEQ.

func InstructionContains

func InstructionContains(v string) predicate.TestTranslation

InstructionContains applies the Contains predicate on the "instruction" field.

func InstructionContainsFold

func InstructionContainsFold(v string) predicate.TestTranslation

InstructionContainsFold applies the ContainsFold predicate on the "instruction" field.

func InstructionEQ

func InstructionEQ(v string) predicate.TestTranslation

InstructionEQ applies the EQ predicate on the "instruction" field.

func InstructionEqualFold

func InstructionEqualFold(v string) predicate.TestTranslation

InstructionEqualFold applies the EqualFold predicate on the "instruction" field.

func InstructionGT

func InstructionGT(v string) predicate.TestTranslation

InstructionGT applies the GT predicate on the "instruction" field.

func InstructionGTE

func InstructionGTE(v string) predicate.TestTranslation

InstructionGTE applies the GTE predicate on the "instruction" field.

func InstructionHasPrefix

func InstructionHasPrefix(v string) predicate.TestTranslation

InstructionHasPrefix applies the HasPrefix predicate on the "instruction" field.

func InstructionHasSuffix

func InstructionHasSuffix(v string) predicate.TestTranslation

InstructionHasSuffix applies the HasSuffix predicate on the "instruction" field.

func InstructionIn

func InstructionIn(vs ...string) predicate.TestTranslation

InstructionIn applies the In predicate on the "instruction" field.

func InstructionIsNil

func InstructionIsNil() predicate.TestTranslation

InstructionIsNil applies the IsNil predicate on the "instruction" field.

func InstructionLT

func InstructionLT(v string) predicate.TestTranslation

InstructionLT applies the LT predicate on the "instruction" field.

func InstructionLTE

func InstructionLTE(v string) predicate.TestTranslation

InstructionLTE applies the LTE predicate on the "instruction" field.

func InstructionNEQ

func InstructionNEQ(v string) predicate.TestTranslation

InstructionNEQ applies the NEQ predicate on the "instruction" field.

func InstructionNotIn

func InstructionNotIn(vs ...string) predicate.TestTranslation

InstructionNotIn applies the NotIn predicate on the "instruction" field.

func InstructionNotNil

func InstructionNotNil() predicate.TestTranslation

InstructionNotNil applies the NotNil predicate on the "instruction" field.

func LocaleEQ

func LocaleEQ(v Locale) predicate.TestTranslation

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

func LocaleIn

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

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

func LocaleNEQ

func LocaleNEQ(v Locale) predicate.TestTranslation

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

func LocaleNotIn

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

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 ResultPreambule

func ResultPreambule(v string) predicate.TestTranslation

ResultPreambule applies equality check predicate on the "result_preambule" field. It's identical to ResultPreambuleEQ.

func ResultPreambuleContains

func ResultPreambuleContains(v string) predicate.TestTranslation

ResultPreambuleContains applies the Contains predicate on the "result_preambule" field.

func ResultPreambuleContainsFold

func ResultPreambuleContainsFold(v string) predicate.TestTranslation

ResultPreambuleContainsFold applies the ContainsFold predicate on the "result_preambule" field.

func ResultPreambuleEQ

func ResultPreambuleEQ(v string) predicate.TestTranslation

ResultPreambuleEQ applies the EQ predicate on the "result_preambule" field.

func ResultPreambuleEqualFold

func ResultPreambuleEqualFold(v string) predicate.TestTranslation

ResultPreambuleEqualFold applies the EqualFold predicate on the "result_preambule" field.

func ResultPreambuleGT

func ResultPreambuleGT(v string) predicate.TestTranslation

ResultPreambuleGT applies the GT predicate on the "result_preambule" field.

func ResultPreambuleGTE

func ResultPreambuleGTE(v string) predicate.TestTranslation

ResultPreambuleGTE applies the GTE predicate on the "result_preambule" field.

func ResultPreambuleHasPrefix

func ResultPreambuleHasPrefix(v string) predicate.TestTranslation

ResultPreambuleHasPrefix applies the HasPrefix predicate on the "result_preambule" field.

func ResultPreambuleHasSuffix

func ResultPreambuleHasSuffix(v string) predicate.TestTranslation

ResultPreambuleHasSuffix applies the HasSuffix predicate on the "result_preambule" field.

func ResultPreambuleIn

func ResultPreambuleIn(vs ...string) predicate.TestTranslation

ResultPreambuleIn applies the In predicate on the "result_preambule" field.

func ResultPreambuleIsNil

func ResultPreambuleIsNil() predicate.TestTranslation

ResultPreambuleIsNil applies the IsNil predicate on the "result_preambule" field.

func ResultPreambuleLT

func ResultPreambuleLT(v string) predicate.TestTranslation

ResultPreambuleLT applies the LT predicate on the "result_preambule" field.

func ResultPreambuleLTE

func ResultPreambuleLTE(v string) predicate.TestTranslation

ResultPreambuleLTE applies the LTE predicate on the "result_preambule" field.

func ResultPreambuleNEQ

func ResultPreambuleNEQ(v string) predicate.TestTranslation

ResultPreambuleNEQ applies the NEQ predicate on the "result_preambule" field.

func ResultPreambuleNotIn

func ResultPreambuleNotIn(vs ...string) predicate.TestTranslation

ResultPreambuleNotIn applies the NotIn predicate on the "result_preambule" field.

func ResultPreambuleNotNil

func ResultPreambuleNotNil() predicate.TestTranslation

ResultPreambuleNotNil applies the NotNil predicate on the "result_preambule" field.

func Title

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

func TitleContains

func TitleContains(v string) predicate.TestTranslation

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.TestTranslation

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

func TitleEQ

func TitleEQ(v string) predicate.TestTranslation

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.TestTranslation

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

func TitleGT

func TitleGT(v string) predicate.TestTranslation

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

func TitleGTE

func TitleGTE(v string) predicate.TestTranslation

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.TestTranslation

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.TestTranslation

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.TestTranslation

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

func TitleLTE

func TitleLTE(v string) predicate.TestTranslation

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

func TitleNEQ

func TitleNEQ(v string) predicate.TestTranslation

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

func TitleNotIn

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

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