Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ComponentTag) predicate.ComponentTag
- func CreateTime(v time.Time) predicate.ComponentTag
- func CreateTimeEQ(v time.Time) predicate.ComponentTag
- func CreateTimeGT(v time.Time) predicate.ComponentTag
- func CreateTimeGTE(v time.Time) predicate.ComponentTag
- func CreateTimeIn(vs ...time.Time) predicate.ComponentTag
- func CreateTimeLT(v time.Time) predicate.ComponentTag
- func CreateTimeLTE(v time.Time) predicate.ComponentTag
- func CreateTimeNEQ(v time.Time) predicate.ComponentTag
- func CreateTimeNotIn(vs ...time.Time) predicate.ComponentTag
- func En(v string) predicate.ComponentTag
- func EnContains(v string) predicate.ComponentTag
- func EnContainsFold(v string) predicate.ComponentTag
- func EnEQ(v string) predicate.ComponentTag
- func EnEqualFold(v string) predicate.ComponentTag
- func EnGT(v string) predicate.ComponentTag
- func EnGTE(v string) predicate.ComponentTag
- func EnHasPrefix(v string) predicate.ComponentTag
- func EnHasSuffix(v string) predicate.ComponentTag
- func EnIn(vs ...string) predicate.ComponentTag
- func EnLT(v string) predicate.ComponentTag
- func EnLTE(v string) predicate.ComponentTag
- func EnNEQ(v string) predicate.ComponentTag
- func EnNotIn(vs ...string) predicate.ComponentTag
- func HasComponentTag() predicate.ComponentTag
- func HasComponentTagWith(preds ...predicate.Component) predicate.ComponentTag
- func ID(id int) predicate.ComponentTag
- func IDEQ(id int) predicate.ComponentTag
- func IDGT(id int) predicate.ComponentTag
- func IDGTE(id int) predicate.ComponentTag
- func IDIn(ids ...int) predicate.ComponentTag
- func IDLT(id int) predicate.ComponentTag
- func IDLTE(id int) predicate.ComponentTag
- func IDNEQ(id int) predicate.ComponentTag
- func IDNotIn(ids ...int) predicate.ComponentTag
- func Not(p predicate.ComponentTag) predicate.ComponentTag
- func Or(predicates ...predicate.ComponentTag) predicate.ComponentTag
- func ValidColumn(column string) bool
- func Zh(v string) predicate.ComponentTag
- func ZhContains(v string) predicate.ComponentTag
- func ZhContainsFold(v string) predicate.ComponentTag
- func ZhEQ(v string) predicate.ComponentTag
- func ZhEqualFold(v string) predicate.ComponentTag
- func ZhGT(v string) predicate.ComponentTag
- func ZhGTE(v string) predicate.ComponentTag
- func ZhHasPrefix(v string) predicate.ComponentTag
- func ZhHasSuffix(v string) predicate.ComponentTag
- func ZhIn(vs ...string) predicate.ComponentTag
- func ZhLT(v string) predicate.ComponentTag
- func ZhLTE(v string) predicate.ComponentTag
- func ZhNEQ(v string) predicate.ComponentTag
- func ZhNotIn(vs ...string) predicate.ComponentTag
Constants ¶
const ( // Label holds the string label denoting the componenttag type in the database. Label = "component_tag" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldEn holds the string denoting the en field in the database. FieldEn = "en" // FieldZh holds the string denoting the zh field in the database. FieldZh = "zh" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // EdgeComponentTag holds the string denoting the component_tag edge name in mutations. EdgeComponentTag = "component_tag" // Table holds the table name of the componenttag in the database. Table = "component_tag" // ComponentTagTable is the table that holds the component_tag relation/edge. The primary key declared below. ComponentTagTable = "component_component_tags" // ComponentTagInverseTable is the table name for the Component entity. // It exists in this package in order to avoid circular dependency with the "component" package. ComponentTagInverseTable = "components" )
Variables ¶
var ( // EnValidator is a validator for the "en" field. It is called by the builders before save. EnValidator func(string) error // ZhValidator is a validator for the "zh" field. It is called by the builders before save. ZhValidator func(string) error // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time )
var Columns = []string{ FieldID, FieldEn, FieldZh, FieldCreateTime, }
Columns holds all SQL columns for componenttag fields.
var ( // ComponentTagPrimaryKey and ComponentTagColumn2 are the table columns denoting the // primary key for the component_tag relation (M2M). ComponentTagPrimaryKey = []string{"component_id", "component_tag_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.ComponentTag) predicate.ComponentTag
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.ComponentTag
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.ComponentTag
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.ComponentTag
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.ComponentTag
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.ComponentTag
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.ComponentTag
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.ComponentTag
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.ComponentTag
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.ComponentTag
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func En ¶
func En(v string) predicate.ComponentTag
En applies equality check predicate on the "en" field. It's identical to EnEQ.
func EnContains ¶
func EnContains(v string) predicate.ComponentTag
EnContains applies the Contains predicate on the "en" field.
func EnContainsFold ¶
func EnContainsFold(v string) predicate.ComponentTag
EnContainsFold applies the ContainsFold predicate on the "en" field.
func EnEQ ¶
func EnEQ(v string) predicate.ComponentTag
EnEQ applies the EQ predicate on the "en" field.
func EnEqualFold ¶
func EnEqualFold(v string) predicate.ComponentTag
EnEqualFold applies the EqualFold predicate on the "en" field.
func EnGT ¶
func EnGT(v string) predicate.ComponentTag
EnGT applies the GT predicate on the "en" field.
func EnGTE ¶
func EnGTE(v string) predicate.ComponentTag
EnGTE applies the GTE predicate on the "en" field.
func EnHasPrefix ¶
func EnHasPrefix(v string) predicate.ComponentTag
EnHasPrefix applies the HasPrefix predicate on the "en" field.
func EnHasSuffix ¶
func EnHasSuffix(v string) predicate.ComponentTag
EnHasSuffix applies the HasSuffix predicate on the "en" field.
func EnIn ¶
func EnIn(vs ...string) predicate.ComponentTag
EnIn applies the In predicate on the "en" field.
func EnLT ¶
func EnLT(v string) predicate.ComponentTag
EnLT applies the LT predicate on the "en" field.
func EnLTE ¶
func EnLTE(v string) predicate.ComponentTag
EnLTE applies the LTE predicate on the "en" field.
func EnNEQ ¶
func EnNEQ(v string) predicate.ComponentTag
EnNEQ applies the NEQ predicate on the "en" field.
func EnNotIn ¶
func EnNotIn(vs ...string) predicate.ComponentTag
EnNotIn applies the NotIn predicate on the "en" field.
func HasComponentTag ¶
func HasComponentTag() predicate.ComponentTag
HasComponentTag applies the HasEdge predicate on the "component_tag" edge.
func HasComponentTagWith ¶
func HasComponentTagWith(preds ...predicate.Component) predicate.ComponentTag
HasComponentTagWith applies the HasEdge predicate on the "component_tag" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.ComponentTag
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ComponentTag
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ComponentTag
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ComponentTag
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ComponentTag
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ComponentTag) predicate.ComponentTag
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ComponentTag) predicate.ComponentTag
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Zh ¶
func Zh(v string) predicate.ComponentTag
Zh applies equality check predicate on the "zh" field. It's identical to ZhEQ.
func ZhContains ¶
func ZhContains(v string) predicate.ComponentTag
ZhContains applies the Contains predicate on the "zh" field.
func ZhContainsFold ¶
func ZhContainsFold(v string) predicate.ComponentTag
ZhContainsFold applies the ContainsFold predicate on the "zh" field.
func ZhEQ ¶
func ZhEQ(v string) predicate.ComponentTag
ZhEQ applies the EQ predicate on the "zh" field.
func ZhEqualFold ¶
func ZhEqualFold(v string) predicate.ComponentTag
ZhEqualFold applies the EqualFold predicate on the "zh" field.
func ZhGT ¶
func ZhGT(v string) predicate.ComponentTag
ZhGT applies the GT predicate on the "zh" field.
func ZhGTE ¶
func ZhGTE(v string) predicate.ComponentTag
ZhGTE applies the GTE predicate on the "zh" field.
func ZhHasPrefix ¶
func ZhHasPrefix(v string) predicate.ComponentTag
ZhHasPrefix applies the HasPrefix predicate on the "zh" field.
func ZhHasSuffix ¶
func ZhHasSuffix(v string) predicate.ComponentTag
ZhHasSuffix applies the HasSuffix predicate on the "zh" field.
func ZhIn ¶
func ZhIn(vs ...string) predicate.ComponentTag
ZhIn applies the In predicate on the "zh" field.
func ZhLT ¶
func ZhLT(v string) predicate.ComponentTag
ZhLT applies the LT predicate on the "zh" field.
func ZhLTE ¶
func ZhLTE(v string) predicate.ComponentTag
ZhLTE applies the LTE predicate on the "zh" field.
func ZhNEQ ¶
func ZhNEQ(v string) predicate.ComponentTag
ZhNEQ applies the NEQ predicate on the "zh" field.
func ZhNotIn ¶
func ZhNotIn(vs ...string) predicate.ComponentTag
ZhNotIn applies the NotIn predicate on the "zh" field.
Types ¶
This section is empty.