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 Name(v string) predicate.Task
- func NameContains(v string) predicate.Task
- func NameContainsFold(v string) predicate.Task
- func NameEQ(v string) predicate.Task
- func NameEqualFold(v string) predicate.Task
- func NameGT(v string) predicate.Task
- func NameGTE(v string) predicate.Task
- func NameHasPrefix(v string) predicate.Task
- func NameHasSuffix(v string) predicate.Task
- func NameIn(vs ...string) predicate.Task
- func NameIsNil() predicate.Task
- func NameLT(v string) predicate.Task
- func NameLTE(v string) predicate.Task
- func NameNEQ(v string) predicate.Task
- func NameNotIn(vs ...string) predicate.Task
- func NameNotNil() predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func Owner(v string) predicate.Task
- func OwnerContains(v string) predicate.Task
- func OwnerContainsFold(v string) predicate.Task
- func OwnerEQ(v string) predicate.Task
- func OwnerEqualFold(v string) predicate.Task
- func OwnerGT(v string) predicate.Task
- func OwnerGTE(v string) predicate.Task
- func OwnerHasPrefix(v string) predicate.Task
- func OwnerHasSuffix(v string) predicate.Task
- func OwnerIn(vs ...string) predicate.Task
- func OwnerIsNil() predicate.Task
- func OwnerLT(v string) predicate.Task
- func OwnerLTE(v string) predicate.Task
- func OwnerNEQ(v string) predicate.Task
- func OwnerNotIn(vs ...string) predicate.Task
- func OwnerNotNil() 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // 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 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldPriority, FieldPriorities, FieldCreatedAt, FieldName, FieldOwner, }
Columns holds all SQL columns for task fields.
Functions ¶
func CreatedAt ¶ added in v0.11.3
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶ added in v0.11.3
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶ added in v0.11.3
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶ added in v0.11.3
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶ added in v0.11.3
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶ added in v0.11.3
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶ added in v0.11.3
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶ added in v0.11.3
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶ added in v0.11.3
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Name ¶ added in v0.11.8
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶ added in v0.11.8
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶ added in v0.11.8
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶ added in v0.11.8
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶ added in v0.11.8
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶ added in v0.11.8
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶ added in v0.11.8
NameNotNil applies the NotNil predicate on the "name" field.
func Owner ¶ added in v0.11.8
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerContains ¶ added in v0.11.8
OwnerContains applies the Contains predicate on the "owner" field.
func OwnerContainsFold ¶ added in v0.11.8
OwnerContainsFold applies the ContainsFold predicate on the "owner" field.
func OwnerEqualFold ¶ added in v0.11.8
OwnerEqualFold applies the EqualFold predicate on the "owner" field.
func OwnerHasPrefix ¶ added in v0.11.8
OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.
func OwnerHasSuffix ¶ added in v0.11.8
OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.
func OwnerIsNil ¶ added in v0.11.8
OwnerIsNil applies the IsNil predicate on the "owner" field.
func OwnerNotIn ¶ added in v0.11.8
OwnerNotIn applies the NotIn predicate on the "owner" field.
func OwnerNotNil ¶ added in v0.11.8
OwnerNotNil applies the NotNil predicate on the "owner" field.
func PrioritiesIsNil ¶ added in v0.11.2
PrioritiesIsNil applies the IsNil predicate on the "priorities" field.
func PrioritiesNotNil ¶ added in v0.11.2
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.