Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func CreatedTime(v time.Time) predicate.Tag
- func CreatedTimeEQ(v time.Time) predicate.Tag
- func CreatedTimeGT(v time.Time) predicate.Tag
- func CreatedTimeGTE(v time.Time) predicate.Tag
- func CreatedTimeIn(vs ...time.Time) predicate.Tag
- func CreatedTimeLT(v time.Time) predicate.Tag
- func CreatedTimeLTE(v time.Time) predicate.Tag
- func CreatedTimeNEQ(v time.Time) predicate.Tag
- func CreatedTimeNotIn(vs ...time.Time) predicate.Tag
- func HasProblems() predicate.Tag
- func HasProblemsWith(preds ...predicate.Problem) predicate.Tag
- func ID(id int64) predicate.Tag
- func IDEQ(id int64) predicate.Tag
- func IDGT(id int64) predicate.Tag
- func IDGTE(id int64) predicate.Tag
- func IDIn(ids ...int64) predicate.Tag
- func IDLT(id int64) predicate.Tag
- func IDLTE(id int64) predicate.Tag
- func IDNEQ(id int64) predicate.Tag
- func IDNotIn(ids ...int64) predicate.Tag
- func Name(v string) predicate.Tag
- func NameContains(v string) predicate.Tag
- func NameContainsFold(v string) predicate.Tag
- func NameEQ(v string) predicate.Tag
- func NameEqualFold(v string) predicate.Tag
- func NameGT(v string) predicate.Tag
- func NameGTE(v string) predicate.Tag
- func NameHasPrefix(v string) predicate.Tag
- func NameHasSuffix(v string) predicate.Tag
- func NameIn(vs ...string) predicate.Tag
- func NameLT(v string) predicate.Tag
- func NameLTE(v string) predicate.Tag
- func NameNEQ(v string) predicate.Tag
- func NameNotIn(vs ...string) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) predicate.Tag
- func ValidColumn(column string) bool
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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedTime holds the string denoting the created_time field in the database. FieldCreatedTime = "created_time" // EdgeProblems holds the string denoting the problems edge name in mutations. EdgeProblems = "problems" // Table holds the table name of the tag in the database. Table = "tags" // ProblemsTable is the table that holds the problems relation/edge. The primary key declared below. ProblemsTable = "problem_tags" // ProblemsInverseTable is the table name for the Problem entity. // It exists in this package in order to avoid circular dependency with the "problem" package. ProblemsInverseTable = "problems" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCreatedTime holds the default value on creation for the "created_time" field. DefaultCreatedTime time.Time )
var Columns = []string{ FieldID, FieldName, FieldCreatedTime, }
Columns holds all SQL columns for tag fields.
var ( // ProblemsPrimaryKey and ProblemsColumn2 are the table columns denoting the // primary key for the problems relation (M2M). ProblemsPrimaryKey = []string{"problem_id", "tag_id"} )
Functions ¶
func CreatedTime ¶
CreatedTime applies equality check predicate on the "created_time" field. It's identical to CreatedTimeEQ.
func CreatedTimeEQ ¶
CreatedTimeEQ applies the EQ predicate on the "created_time" field.
func CreatedTimeGT ¶
CreatedTimeGT applies the GT predicate on the "created_time" field.
func CreatedTimeGTE ¶
CreatedTimeGTE applies the GTE predicate on the "created_time" field.
func CreatedTimeIn ¶
CreatedTimeIn applies the In predicate on the "created_time" field.
func CreatedTimeLT ¶
CreatedTimeLT applies the LT predicate on the "created_time" field.
func CreatedTimeLTE ¶
CreatedTimeLTE applies the LTE predicate on the "created_time" field.
func CreatedTimeNEQ ¶
CreatedTimeNEQ applies the NEQ predicate on the "created_time" field.
func CreatedTimeNotIn ¶
CreatedTimeNotIn applies the NotIn predicate on the "created_time" field.
func HasProblems ¶
HasProblems applies the HasEdge predicate on the "problems" edge.
func HasProblemsWith ¶
HasProblemsWith applies the HasEdge predicate on the "problems" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.