Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TagTranslation) predicate.TagTranslation
- func Content(v string) predicate.TagTranslation
- func ContentContains(v string) predicate.TagTranslation
- func ContentContainsFold(v string) predicate.TagTranslation
- func ContentEQ(v string) predicate.TagTranslation
- func ContentEqualFold(v string) predicate.TagTranslation
- func ContentGT(v string) predicate.TagTranslation
- func ContentGTE(v string) predicate.TagTranslation
- func ContentHasPrefix(v string) predicate.TagTranslation
- func ContentHasSuffix(v string) predicate.TagTranslation
- func ContentIn(vs ...string) predicate.TagTranslation
- func ContentLT(v string) predicate.TagTranslation
- func ContentLTE(v string) predicate.TagTranslation
- func ContentNEQ(v string) predicate.TagTranslation
- func ContentNotIn(vs ...string) predicate.TagTranslation
- func HasTag() predicate.TagTranslation
- func HasTagWith(preds ...predicate.Tag) predicate.TagTranslation
- func ID(id uuid.UUID) predicate.TagTranslation
- func IDEQ(id uuid.UUID) predicate.TagTranslation
- func IDGT(id uuid.UUID) predicate.TagTranslation
- func IDGTE(id uuid.UUID) predicate.TagTranslation
- func IDIn(ids ...uuid.UUID) predicate.TagTranslation
- func IDLT(id uuid.UUID) predicate.TagTranslation
- func IDLTE(id uuid.UUID) predicate.TagTranslation
- func IDNEQ(id uuid.UUID) predicate.TagTranslation
- func IDNotIn(ids ...uuid.UUID) predicate.TagTranslation
- func LocaleEQ(v Locale) predicate.TagTranslation
- func LocaleIn(vs ...Locale) predicate.TagTranslation
- func LocaleNEQ(v Locale) predicate.TagTranslation
- func LocaleNotIn(vs ...Locale) predicate.TagTranslation
- func LocaleValidator(l Locale) error
- func Not(p predicate.TagTranslation) predicate.TagTranslation
- func Or(predicates ...predicate.TagTranslation) predicate.TagTranslation
- func ValidColumn(column string) bool
- type Locale
Constants ¶
const ( // Label holds the string label denoting the tagtranslation type in the database. Label = "tag_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" // EdgeTag holds the string denoting the tag edge name in mutations. EdgeTag = "tag" // Table holds the table name of the tagtranslation in the database. Table = "tag_translations" // TagTable is the table that holds the tag relation/edge. TagTable = "tag_translations" // TagInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagInverseTable = "tags" // TagColumn is the table column denoting the tag relation/edge. TagColumn = "tag_translations" )
Variables ¶
var ( // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldLocale, FieldContent, }
Columns holds all SQL columns for tagtranslation fields.
var ForeignKeys = []string{
"tag_translations",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tag_translations" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.TagTranslation) predicate.TagTranslation
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.TagTranslation
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.TagTranslation
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.TagTranslation
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.TagTranslation
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.TagTranslation
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.TagTranslation
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.TagTranslation
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.TagTranslation
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.TagTranslation
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.TagTranslation
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.TagTranslation
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.TagTranslation
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.TagTranslation
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.TagTranslation
ContentNotIn applies the NotIn predicate on the "content" field.
func HasTag ¶
func HasTag() predicate.TagTranslation
HasTag applies the HasEdge predicate on the "tag" edge.
func HasTagWith ¶
func HasTagWith(preds ...predicate.Tag) predicate.TagTranslation
HasTagWith applies the HasEdge predicate on the "tag" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.TagTranslation
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.TagTranslation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.TagTranslation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.TagTranslation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.TagTranslation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.TagTranslation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.TagTranslation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.TagTranslation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.TagTranslation
IDNotIn applies the NotIn predicate on the ID field.
func LocaleEQ ¶
func LocaleEQ(v Locale) predicate.TagTranslation
LocaleEQ applies the EQ predicate on the "locale" field.
func LocaleIn ¶
func LocaleIn(vs ...Locale) predicate.TagTranslation
LocaleIn applies the In predicate on the "locale" field.
func LocaleNEQ ¶
func LocaleNEQ(v Locale) predicate.TagTranslation
LocaleNEQ applies the NEQ predicate on the "locale" field.
func LocaleNotIn ¶
func LocaleNotIn(vs ...Locale) predicate.TagTranslation
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.TagTranslation) predicate.TagTranslation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TagTranslation) predicate.TagTranslation
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).