questiontranslation

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 questiontranslation type in the database.
	Label = "question_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"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldHeaderContent holds the string denoting the header_content field in the database.
	FieldHeaderContent = "header_content"
	// FieldFooterContent holds the string denoting the footer_content field in the database.
	FieldFooterContent = "footer_content"
	// EdgeQuestion holds the string denoting the question edge name in mutations.
	EdgeQuestion = "question"
	// Table holds the table name of the questiontranslation in the database.
	Table = "question_translations"
	// QuestionTable is the table that holds the question relation/edge.
	QuestionTable = "question_translations"
	// QuestionInverseTable is the table name for the Question entity.
	// It exists in this package in order to avoid circular dependency with the "question" package.
	QuestionInverseTable = "questions"
	// QuestionColumn is the table column denoting the question relation/edge.
	QuestionColumn = "question_translations"
)

Variables

Columns holds all SQL columns for questiontranslation fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var ForeignKeys = []string{
	"question_translations",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "question_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 Content

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.QuestionTranslation

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.QuestionTranslation

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.QuestionTranslation

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.QuestionTranslation

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.QuestionTranslation

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.QuestionTranslation

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.QuestionTranslation

ContentIn applies the In predicate on the "content" field.

func ContentIsNil

func ContentIsNil() predicate.QuestionTranslation

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentLT

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.QuestionTranslation

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.QuestionTranslation

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.QuestionTranslation

ContentNotIn applies the NotIn predicate on the "content" field.

func ContentNotNil

func ContentNotNil() predicate.QuestionTranslation

ContentNotNil applies the NotNil predicate on the "content" field.

func FooterContent

func FooterContent(v string) predicate.QuestionTranslation

FooterContent applies equality check predicate on the "footer_content" field. It's identical to FooterContentEQ.

func FooterContentContains

func FooterContentContains(v string) predicate.QuestionTranslation

FooterContentContains applies the Contains predicate on the "footer_content" field.

func FooterContentContainsFold

func FooterContentContainsFold(v string) predicate.QuestionTranslation

FooterContentContainsFold applies the ContainsFold predicate on the "footer_content" field.

func FooterContentEQ

func FooterContentEQ(v string) predicate.QuestionTranslation

FooterContentEQ applies the EQ predicate on the "footer_content" field.

func FooterContentEqualFold

func FooterContentEqualFold(v string) predicate.QuestionTranslation

FooterContentEqualFold applies the EqualFold predicate on the "footer_content" field.

func FooterContentGT

func FooterContentGT(v string) predicate.QuestionTranslation

FooterContentGT applies the GT predicate on the "footer_content" field.

func FooterContentGTE

func FooterContentGTE(v string) predicate.QuestionTranslation

FooterContentGTE applies the GTE predicate on the "footer_content" field.

func FooterContentHasPrefix

func FooterContentHasPrefix(v string) predicate.QuestionTranslation

FooterContentHasPrefix applies the HasPrefix predicate on the "footer_content" field.

func FooterContentHasSuffix

func FooterContentHasSuffix(v string) predicate.QuestionTranslation

FooterContentHasSuffix applies the HasSuffix predicate on the "footer_content" field.

func FooterContentIn

func FooterContentIn(vs ...string) predicate.QuestionTranslation

FooterContentIn applies the In predicate on the "footer_content" field.

func FooterContentIsNil

func FooterContentIsNil() predicate.QuestionTranslation

FooterContentIsNil applies the IsNil predicate on the "footer_content" field.

func FooterContentLT

func FooterContentLT(v string) predicate.QuestionTranslation

FooterContentLT applies the LT predicate on the "footer_content" field.

func FooterContentLTE

func FooterContentLTE(v string) predicate.QuestionTranslation

FooterContentLTE applies the LTE predicate on the "footer_content" field.

func FooterContentNEQ

func FooterContentNEQ(v string) predicate.QuestionTranslation

FooterContentNEQ applies the NEQ predicate on the "footer_content" field.

func FooterContentNotIn

func FooterContentNotIn(vs ...string) predicate.QuestionTranslation

FooterContentNotIn applies the NotIn predicate on the "footer_content" field.

func FooterContentNotNil

func FooterContentNotNil() predicate.QuestionTranslation

FooterContentNotNil applies the NotNil predicate on the "footer_content" field.

func HasQuestion

func HasQuestion() predicate.QuestionTranslation

HasQuestion applies the HasEdge predicate on the "question" edge.

func HasQuestionWith

func HasQuestionWith(preds ...predicate.Question) predicate.QuestionTranslation

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

func HeaderContent

func HeaderContent(v string) predicate.QuestionTranslation

HeaderContent applies equality check predicate on the "header_content" field. It's identical to HeaderContentEQ.

func HeaderContentContains

func HeaderContentContains(v string) predicate.QuestionTranslation

HeaderContentContains applies the Contains predicate on the "header_content" field.

func HeaderContentContainsFold

func HeaderContentContainsFold(v string) predicate.QuestionTranslation

HeaderContentContainsFold applies the ContainsFold predicate on the "header_content" field.

func HeaderContentEQ

func HeaderContentEQ(v string) predicate.QuestionTranslation

HeaderContentEQ applies the EQ predicate on the "header_content" field.

func HeaderContentEqualFold

func HeaderContentEqualFold(v string) predicate.QuestionTranslation

HeaderContentEqualFold applies the EqualFold predicate on the "header_content" field.

func HeaderContentGT

func HeaderContentGT(v string) predicate.QuestionTranslation

HeaderContentGT applies the GT predicate on the "header_content" field.

func HeaderContentGTE

func HeaderContentGTE(v string) predicate.QuestionTranslation

HeaderContentGTE applies the GTE predicate on the "header_content" field.

func HeaderContentHasPrefix

func HeaderContentHasPrefix(v string) predicate.QuestionTranslation

HeaderContentHasPrefix applies the HasPrefix predicate on the "header_content" field.

func HeaderContentHasSuffix

func HeaderContentHasSuffix(v string) predicate.QuestionTranslation

HeaderContentHasSuffix applies the HasSuffix predicate on the "header_content" field.

func HeaderContentIn

func HeaderContentIn(vs ...string) predicate.QuestionTranslation

HeaderContentIn applies the In predicate on the "header_content" field.

func HeaderContentIsNil

func HeaderContentIsNil() predicate.QuestionTranslation

HeaderContentIsNil applies the IsNil predicate on the "header_content" field.

func HeaderContentLT

func HeaderContentLT(v string) predicate.QuestionTranslation

HeaderContentLT applies the LT predicate on the "header_content" field.

func HeaderContentLTE

func HeaderContentLTE(v string) predicate.QuestionTranslation

HeaderContentLTE applies the LTE predicate on the "header_content" field.

func HeaderContentNEQ

func HeaderContentNEQ(v string) predicate.QuestionTranslation

HeaderContentNEQ applies the NEQ predicate on the "header_content" field.

func HeaderContentNotIn

func HeaderContentNotIn(vs ...string) predicate.QuestionTranslation

HeaderContentNotIn applies the NotIn predicate on the "header_content" field.

func HeaderContentNotNil

func HeaderContentNotNil() predicate.QuestionTranslation

HeaderContentNotNil applies the NotNil predicate on the "header_content" field.

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

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

IDNotIn applies the NotIn predicate on the ID field.

func LocaleEQ

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

func LocaleIn

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

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

func LocaleNEQ

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

func LocaleNotIn

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

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