Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func HasJobs() predicate.Tag
- func HasJobsWith(preds ...predicate.Job) predicate.Tag
- func HasTargets() predicate.Tag
- func HasTargetsWith(preds ...predicate.Target) predicate.Tag
- func HasTasks() predicate.Tag
- func HasTasksWith(preds ...predicate.Task) predicate.Tag
- func ID(id int) predicate.Tag
- func IDEQ(id int) predicate.Tag
- func IDGT(id int) predicate.Tag
- func IDGTE(id int) predicate.Tag
- func IDIn(ids ...int) predicate.Tag
- func IDLT(id int) predicate.Tag
- func IDLTE(id int) predicate.Tag
- func IDNEQ(id int) predicate.Tag
- func IDNotIn(ids ...int) 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" // EdgeTargets holds the string denoting the targets edge name in mutations. EdgeTargets = "targets" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeJobs holds the string denoting the jobs edge name in mutations. EdgeJobs = "jobs" // Table holds the table name of the tag in the database. Table = "tags" // TargetsTable is the table that holds the targets relation/edge. The primary key declared below. TargetsTable = "target_tags" // TargetsInverseTable is the table name for the Target entity. // It exists in this package in order to avoid circular dependency with the "target" package. TargetsInverseTable = "targets" // TasksTable is the table that holds the tasks relation/edge. The primary key declared below. TasksTable = "task_tags" // TasksInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TasksInverseTable = "tasks" // JobsTable is the table that holds the jobs relation/edge. The primary key declared below. JobsTable = "job_tags" // JobsInverseTable is the table name for the Job entity. // It exists in this package in order to avoid circular dependency with the "job" package. JobsInverseTable = "jobs" )
Variables ¶
var ( // TargetsPrimaryKey and TargetsColumn2 are the table columns denoting the // primary key for the targets relation (M2M). TargetsPrimaryKey = []string{"target_id", "tag_id"} // TasksPrimaryKey and TasksColumn2 are the table columns denoting the // primary key for the tasks relation (M2M). TasksPrimaryKey = []string{"task_id", "tag_id"} // JobsPrimaryKey and JobsColumn2 are the table columns denoting the // primary key for the jobs relation (M2M). JobsPrimaryKey = []string{"job_id", "tag_id"} )
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for tag fields.
var ( // NameValidator is a validator for the "Name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func HasJobsWith ¶
HasJobsWith applies the HasEdge predicate on the "jobs" edge with a given conditions (other predicates).
func HasTargets ¶
HasTargets applies the HasEdge predicate on the "targets" edge.
func HasTargetsWith ¶
HasTargetsWith applies the HasEdge predicate on the "targets" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" 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 ¶ added in v0.4.3
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.