Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Task) predicate.Task
- func ID(id int) predicate.Task
- func IDEQ(id int) predicate.Task
- func IDGT(id int) predicate.Task
- func IDGTE(id int) predicate.Task
- func IDIn(ids ...int) predicate.Task
- func IDLT(id int) predicate.Task
- func IDLTE(id int) predicate.Task
- func IDNEQ(id int) predicate.Task
- func IDNotIn(ids ...int) predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func Priority(v schema.Priority) predicate.Task
- func PriorityEQ(v schema.Priority) predicate.Task
- func PriorityGT(v schema.Priority) predicate.Task
- func PriorityGTE(v schema.Priority) predicate.Task
- func PriorityIn(vs ...schema.Priority) predicate.Task
- func PriorityLT(v schema.Priority) predicate.Task
- func PriorityLTE(v schema.Priority) predicate.Task
- func PriorityNEQ(v schema.Priority) predicate.Task
- func PriorityNotIn(vs ...schema.Priority) predicate.Task
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the task type in the database. Label = "task" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPriority holds the string denoting the priority field in the database. FieldPriority = "priority" // Table holds the table name of the task in the database. Table = "tasks" )
Variables ¶
var ( // DefaultPriority holds the default value on creation for the "priority" field. DefaultPriority schema.Priority // PriorityValidator is a validator for the "priority" field. It is called by the builders before save. PriorityValidator func(int) error )
var Columns = []string{ FieldID, FieldPriority, }
Columns holds all SQL columns for task fields.
Functions ¶
func Priority ¶
Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
func PriorityEQ ¶
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityGT ¶
PriorityGT applies the GT predicate on the "priority" field.
func PriorityGTE ¶
PriorityGTE applies the GTE predicate on the "priority" field.
func PriorityIn ¶
PriorityIn applies the In predicate on the "priority" field.
func PriorityLT ¶
PriorityLT applies the LT predicate on the "priority" field.
func PriorityLTE ¶
PriorityLTE applies the LTE predicate on the "priority" field.
func PriorityNEQ ¶
PriorityNEQ applies the NEQ predicate on the "priority" field.
func PriorityNotIn ¶
PriorityNotIn applies the NotIn predicate on the "priority" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.