tasklog

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tasklog type in the database.
	Label = "task_log"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldFinishedAt holds the string denoting the finished_at field in the database.
	FieldFinishedAt = "finished_at"
	// FieldResult holds the string denoting the result field in the database.
	FieldResult = "result"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// Table holds the table name of the tasklog in the database.
	Table = "sys_task_logs"
	// TasksTable is the table that holds the tasks relation/edge.
	TasksTable = "sys_task_logs"
	// 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 = "sys_tasks"
	// TasksColumn is the table column denoting the tasks relation/edge.
	TasksColumn = "task_task_logs"
)

Variables

Columns holds all SQL columns for tasklog fields.

View Source
var (
	// DefaultStartedAt holds the default value on creation for the "started_at" field.
	DefaultStartedAt func() time.Time
)
View Source
var ForeignKeys = []string{
	"task_task_logs",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "sys_task_logs" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.TaskLog) predicate.TaskLog

And groups predicates with the AND operator between them.

func FinishedAt

func FinishedAt(v time.Time) predicate.TaskLog

FinishedAt applies equality check predicate on the "finished_at" field. It's identical to FinishedAtEQ.

func FinishedAtEQ

func FinishedAtEQ(v time.Time) predicate.TaskLog

FinishedAtEQ applies the EQ predicate on the "finished_at" field.

func FinishedAtGT

func FinishedAtGT(v time.Time) predicate.TaskLog

FinishedAtGT applies the GT predicate on the "finished_at" field.

func FinishedAtGTE

func FinishedAtGTE(v time.Time) predicate.TaskLog

FinishedAtGTE applies the GTE predicate on the "finished_at" field.

func FinishedAtIn

func FinishedAtIn(vs ...time.Time) predicate.TaskLog

FinishedAtIn applies the In predicate on the "finished_at" field.

func FinishedAtLT

func FinishedAtLT(v time.Time) predicate.TaskLog

FinishedAtLT applies the LT predicate on the "finished_at" field.

func FinishedAtLTE

func FinishedAtLTE(v time.Time) predicate.TaskLog

FinishedAtLTE applies the LTE predicate on the "finished_at" field.

func FinishedAtNEQ

func FinishedAtNEQ(v time.Time) predicate.TaskLog

FinishedAtNEQ applies the NEQ predicate on the "finished_at" field.

func FinishedAtNotIn

func FinishedAtNotIn(vs ...time.Time) predicate.TaskLog

FinishedAtNotIn applies the NotIn predicate on the "finished_at" field.

func HasTasks

func HasTasks() predicate.TaskLog

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

func HasTasksWith

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

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

func ID

func ID(id uint64) predicate.TaskLog

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.TaskLog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.TaskLog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.TaskLog

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.TaskLog

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.TaskLog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.TaskLog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.TaskLog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.TaskLog

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.TaskLog) predicate.TaskLog

Or groups predicates with the OR operator between them.

func Result

func Result(v uint8) predicate.TaskLog

Result applies equality check predicate on the "result" field. It's identical to ResultEQ.

func ResultEQ

func ResultEQ(v uint8) predicate.TaskLog

ResultEQ applies the EQ predicate on the "result" field.

func ResultGT

func ResultGT(v uint8) predicate.TaskLog

ResultGT applies the GT predicate on the "result" field.

func ResultGTE

func ResultGTE(v uint8) predicate.TaskLog

ResultGTE applies the GTE predicate on the "result" field.

func ResultIn

func ResultIn(vs ...uint8) predicate.TaskLog

ResultIn applies the In predicate on the "result" field.

func ResultLT

func ResultLT(v uint8) predicate.TaskLog

ResultLT applies the LT predicate on the "result" field.

func ResultLTE

func ResultLTE(v uint8) predicate.TaskLog

ResultLTE applies the LTE predicate on the "result" field.

func ResultNEQ

func ResultNEQ(v uint8) predicate.TaskLog

ResultNEQ applies the NEQ predicate on the "result" field.

func ResultNotIn

func ResultNotIn(vs ...uint8) predicate.TaskLog

ResultNotIn applies the NotIn predicate on the "result" field.

func StartedAt

func StartedAt(v time.Time) predicate.TaskLog

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

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.TaskLog

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

func StartedAtGT

func StartedAtGT(v time.Time) predicate.TaskLog

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

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.TaskLog

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

func StartedAtIn

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

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

func StartedAtLT

func StartedAtLT(v time.Time) predicate.TaskLog

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

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.TaskLog

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

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.TaskLog

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

func StartedAtNotIn

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

StartedAtNotIn applies the NotIn predicate on the "started_at" 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 TaskLog queries.

func ByFinishedAt

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

ByFinishedAt orders the results by the finished_at field.

func ByID

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

ByID orders the results by the id field.

func ByResult

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

ByResult orders the results by the result field.

func ByStartedAt

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

ByStartedAt orders the results by the started_at field.

func ByTasksField

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

ByTasksField orders the results by tasks field.

Jump to

Keyboard shortcuts

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