preservationtask

package
v0.0.0-...-c2b9680 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the preservationtask type in the database.
	Label = "preservation_task"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTaskID holds the string denoting the task_id field in the database.
	FieldTaskID = "task_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldCompletedAt holds the string denoting the completed_at field in the database.
	FieldCompletedAt = "completed_at"
	// FieldNote holds the string denoting the note field in the database.
	FieldNote = "note"
	// FieldPreservationActionID holds the string denoting the preservation_action_id field in the database.
	FieldPreservationActionID = "preservation_action_id"
	// EdgeAction holds the string denoting the action edge name in mutations.
	EdgeAction = "action"
	// Table holds the table name of the preservationtask in the database.
	Table = "preservation_task"
	// ActionTable is the table that holds the action relation/edge.
	ActionTable = "preservation_task"
	// ActionInverseTable is the table name for the PreservationAction entity.
	// It exists in this package in order to avoid circular dependency with the "preservationaction" package.
	ActionInverseTable = "preservation_action"
	// ActionColumn is the table column denoting the action relation/edge.
	ActionColumn = "preservation_action_id"
)

Variables

Columns holds all SQL columns for preservationtask fields.

View Source
var (
	// PreservationActionIDValidator is a validator for the "preservation_action_id" field. It is called by the builders before save.
	PreservationActionIDValidator func(int) error
)

Functions

func And

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.PreservationTask

CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.PreservationTask

CompletedAtEQ applies the EQ predicate on the "completed_at" field.

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.PreservationTask

CompletedAtGT applies the GT predicate on the "completed_at" field.

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.PreservationTask

CompletedAtGTE applies the GTE predicate on the "completed_at" field.

func CompletedAtIn

func CompletedAtIn(vs ...time.Time) predicate.PreservationTask

CompletedAtIn applies the In predicate on the "completed_at" field.

func CompletedAtIsNil

func CompletedAtIsNil() predicate.PreservationTask

CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.PreservationTask

CompletedAtLT applies the LT predicate on the "completed_at" field.

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.PreservationTask

CompletedAtLTE applies the LTE predicate on the "completed_at" field.

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.PreservationTask

CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.

func CompletedAtNotIn

func CompletedAtNotIn(vs ...time.Time) predicate.PreservationTask

CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.

func CompletedAtNotNil

func CompletedAtNotNil() predicate.PreservationTask

CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.

func HasAction

func HasAction() predicate.PreservationTask

HasAction applies the HasEdge predicate on the "action" edge.

func HasActionWith

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.PreservationTask

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.PreservationTask

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.PreservationTask

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

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

func NameContains

func NameContains(v string) predicate.PreservationTask

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

func NameContainsFold

func NameContainsFold(v string) predicate.PreservationTask

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

func NameEQ

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

func NameEqualFold

func NameEqualFold(v string) predicate.PreservationTask

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

func NameGT

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

func NameGTE

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.PreservationTask

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.PreservationTask

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

func NameIn

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

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

func NameLT

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

func NameLTE

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

func NameNEQ

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Note

Note applies equality check predicate on the "note" field. It's identical to NoteEQ.

func NoteContains

func NoteContains(v string) predicate.PreservationTask

NoteContains applies the Contains predicate on the "note" field.

func NoteContainsFold

func NoteContainsFold(v string) predicate.PreservationTask

NoteContainsFold applies the ContainsFold predicate on the "note" field.

func NoteEQ

NoteEQ applies the EQ predicate on the "note" field.

func NoteEqualFold

func NoteEqualFold(v string) predicate.PreservationTask

NoteEqualFold applies the EqualFold predicate on the "note" field.

func NoteGT

NoteGT applies the GT predicate on the "note" field.

func NoteGTE

NoteGTE applies the GTE predicate on the "note" field.

func NoteHasPrefix

func NoteHasPrefix(v string) predicate.PreservationTask

NoteHasPrefix applies the HasPrefix predicate on the "note" field.

func NoteHasSuffix

func NoteHasSuffix(v string) predicate.PreservationTask

NoteHasSuffix applies the HasSuffix predicate on the "note" field.

func NoteIn

func NoteIn(vs ...string) predicate.PreservationTask

NoteIn applies the In predicate on the "note" field.

func NoteLT

NoteLT applies the LT predicate on the "note" field.

func NoteLTE

NoteLTE applies the LTE predicate on the "note" field.

func NoteNEQ

NoteNEQ applies the NEQ predicate on the "note" field.

func NoteNotIn

func NoteNotIn(vs ...string) predicate.PreservationTask

NoteNotIn applies the NotIn predicate on the "note" field.

func Or

Or groups predicates with the OR operator between them.

func PreservationActionID

func PreservationActionID(v int) predicate.PreservationTask

PreservationActionID applies equality check predicate on the "preservation_action_id" field. It's identical to PreservationActionIDEQ.

func PreservationActionIDEQ

func PreservationActionIDEQ(v int) predicate.PreservationTask

PreservationActionIDEQ applies the EQ predicate on the "preservation_action_id" field.

func PreservationActionIDIn

func PreservationActionIDIn(vs ...int) predicate.PreservationTask

PreservationActionIDIn applies the In predicate on the "preservation_action_id" field.

func PreservationActionIDNEQ

func PreservationActionIDNEQ(v int) predicate.PreservationTask

PreservationActionIDNEQ applies the NEQ predicate on the "preservation_action_id" field.

func PreservationActionIDNotIn

func PreservationActionIDNotIn(vs ...int) predicate.PreservationTask

PreservationActionIDNotIn applies the NotIn predicate on the "preservation_action_id" field.

func StartedAt

func StartedAt(v time.Time) predicate.PreservationTask

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.PreservationTask

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.PreservationTask

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.PreservationTask

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.PreservationTask

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtIsNil

func StartedAtIsNil() predicate.PreservationTask

StartedAtIsNil applies the IsNil predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.PreservationTask

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.PreservationTask

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.PreservationTask

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.PreservationTask

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

func StartedAtNotNil

func StartedAtNotNil() predicate.PreservationTask

StartedAtNotNil applies the NotNil predicate on the "started_at" field.

func Status

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v int8) predicate.PreservationTask

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v int8) predicate.PreservationTask

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v int8) predicate.PreservationTask

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...int8) predicate.PreservationTask

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v int8) predicate.PreservationTask

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v int8) predicate.PreservationTask

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v int8) predicate.PreservationTask

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...int8) predicate.PreservationTask

StatusNotIn applies the NotIn predicate on the "status" field.

func TaskID

TaskID applies equality check predicate on the "task_id" field. It's identical to TaskIDEQ.

func TaskIDEQ

func TaskIDEQ(v uuid.UUID) predicate.PreservationTask

TaskIDEQ applies the EQ predicate on the "task_id" field.

func TaskIDGT

func TaskIDGT(v uuid.UUID) predicate.PreservationTask

TaskIDGT applies the GT predicate on the "task_id" field.

func TaskIDGTE

func TaskIDGTE(v uuid.UUID) predicate.PreservationTask

TaskIDGTE applies the GTE predicate on the "task_id" field.

func TaskIDIn

func TaskIDIn(vs ...uuid.UUID) predicate.PreservationTask

TaskIDIn applies the In predicate on the "task_id" field.

func TaskIDLT

func TaskIDLT(v uuid.UUID) predicate.PreservationTask

TaskIDLT applies the LT predicate on the "task_id" field.

func TaskIDLTE

func TaskIDLTE(v uuid.UUID) predicate.PreservationTask

TaskIDLTE applies the LTE predicate on the "task_id" field.

func TaskIDNEQ

func TaskIDNEQ(v uuid.UUID) predicate.PreservationTask

TaskIDNEQ applies the NEQ predicate on the "task_id" field.

func TaskIDNotIn

func TaskIDNotIn(vs ...uuid.UUID) predicate.PreservationTask

TaskIDNotIn applies the NotIn predicate on the "task_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the PreservationTask queries.

func ByActionField

func ByActionField(field string, opts ...sql.OrderTermOption) OrderOption

ByActionField orders the results by action field.

func ByCompletedAt

func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption

ByCompletedAt orders the results by the completed_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByNote

func ByNote(opts ...sql.OrderTermOption) OrderOption

ByNote orders the results by the note field.

func ByPreservationActionID

func ByPreservationActionID(opts ...sql.OrderTermOption) OrderOption

ByPreservationActionID orders the results by the preservation_action_id field.

func ByStartedAt

func ByStartedAt(opts ...sql.OrderTermOption) OrderOption

ByStartedAt orders the results by the started_at field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTaskID

func ByTaskID(opts ...sql.OrderTermOption) OrderOption

ByTaskID orders the results by the task_id field.

Jump to

Keyboard shortcuts

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