Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Job) predicate.Job
- func Content(v string) predicate.Job
- func ContentContains(v string) predicate.Job
- func ContentContainsFold(v string) predicate.Job
- func ContentEQ(v string) predicate.Job
- func ContentEqualFold(v string) predicate.Job
- func ContentGT(v string) predicate.Job
- func ContentGTE(v string) predicate.Job
- func ContentHasPrefix(v string) predicate.Job
- func ContentHasSuffix(v string) predicate.Job
- func ContentIn(vs ...string) predicate.Job
- func ContentLT(v string) predicate.Job
- func ContentLTE(v string) predicate.Job
- func ContentNEQ(v string) predicate.Job
- func ContentNotIn(vs ...string) predicate.Job
- func CreationTime(v time.Time) predicate.Job
- func CreationTimeEQ(v time.Time) predicate.Job
- func CreationTimeGT(v time.Time) predicate.Job
- func CreationTimeGTE(v time.Time) predicate.Job
- func CreationTimeIn(vs ...time.Time) predicate.Job
- func CreationTimeLT(v time.Time) predicate.Job
- func CreationTimeLTE(v time.Time) predicate.Job
- func CreationTimeNEQ(v time.Time) predicate.Job
- func CreationTimeNotIn(vs ...time.Time) predicate.Job
- func HasNext() predicate.Job
- func HasNextWith(preds ...predicate.Job) predicate.Job
- func HasOwner() predicate.Job
- func HasOwnerWith(preds ...predicate.User) predicate.Job
- func HasPrev() predicate.Job
- func HasPrevWith(preds ...predicate.Job) predicate.Job
- func HasTags() predicate.Job
- func HasTagsWith(preds ...predicate.Tag) predicate.Job
- func HasTasks() predicate.Job
- func HasTasksWith(preds ...predicate.Task) predicate.Job
- func ID(id int) predicate.Job
- func IDEQ(id int) predicate.Job
- func IDGT(id int) predicate.Job
- func IDGTE(id int) predicate.Job
- func IDIn(ids ...int) predicate.Job
- func IDLT(id int) predicate.Job
- func IDLTE(id int) predicate.Job
- func IDNEQ(id int) predicate.Job
- func IDNotIn(ids ...int) predicate.Job
- func Name(v string) predicate.Job
- func NameContains(v string) predicate.Job
- func NameContainsFold(v string) predicate.Job
- func NameEQ(v string) predicate.Job
- func NameEqualFold(v string) predicate.Job
- func NameGT(v string) predicate.Job
- func NameGTE(v string) predicate.Job
- func NameHasPrefix(v string) predicate.Job
- func NameHasSuffix(v string) predicate.Job
- func NameIn(vs ...string) predicate.Job
- func NameLT(v string) predicate.Job
- func NameLTE(v string) predicate.Job
- func NameNEQ(v string) predicate.Job
- func NameNotIn(vs ...string) predicate.Job
- func Not(p predicate.Job) predicate.Job
- func Or(predicates ...predicate.Job) predicate.Job
- func Staged(v bool) predicate.Job
- func StagedEQ(v bool) predicate.Job
- func StagedNEQ(v bool) predicate.Job
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the job type in the database. Label = "job" // 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" // FieldCreationTime holds the string denoting the creationtime field in the database. FieldCreationTime = "creation_time" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldStaged holds the string denoting the staged field in the database. FieldStaged = "staged" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgePrev holds the string denoting the prev edge name in mutations. EdgePrev = "prev" // EdgeNext holds the string denoting the next edge name in mutations. EdgeNext = "next" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the job in the database. Table = "jobs" // TasksTable is the table that holds the tasks relation/edge. TasksTable = "tasks" // 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" // TasksColumn is the table column denoting the tasks relation/edge. TasksColumn = "job_tasks" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "job_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" // PrevTable is the table that holds the prev relation/edge. PrevTable = "jobs" // PrevColumn is the table column denoting the prev relation/edge. PrevColumn = "job_next" // NextTable is the table that holds the next relation/edge. NextTable = "jobs" // NextColumn is the table column denoting the next relation/edge. NextColumn = "job_next" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "jobs" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_jobs" )
Variables ¶
var ( // NameValidator is a validator for the "Name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCreationTime holds the default value on creation for the "CreationTime" field. DefaultCreationTime func() time.Time // ContentValidator is a validator for the "Content" field. It is called by the builders before save. ContentValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldCreationTime, FieldContent, FieldStaged, }
Columns holds all SQL columns for job fields.
var ForeignKeys = []string{
"job_next",
"user_jobs",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "jobs" table and are not defined as standalone fields in the schema.
var ( // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"job_id", "tag_id"} )
Functions ¶
func Content ¶
Content applies equality check predicate on the "Content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "Content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "Content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "Content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "Content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "Content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "Content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "Content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "Content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "Content" field.
func CreationTime ¶
CreationTime applies equality check predicate on the "CreationTime" field. It's identical to CreationTimeEQ.
func CreationTimeEQ ¶
CreationTimeEQ applies the EQ predicate on the "CreationTime" field.
func CreationTimeGT ¶
CreationTimeGT applies the GT predicate on the "CreationTime" field.
func CreationTimeGTE ¶
CreationTimeGTE applies the GTE predicate on the "CreationTime" field.
func CreationTimeIn ¶
CreationTimeIn applies the In predicate on the "CreationTime" field.
func CreationTimeLT ¶
CreationTimeLT applies the LT predicate on the "CreationTime" field.
func CreationTimeLTE ¶
CreationTimeLTE applies the LTE predicate on the "CreationTime" field.
func CreationTimeNEQ ¶
CreationTimeNEQ applies the NEQ predicate on the "CreationTime" field.
func CreationTimeNotIn ¶
CreationTimeNotIn applies the NotIn predicate on the "CreationTime" field.
func HasNextWith ¶
HasNextWith applies the HasEdge predicate on the "next" edge with a given conditions (other predicates).
func HasOwnerWith ¶ added in v0.3.0
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasPrevWith ¶
HasPrevWith applies the HasEdge predicate on the "prev" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" 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 Staged ¶ added in v0.3.0
Staged applies equality check predicate on the "Staged" field. It's identical to StagedEQ.
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.