Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PreservationTask) predicate.PreservationTask
- func CompletedAt(v time.Time) predicate.PreservationTask
- func CompletedAtEQ(v time.Time) predicate.PreservationTask
- func CompletedAtGT(v time.Time) predicate.PreservationTask
- func CompletedAtGTE(v time.Time) predicate.PreservationTask
- func CompletedAtIn(vs ...time.Time) predicate.PreservationTask
- func CompletedAtIsNil() predicate.PreservationTask
- func CompletedAtLT(v time.Time) predicate.PreservationTask
- func CompletedAtLTE(v time.Time) predicate.PreservationTask
- func CompletedAtNEQ(v time.Time) predicate.PreservationTask
- func CompletedAtNotIn(vs ...time.Time) predicate.PreservationTask
- func CompletedAtNotNil() predicate.PreservationTask
- func HasAction() predicate.PreservationTask
- func HasActionWith(preds ...predicate.PreservationAction) predicate.PreservationTask
- func ID(id int) predicate.PreservationTask
- func IDEQ(id int) predicate.PreservationTask
- func IDGT(id int) predicate.PreservationTask
- func IDGTE(id int) predicate.PreservationTask
- func IDIn(ids ...int) predicate.PreservationTask
- func IDLT(id int) predicate.PreservationTask
- func IDLTE(id int) predicate.PreservationTask
- func IDNEQ(id int) predicate.PreservationTask
- func IDNotIn(ids ...int) predicate.PreservationTask
- func Name(v string) predicate.PreservationTask
- func NameContains(v string) predicate.PreservationTask
- func NameContainsFold(v string) predicate.PreservationTask
- func NameEQ(v string) predicate.PreservationTask
- func NameEqualFold(v string) predicate.PreservationTask
- func NameGT(v string) predicate.PreservationTask
- func NameGTE(v string) predicate.PreservationTask
- func NameHasPrefix(v string) predicate.PreservationTask
- func NameHasSuffix(v string) predicate.PreservationTask
- func NameIn(vs ...string) predicate.PreservationTask
- func NameLT(v string) predicate.PreservationTask
- func NameLTE(v string) predicate.PreservationTask
- func NameNEQ(v string) predicate.PreservationTask
- func NameNotIn(vs ...string) predicate.PreservationTask
- func Not(p predicate.PreservationTask) predicate.PreservationTask
- func Note(v string) predicate.PreservationTask
- func NoteContains(v string) predicate.PreservationTask
- func NoteContainsFold(v string) predicate.PreservationTask
- func NoteEQ(v string) predicate.PreservationTask
- func NoteEqualFold(v string) predicate.PreservationTask
- func NoteGT(v string) predicate.PreservationTask
- func NoteGTE(v string) predicate.PreservationTask
- func NoteHasPrefix(v string) predicate.PreservationTask
- func NoteHasSuffix(v string) predicate.PreservationTask
- func NoteIn(vs ...string) predicate.PreservationTask
- func NoteLT(v string) predicate.PreservationTask
- func NoteLTE(v string) predicate.PreservationTask
- func NoteNEQ(v string) predicate.PreservationTask
- func NoteNotIn(vs ...string) predicate.PreservationTask
- func Or(predicates ...predicate.PreservationTask) predicate.PreservationTask
- func PreservationActionID(v int) predicate.PreservationTask
- func PreservationActionIDEQ(v int) predicate.PreservationTask
- func PreservationActionIDIn(vs ...int) predicate.PreservationTask
- func PreservationActionIDNEQ(v int) predicate.PreservationTask
- func PreservationActionIDNotIn(vs ...int) predicate.PreservationTask
- func StartedAt(v time.Time) predicate.PreservationTask
- func StartedAtEQ(v time.Time) predicate.PreservationTask
- func StartedAtGT(v time.Time) predicate.PreservationTask
- func StartedAtGTE(v time.Time) predicate.PreservationTask
- func StartedAtIn(vs ...time.Time) predicate.PreservationTask
- func StartedAtIsNil() predicate.PreservationTask
- func StartedAtLT(v time.Time) predicate.PreservationTask
- func StartedAtLTE(v time.Time) predicate.PreservationTask
- func StartedAtNEQ(v time.Time) predicate.PreservationTask
- func StartedAtNotIn(vs ...time.Time) predicate.PreservationTask
- func StartedAtNotNil() predicate.PreservationTask
- func Status(v int8) predicate.PreservationTask
- func StatusEQ(v int8) predicate.PreservationTask
- func StatusGT(v int8) predicate.PreservationTask
- func StatusGTE(v int8) predicate.PreservationTask
- func StatusIn(vs ...int8) predicate.PreservationTask
- func StatusLT(v int8) predicate.PreservationTask
- func StatusLTE(v int8) predicate.PreservationTask
- func StatusNEQ(v int8) predicate.PreservationTask
- func StatusNotIn(vs ...int8) predicate.PreservationTask
- func TaskID(v uuid.UUID) predicate.PreservationTask
- func TaskIDEQ(v uuid.UUID) predicate.PreservationTask
- func TaskIDGT(v uuid.UUID) predicate.PreservationTask
- func TaskIDGTE(v uuid.UUID) predicate.PreservationTask
- func TaskIDIn(vs ...uuid.UUID) predicate.PreservationTask
- func TaskIDLT(v uuid.UUID) predicate.PreservationTask
- func TaskIDLTE(v uuid.UUID) predicate.PreservationTask
- func TaskIDNEQ(v uuid.UUID) predicate.PreservationTask
- func TaskIDNotIn(vs ...uuid.UUID) predicate.PreservationTask
- func ValidColumn(column string) bool
- type OrderOption
- func ByActionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
- func ByPreservationActionID(opts ...sql.OrderTermOption) OrderOption
- func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTaskID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldTaskID, FieldName, FieldStatus, FieldStartedAt, FieldCompletedAt, FieldNote, FieldPreservationActionID, }
Columns holds all SQL columns for preservationtask fields.
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 ¶
func And(predicates ...predicate.PreservationTask) predicate.PreservationTask
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 ¶
func HasActionWith(preds ...predicate.PreservationAction) predicate.PreservationTask
HasActionWith applies the HasEdge predicate on the "action" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.PreservationTask
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.PreservationTask
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 ¶
func IDLT(id int) predicate.PreservationTask
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 ¶
func Name(v string) predicate.PreservationTask
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 ¶
func NameEQ(v string) predicate.PreservationTask
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 ¶
func NameGT(v string) predicate.PreservationTask
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.PreservationTask
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 ¶
func NameLT(v string) predicate.PreservationTask
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.PreservationTask
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.PreservationTask
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 ¶
func Not(p predicate.PreservationTask) predicate.PreservationTask
Not applies the not operator on the given predicate.
func Note ¶
func Note(v string) predicate.PreservationTask
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 ¶
func NoteEQ(v string) predicate.PreservationTask
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 ¶
func NoteGT(v string) predicate.PreservationTask
NoteGT applies the GT predicate on the "note" field.
func NoteGTE ¶
func NoteGTE(v string) predicate.PreservationTask
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 ¶
func NoteLT(v string) predicate.PreservationTask
NoteLT applies the LT predicate on the "note" field.
func NoteLTE ¶
func NoteLTE(v string) predicate.PreservationTask
NoteLTE applies the LTE predicate on the "note" field.
func NoteNEQ ¶
func NoteNEQ(v string) predicate.PreservationTask
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 ¶
func Or(predicates ...predicate.PreservationTask) predicate.PreservationTask
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 ¶
func Status(v int8) predicate.PreservationTask
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 ¶
func TaskID(v uuid.UUID) predicate.PreservationTask
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.