job

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 4 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 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

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

Columns holds all SQL columns for job fields.

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

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 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 ID field.

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 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.

func ValidColumn added in v0.4.3

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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