job

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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 vertex property in the database.
	FieldName = "name"
	// FieldCreationTime holds the string denoting the creationtime vertex property in the database.
	FieldCreationTime = "creation_time"
	// FieldContent holds the string denoting the content vertex property in the database.
	FieldContent = "content"
	// FieldStaged holds the string denoting the staged vertex property in the database.
	FieldStaged = "staged"

	// Table holds the table name of the job in the database.
	Table = "jobs"
	// TasksTable is the table the 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_id"
	// TagsTable is the table the 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 the holds the prev relation/edge.
	PrevTable = "jobs"
	// PrevColumn is the table column denoting the prev relation/edge.
	PrevColumn = "prev_id"
	// NextTable is the table the holds the next relation/edge.
	NextTable = "jobs"
	// NextColumn is the table column denoting the next relation/edge.
	NextColumn = "prev_id"
	// OwnerTable is the table the 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 = "owner_id"
)

Variables

View Source
var (

	// NameValidator is a validator for the "Name" field. It is called by the builders before save.
	NameValidator = descName.Validators[0].(func(string) error)

	// DefaultCreationTime holds the default value on creation for the CreationTime field.
	DefaultCreationTime = descCreationTime.Default.(func() time.Time)

	// ContentValidator is a validator for the "Content" field. It is called by the builders before save.
	ContentValidator = descContent.Validators[0].(func(string) error)
)

Columns holds all SQL columns for job fields.

View Source
var ForeignKeys = []string{
	"prev_id",
	"owner_id",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Job type.

View Source
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 And

func And(predicates ...predicate.Job) predicate.Job

And groups list of predicates with the AND operator between them.

func Content

func Content(v string) predicate.Job

Content applies equality check predicate on the "Content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Job

ContentContains applies the Contains predicate on the "Content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Job

ContentContainsFold applies the ContainsFold predicate on the "Content" field.

func ContentEQ

func ContentEQ(v string) predicate.Job

ContentEQ applies the EQ predicate on the "Content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Job

ContentEqualFold applies the EqualFold predicate on the "Content" field.

func ContentGT

func ContentGT(v string) predicate.Job

ContentGT applies the GT predicate on the "Content" field.

func ContentGTE

func ContentGTE(v string) predicate.Job

ContentGTE applies the GTE predicate on the "Content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Job

ContentHasPrefix applies the HasPrefix predicate on the "Content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Job

ContentHasSuffix applies the HasSuffix predicate on the "Content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Job

ContentIn applies the In predicate on the "Content" field.

func ContentLT

func ContentLT(v string) predicate.Job

ContentLT applies the LT predicate on the "Content" field.

func ContentLTE

func ContentLTE(v string) predicate.Job

ContentLTE applies the LTE predicate on the "Content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Job

ContentNEQ applies the NEQ predicate on the "Content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Job

ContentNotIn applies the NotIn predicate on the "Content" field.

func CreationTime

func CreationTime(v time.Time) predicate.Job

CreationTime applies equality check predicate on the "CreationTime" field. It's identical to CreationTimeEQ.

func CreationTimeEQ

func CreationTimeEQ(v time.Time) predicate.Job

CreationTimeEQ applies the EQ predicate on the "CreationTime" field.

func CreationTimeGT

func CreationTimeGT(v time.Time) predicate.Job

CreationTimeGT applies the GT predicate on the "CreationTime" field.

func CreationTimeGTE

func CreationTimeGTE(v time.Time) predicate.Job

CreationTimeGTE applies the GTE predicate on the "CreationTime" field.

func CreationTimeIn

func CreationTimeIn(vs ...time.Time) predicate.Job

CreationTimeIn applies the In predicate on the "CreationTime" field.

func CreationTimeLT

func CreationTimeLT(v time.Time) predicate.Job

CreationTimeLT applies the LT predicate on the "CreationTime" field.

func CreationTimeLTE

func CreationTimeLTE(v time.Time) predicate.Job

CreationTimeLTE applies the LTE predicate on the "CreationTime" field.

func CreationTimeNEQ

func CreationTimeNEQ(v time.Time) predicate.Job

CreationTimeNEQ applies the NEQ predicate on the "CreationTime" field.

func CreationTimeNotIn

func CreationTimeNotIn(vs ...time.Time) predicate.Job

CreationTimeNotIn applies the NotIn predicate on the "CreationTime" field.

func HasNext

func HasNext() predicate.Job

HasNext applies the HasEdge predicate on the "next" edge.

func HasNextWith

func HasNextWith(preds ...predicate.Job) predicate.Job

HasNextWith applies the HasEdge predicate on the "next" edge with a given conditions (other predicates).

func HasOwner added in v0.3.0

func HasOwner() predicate.Job

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith added in v0.3.0

func HasOwnerWith(preds ...predicate.User) predicate.Job

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasPrev

func HasPrev() predicate.Job

HasPrev applies the HasEdge predicate on the "prev" edge.

func HasPrevWith

func HasPrevWith(preds ...predicate.Job) predicate.Job

HasPrevWith applies the HasEdge predicate on the "prev" edge with a given conditions (other predicates).

func HasTags

func HasTags() predicate.Job

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Job

HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).

func HasTasks

func HasTasks() predicate.Job

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.Task) predicate.Job

HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Job

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Job

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Job

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Job

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Job

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Job

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Job

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Job

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Job

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Job

Name applies equality check predicate on the "Name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Job

NameContains applies the Contains predicate on the "Name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Job

NameContainsFold applies the ContainsFold predicate on the "Name" field.

func NameEQ

func NameEQ(v string) predicate.Job

NameEQ applies the EQ predicate on the "Name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Job

NameEqualFold applies the EqualFold predicate on the "Name" field.

func NameGT

func NameGT(v string) predicate.Job

NameGT applies the GT predicate on the "Name" field.

func NameGTE

func NameGTE(v string) predicate.Job

NameGTE applies the GTE predicate on the "Name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Job

NameHasPrefix applies the HasPrefix predicate on the "Name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Job

NameHasSuffix applies the HasSuffix predicate on the "Name" field.

func NameIn

func NameIn(vs ...string) predicate.Job

NameIn applies the In predicate on the "Name" field.

func NameLT

func NameLT(v string) predicate.Job

NameLT applies the LT predicate on the "Name" field.

func NameLTE

func NameLTE(v string) predicate.Job

NameLTE applies the LTE predicate on the "Name" field.

func NameNEQ

func NameNEQ(v string) predicate.Job

NameNEQ applies the NEQ predicate on the "Name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Job

NameNotIn applies the NotIn predicate on the "Name" field.

func Not

func Not(p predicate.Job) predicate.Job

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Job) predicate.Job

Or groups list of predicates with the OR operator between them.

func Staged added in v0.3.0

func Staged(v bool) predicate.Job

Staged applies equality check predicate on the "Staged" field. It's identical to StagedEQ.

func StagedEQ added in v0.3.0

func StagedEQ(v bool) predicate.Job

StagedEQ applies the EQ predicate on the "Staged" field.

func StagedNEQ added in v0.3.0

func StagedNEQ(v bool) predicate.Job

StagedNEQ applies the NEQ predicate on the "Staged" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL