Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.QuestionTranslation) predicate.QuestionTranslation
- func Content(v string) predicate.QuestionTranslation
- func ContentContains(v string) predicate.QuestionTranslation
- func ContentContainsFold(v string) predicate.QuestionTranslation
- func ContentEQ(v string) predicate.QuestionTranslation
- func ContentEqualFold(v string) predicate.QuestionTranslation
- func ContentGT(v string) predicate.QuestionTranslation
- func ContentGTE(v string) predicate.QuestionTranslation
- func ContentHasPrefix(v string) predicate.QuestionTranslation
- func ContentHasSuffix(v string) predicate.QuestionTranslation
- func ContentIn(vs ...string) predicate.QuestionTranslation
- func ContentIsNil() predicate.QuestionTranslation
- func ContentLT(v string) predicate.QuestionTranslation
- func ContentLTE(v string) predicate.QuestionTranslation
- func ContentNEQ(v string) predicate.QuestionTranslation
- func ContentNotIn(vs ...string) predicate.QuestionTranslation
- func ContentNotNil() predicate.QuestionTranslation
- func FooterContent(v string) predicate.QuestionTranslation
- func FooterContentContains(v string) predicate.QuestionTranslation
- func FooterContentContainsFold(v string) predicate.QuestionTranslation
- func FooterContentEQ(v string) predicate.QuestionTranslation
- func FooterContentEqualFold(v string) predicate.QuestionTranslation
- func FooterContentGT(v string) predicate.QuestionTranslation
- func FooterContentGTE(v string) predicate.QuestionTranslation
- func FooterContentHasPrefix(v string) predicate.QuestionTranslation
- func FooterContentHasSuffix(v string) predicate.QuestionTranslation
- func FooterContentIn(vs ...string) predicate.QuestionTranslation
- func FooterContentIsNil() predicate.QuestionTranslation
- func FooterContentLT(v string) predicate.QuestionTranslation
- func FooterContentLTE(v string) predicate.QuestionTranslation
- func FooterContentNEQ(v string) predicate.QuestionTranslation
- func FooterContentNotIn(vs ...string) predicate.QuestionTranslation
- func FooterContentNotNil() predicate.QuestionTranslation
- func HasQuestion() predicate.QuestionTranslation
- func HasQuestionWith(preds ...predicate.Question) predicate.QuestionTranslation
- func HeaderContent(v string) predicate.QuestionTranslation
- func HeaderContentContains(v string) predicate.QuestionTranslation
- func HeaderContentContainsFold(v string) predicate.QuestionTranslation
- func HeaderContentEQ(v string) predicate.QuestionTranslation
- func HeaderContentEqualFold(v string) predicate.QuestionTranslation
- func HeaderContentGT(v string) predicate.QuestionTranslation
- func HeaderContentGTE(v string) predicate.QuestionTranslation
- func HeaderContentHasPrefix(v string) predicate.QuestionTranslation
- func HeaderContentHasSuffix(v string) predicate.QuestionTranslation
- func HeaderContentIn(vs ...string) predicate.QuestionTranslation
- func HeaderContentIsNil() predicate.QuestionTranslation
- func HeaderContentLT(v string) predicate.QuestionTranslation
- func HeaderContentLTE(v string) predicate.QuestionTranslation
- func HeaderContentNEQ(v string) predicate.QuestionTranslation
- func HeaderContentNotIn(vs ...string) predicate.QuestionTranslation
- func HeaderContentNotNil() predicate.QuestionTranslation
- func ID(id uuid.UUID) predicate.QuestionTranslation
- func IDEQ(id uuid.UUID) predicate.QuestionTranslation
- func IDGT(id uuid.UUID) predicate.QuestionTranslation
- func IDGTE(id uuid.UUID) predicate.QuestionTranslation
- func IDIn(ids ...uuid.UUID) predicate.QuestionTranslation
- func IDLT(id uuid.UUID) predicate.QuestionTranslation
- func IDLTE(id uuid.UUID) predicate.QuestionTranslation
- func IDNEQ(id uuid.UUID) predicate.QuestionTranslation
- func IDNotIn(ids ...uuid.UUID) predicate.QuestionTranslation
- func LocaleEQ(v Locale) predicate.QuestionTranslation
- func LocaleIn(vs ...Locale) predicate.QuestionTranslation
- func LocaleNEQ(v Locale) predicate.QuestionTranslation
- func LocaleNotIn(vs ...Locale) predicate.QuestionTranslation
- func LocaleValidator(l Locale) error
- func Not(p predicate.QuestionTranslation) predicate.QuestionTranslation
- func Or(predicates ...predicate.QuestionTranslation) predicate.QuestionTranslation
- func ValidColumn(column string) bool
- type Locale
Constants ¶
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 = "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 ¶
var Columns = []string{ FieldID, FieldLocale, FieldContent, FieldHeaderContent, FieldFooterContent, }
Columns holds all SQL columns for questiontranslation fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
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 ¶
func And(predicates ...predicate.QuestionTranslation) predicate.QuestionTranslation
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.QuestionTranslation
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 ¶
func ContentEQ(v string) predicate.QuestionTranslation
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 ¶
func ContentGT(v string) predicate.QuestionTranslation
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 ¶
func ContentLT(v string) predicate.QuestionTranslation
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 ¶
func ID(id uuid.UUID) predicate.QuestionTranslation
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.QuestionTranslation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.QuestionTranslation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.QuestionTranslation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.QuestionTranslation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.QuestionTranslation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.QuestionTranslation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.QuestionTranslation
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 ¶
func LocaleEQ(v Locale) predicate.QuestionTranslation
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 ¶
func LocaleNEQ(v Locale) predicate.QuestionTranslation
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 ¶
LocaleValidator is a validator for the "locale" field enum values. It is called by the builders before save.
func Not ¶
func Not(p predicate.QuestionTranslation) predicate.QuestionTranslation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.QuestionTranslation) predicate.QuestionTranslation
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).