Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func Code(v string) predicate.Tag
- func CodeContains(v string) predicate.Tag
- func CodeContainsFold(v string) predicate.Tag
- func CodeEQ(v string) predicate.Tag
- func CodeEqualFold(v string) predicate.Tag
- func CodeGT(v string) predicate.Tag
- func CodeGTE(v string) predicate.Tag
- func CodeHasPrefix(v string) predicate.Tag
- func CodeHasSuffix(v string) predicate.Tag
- func CodeIn(vs ...string) predicate.Tag
- func CodeLT(v string) predicate.Tag
- func CodeLTE(v string) predicate.Tag
- func CodeNEQ(v string) predicate.Tag
- func CodeNotIn(vs ...string) predicate.Tag
- func CreateTime(v time.Time) predicate.Tag
- func CreateTimeEQ(v time.Time) predicate.Tag
- func CreateTimeGT(v time.Time) predicate.Tag
- func CreateTimeGTE(v time.Time) predicate.Tag
- func CreateTimeIn(vs ...time.Time) predicate.Tag
- func CreateTimeLT(v time.Time) predicate.Tag
- func CreateTimeLTE(v time.Time) predicate.Tag
- func CreateTimeNEQ(v time.Time) predicate.Tag
- func CreateTimeNotIn(vs ...time.Time) predicate.Tag
- func HasTest() predicate.Tag
- func HasTestWith(preds ...predicate.Test) predicate.Tag
- func HasTranslations() predicate.Tag
- func HasTranslationsWith(preds ...predicate.TagTranslation) predicate.Tag
- func ID(id uuid.UUID) predicate.Tag
- func IDEQ(id uuid.UUID) predicate.Tag
- func IDGT(id uuid.UUID) predicate.Tag
- func IDGTE(id uuid.UUID) predicate.Tag
- func IDIn(ids ...uuid.UUID) predicate.Tag
- func IDLT(id uuid.UUID) predicate.Tag
- func IDLTE(id uuid.UUID) predicate.Tag
- func IDNEQ(id uuid.UUID) predicate.Tag
- func IDNotIn(ids ...uuid.UUID) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) predicate.Tag
- func TypeEQ(v Type) predicate.Tag
- func TypeIn(vs ...Type) predicate.Tag
- func TypeNEQ(v Type) predicate.Tag
- func TypeNotIn(vs ...Type) predicate.Tag
- func TypeValidator(_type Type) error
- func UpdateTime(v time.Time) predicate.Tag
- func UpdateTimeEQ(v time.Time) predicate.Tag
- func UpdateTimeGT(v time.Time) predicate.Tag
- func UpdateTimeGTE(v time.Time) predicate.Tag
- func UpdateTimeIn(vs ...time.Time) predicate.Tag
- func UpdateTimeLT(v time.Time) predicate.Tag
- func UpdateTimeLTE(v time.Time) predicate.Tag
- func UpdateTimeNEQ(v time.Time) predicate.Tag
- func UpdateTimeNotIn(vs ...time.Time) predicate.Tag
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the tag type in the database. Label = "tag" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeTranslations holds the string denoting the translations edge name in mutations. EdgeTranslations = "translations" // EdgeTest holds the string denoting the test edge name in mutations. EdgeTest = "test" // Table holds the table name of the tag in the database. Table = "tags" // TranslationsTable is the table that holds the translations relation/edge. TranslationsTable = "tag_translations" // TranslationsInverseTable is the table name for the TagTranslation entity. // It exists in this package in order to avoid circular dependency with the "tagtranslation" package. TranslationsInverseTable = "tag_translations" // TranslationsColumn is the table column denoting the translations relation/edge. TranslationsColumn = "tag_translations" // TestTable is the table that holds the test relation/edge. The primary key declared below. TestTable = "test_tags" // 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" )
const DefaultType = TypeFeature
TypeFeature is the default value of the Type enum.
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldCode, FieldType, }
Columns holds all SQL columns for tag fields.
var ( // TestPrimaryKey and TestColumn2 are the table columns denoting the // primary key for the test relation (M2M). TestPrimaryKey = []string{"test_id", "tag_id"} )
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasTestWith ¶
HasTestWith applies the HasEdge predicate on the "test" edge with a given conditions (other predicates).
func HasTranslations ¶
HasTranslations applies the HasEdge predicate on the "translations" edge.
func HasTranslationsWith ¶
func HasTranslationsWith(preds ...predicate.TagTranslation) predicate.Tag
HasTranslationsWith applies the HasEdge predicate on the "translations" edge with a given conditions (other predicates).
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).