Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Task) predicate.Task
- func CreatedAt(v time.Time) predicate.Task
- func CreatedAtEQ(v time.Time) predicate.Task
- func CreatedAtGT(v time.Time) predicate.Task
- func CreatedAtGTE(v time.Time) predicate.Task
- func CreatedAtIn(vs ...time.Time) predicate.Task
- func CreatedAtLT(v time.Time) predicate.Task
- func CreatedAtLTE(v time.Time) predicate.Task
- func CreatedAtNEQ(v time.Time) predicate.Task
- func CreatedAtNotIn(vs ...time.Time) 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 PrioritiesIsNil() predicate.Task
- func PrioritiesNotNil() predicate.Task
- func Priority(v task.Priority) predicate.Task
- func PriorityEQ(v task.Priority) predicate.Task
- func PriorityGT(v task.Priority) predicate.Task
- func PriorityGTE(v task.Priority) predicate.Task
- func PriorityIn(vs ...task.Priority) predicate.Task
- func PriorityLT(v task.Priority) predicate.Task
- func PriorityLTE(v task.Priority) predicate.Task
- func PriorityNEQ(v task.Priority) predicate.Task
- func PriorityNotIn(vs ...task.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" // FieldPriorities holds the string denoting the priorities field in the database. FieldPriorities = "priorities" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // 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 task.Priority // PriorityValidator is a validator for the "priority" field. It is called by the builders before save. PriorityValidator func(int) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldPriority, FieldPriorities, FieldCreatedAt, }
Columns holds all SQL columns for task fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func PrioritiesIsNil ¶
PrioritiesIsNil applies the IsNil predicate on the "priorities" field.
func PrioritiesNotNil ¶
PrioritiesNotNil applies the NotNil predicate on the "priorities" field.
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.