Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Task
- func ActiveEQ(v bool) predicate.Task
- func ActiveNEQ(v bool) predicate.Task
- func And(predicates ...predicate.Task) predicate.Task
- func Code(v string) predicate.Task
- func CodeContains(v string) predicate.Task
- func CodeContainsFold(v string) predicate.Task
- func CodeEQ(v string) predicate.Task
- func CodeEqualFold(v string) predicate.Task
- func CodeGT(v string) predicate.Task
- func CodeGTE(v string) predicate.Task
- func CodeHasPrefix(v string) predicate.Task
- func CodeHasSuffix(v string) predicate.Task
- func CodeIn(vs ...string) predicate.Task
- func CodeLT(v string) predicate.Task
- func CodeLTE(v string) predicate.Task
- func CodeNEQ(v string) predicate.Task
- func CodeNotIn(vs ...string) predicate.Task
- func CreateTime(v time.Time) predicate.Task
- func CreateTimeEQ(v time.Time) predicate.Task
- func CreateTimeGT(v time.Time) predicate.Task
- func CreateTimeGTE(v time.Time) predicate.Task
- func CreateTimeIn(vs ...time.Time) predicate.Task
- func CreateTimeLT(v time.Time) predicate.Task
- func CreateTimeLTE(v time.Time) predicate.Task
- func CreateTimeNEQ(v time.Time) predicate.Task
- func CreateTimeNotIn(vs ...time.Time) predicate.Task
- func DeleteTime(v time.Time) predicate.Task
- func DeleteTimeEQ(v time.Time) predicate.Task
- func DeleteTimeGT(v time.Time) predicate.Task
- func DeleteTimeGTE(v time.Time) predicate.Task
- func DeleteTimeIn(vs ...time.Time) predicate.Task
- func DeleteTimeIsNil() predicate.Task
- func DeleteTimeLT(v time.Time) predicate.Task
- func DeleteTimeLTE(v time.Time) predicate.Task
- func DeleteTimeNEQ(v time.Time) predicate.Task
- func DeleteTimeNotIn(vs ...time.Time) predicate.Task
- func DeleteTimeNotNil() predicate.Task
- func Description(v string) predicate.Task
- func DescriptionContains(v string) predicate.Task
- func DescriptionContainsFold(v string) predicate.Task
- func DescriptionEQ(v string) predicate.Task
- func DescriptionEqualFold(v string) predicate.Task
- func DescriptionGT(v string) predicate.Task
- func DescriptionGTE(v string) predicate.Task
- func DescriptionHasPrefix(v string) predicate.Task
- func DescriptionHasSuffix(v string) predicate.Task
- func DescriptionIn(vs ...string) predicate.Task
- func DescriptionIsNil() predicate.Task
- func DescriptionLT(v string) predicate.Task
- func DescriptionLTE(v string) predicate.Task
- func DescriptionNEQ(v string) predicate.Task
- func DescriptionNotIn(vs ...string) predicate.Task
- func DescriptionNotNil() predicate.Task
- func HasItems() predicate.Task
- func HasItemsWith(preds ...predicate.Item) predicate.Task
- func HasType() predicate.Task
- func HasTypeWith(preds ...predicate.TaskType) predicate.Task
- func HasUser() predicate.Task
- func HasUserWith(preds ...predicate.User) 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 MetaIsNil() predicate.Task
- func MetaNotNil() predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func ParamsIsNil() predicate.Task
- func ParamsNotNil() predicate.Task
- func Slug(v string) predicate.Task
- func SlugContains(v string) predicate.Task
- func SlugContainsFold(v string) predicate.Task
- func SlugEQ(v string) predicate.Task
- func SlugEqualFold(v string) predicate.Task
- func SlugGT(v string) predicate.Task
- func SlugGTE(v string) predicate.Task
- func SlugHasPrefix(v string) predicate.Task
- func SlugHasSuffix(v string) predicate.Task
- func SlugIn(vs ...string) predicate.Task
- func SlugLT(v string) predicate.Task
- func SlugLTE(v string) predicate.Task
- func SlugNEQ(v string) predicate.Task
- func SlugNotIn(vs ...string) predicate.Task
- func Title(v string) predicate.Task
- func TitleContains(v string) predicate.Task
- func TitleContainsFold(v string) predicate.Task
- func TitleEQ(v string) predicate.Task
- func TitleEqualFold(v string) predicate.Task
- func TitleGT(v string) predicate.Task
- func TitleGTE(v string) predicate.Task
- func TitleHasPrefix(v string) predicate.Task
- func TitleHasSuffix(v string) predicate.Task
- func TitleIn(vs ...string) predicate.Task
- func TitleLT(v string) predicate.Task
- func TitleLTE(v string) predicate.Task
- func TitleNEQ(v string) predicate.Task
- func TitleNotIn(vs ...string) predicate.Task
- func UpdateTime(v time.Time) predicate.Task
- func UpdateTimeEQ(v time.Time) predicate.Task
- func UpdateTimeGT(v time.Time) predicate.Task
- func UpdateTimeGTE(v time.Time) predicate.Task
- func UpdateTimeIn(vs ...time.Time) predicate.Task
- func UpdateTimeLT(v time.Time) predicate.Task
- func UpdateTimeLTE(v time.Time) predicate.Task
- func UpdateTimeNEQ(v time.Time) predicate.Task
- func UpdateTimeNotIn(vs ...time.Time) predicate.Task
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" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldDeleteTime holds the string denoting the delete_time field in the database. FieldDeleteTime = "delete_time" // FieldParams holds the string denoting the params field in the database. FieldParams = "params" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeItems holds the string denoting the items edge name in mutations. EdgeItems = "items" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeType holds the string denoting the type edge name in mutations. EdgeType = "type" // Table holds the table name of the task in the database. Table = "tasks" // ItemsTable is the table the holds the items relation/edge. ItemsTable = "items" // ItemsInverseTable is the table name for the Item entity. // It exists in this package in order to avoid circular dependency with the "item" package. ItemsInverseTable = "items" // ItemsColumn is the table column denoting the items relation/edge. ItemsColumn = "task_items" // UserTable is the table the holds the user relation/edge. UserTable = "tasks" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_tasks" // TypeTable is the table the holds the type relation/edge. TypeTable = "tasks" // TypeInverseTable is the table name for the TaskType entity. // It exists in this package in order to avoid circular dependency with the "tasktype" package. TypeInverseTable = "task_types" // TypeColumn is the table column denoting the type relation/edge. TypeColumn = "task_type_tasks" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the create_time field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the update_time field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the update_time field. UpdateDefaultUpdateTime func() time.Time // SlugValidator is a validator for the "slug" field. It is called by the builders before save. SlugValidator func(string) error // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // DefaultActive holds the default value on creation for the active field. DefaultActive bool )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldSlug, FieldTitle, FieldDescription, FieldCode, FieldActive, FieldDeleteTime, FieldParams, FieldMeta, }
Columns holds all SQL columns for task fields.
var ForeignKeys = []string{
"task_type_tasks",
"user_tasks",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Task type.
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DeleteTime ¶
DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.
func DeleteTimeEQ ¶
DeleteTimeEQ applies the EQ predicate on the "delete_time" field.
func DeleteTimeGT ¶
DeleteTimeGT applies the GT predicate on the "delete_time" field.
func DeleteTimeGTE ¶
DeleteTimeGTE applies the GTE predicate on the "delete_time" field.
func DeleteTimeIn ¶
DeleteTimeIn applies the In predicate on the "delete_time" field.
func DeleteTimeIsNil ¶
DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.
func DeleteTimeLT ¶
DeleteTimeLT applies the LT predicate on the "delete_time" field.
func DeleteTimeLTE ¶
DeleteTimeLTE applies the LTE predicate on the "delete_time" field.
func DeleteTimeNEQ ¶
DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.
func DeleteTimeNotIn ¶
DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.
func DeleteTimeNotNil ¶
DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasItemsWith ¶
HasItemsWith applies the HasEdge predicate on the "items" edge with a given conditions (other predicates).
func HasTypeWith ¶
HasTypeWith applies the HasEdge predicate on the "type" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func ParamsIsNil ¶
ParamsIsNil applies the IsNil predicate on the "params" field.
func ParamsNotNil ¶
ParamsNotNil applies the NotNil predicate on the "params" field.
func SlugContains ¶
SlugContains applies the Contains predicate on the "slug" field.
func SlugContainsFold ¶
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugEqualFold ¶
SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugHasPrefix ¶
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasSuffix ¶
SlugHasSuffix applies the HasSuffix predicate on the "slug" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
Types ¶
This section is empty.