Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TaskLog) predicate.TaskLog
- func FinishedAt(v time.Time) predicate.TaskLog
- func FinishedAtEQ(v time.Time) predicate.TaskLog
- func FinishedAtGT(v time.Time) predicate.TaskLog
- func FinishedAtGTE(v time.Time) predicate.TaskLog
- func FinishedAtIn(vs ...time.Time) predicate.TaskLog
- func FinishedAtLT(v time.Time) predicate.TaskLog
- func FinishedAtLTE(v time.Time) predicate.TaskLog
- func FinishedAtNEQ(v time.Time) predicate.TaskLog
- func FinishedAtNotIn(vs ...time.Time) predicate.TaskLog
- func HasTasks() predicate.TaskLog
- func HasTasksWith(preds ...predicate.Task) predicate.TaskLog
- func ID(id uint64) predicate.TaskLog
- func IDEQ(id uint64) predicate.TaskLog
- func IDGT(id uint64) predicate.TaskLog
- func IDGTE(id uint64) predicate.TaskLog
- func IDIn(ids ...uint64) predicate.TaskLog
- func IDLT(id uint64) predicate.TaskLog
- func IDLTE(id uint64) predicate.TaskLog
- func IDNEQ(id uint64) predicate.TaskLog
- func IDNotIn(ids ...uint64) predicate.TaskLog
- func Not(p predicate.TaskLog) predicate.TaskLog
- func Or(predicates ...predicate.TaskLog) predicate.TaskLog
- func Result(v uint8) predicate.TaskLog
- func ResultEQ(v uint8) predicate.TaskLog
- func ResultGT(v uint8) predicate.TaskLog
- func ResultGTE(v uint8) predicate.TaskLog
- func ResultIn(vs ...uint8) predicate.TaskLog
- func ResultLT(v uint8) predicate.TaskLog
- func ResultLTE(v uint8) predicate.TaskLog
- func ResultNEQ(v uint8) predicate.TaskLog
- func ResultNotIn(vs ...uint8) predicate.TaskLog
- func StartedAt(v time.Time) predicate.TaskLog
- func StartedAtEQ(v time.Time) predicate.TaskLog
- func StartedAtGT(v time.Time) predicate.TaskLog
- func StartedAtGTE(v time.Time) predicate.TaskLog
- func StartedAtIn(vs ...time.Time) predicate.TaskLog
- func StartedAtLT(v time.Time) predicate.TaskLog
- func StartedAtLTE(v time.Time) predicate.TaskLog
- func StartedAtNEQ(v time.Time) predicate.TaskLog
- func StartedAtNotIn(vs ...time.Time) predicate.TaskLog
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldStartedAt, FieldFinishedAt, FieldResult, }
Columns holds all SQL columns for tasklog fields.
var ( // DefaultStartedAt holds the default value on creation for the "started_at" field. DefaultStartedAt func() time.Time )
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 FinishedAt ¶
FinishedAt applies equality check predicate on the "finished_at" field. It's identical to FinishedAtEQ.
func FinishedAtEQ ¶
FinishedAtEQ applies the EQ predicate on the "finished_at" field.
func FinishedAtGT ¶
FinishedAtGT applies the GT predicate on the "finished_at" field.
func FinishedAtGTE ¶
FinishedAtGTE applies the GTE predicate on the "finished_at" field.
func FinishedAtIn ¶
FinishedAtIn applies the In predicate on the "finished_at" field.
func FinishedAtLT ¶
FinishedAtLT applies the LT predicate on the "finished_at" field.
func FinishedAtLTE ¶
FinishedAtLTE applies the LTE predicate on the "finished_at" field.
func FinishedAtNEQ ¶
FinishedAtNEQ applies the NEQ predicate on the "finished_at" field.
func FinishedAtNotIn ¶
FinishedAtNotIn applies the NotIn predicate on the "finished_at" field.
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func Result ¶
Result applies equality check predicate on the "result" field. It's identical to ResultEQ.
func ResultNotIn ¶
ResultNotIn applies the NotIn predicate on the "result" field.
func StartedAt ¶
StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.
func StartedAtEQ ¶
StartedAtEQ applies the EQ predicate on the "started_at" field.
func StartedAtGT ¶
StartedAtGT applies the GT predicate on the "started_at" field.
func StartedAtGTE ¶
StartedAtGTE applies the GTE predicate on the "started_at" field.
func StartedAtIn ¶
StartedAtIn applies the In predicate on the "started_at" field.
func StartedAtLT ¶
StartedAtLT applies the LT predicate on the "started_at" field.
func StartedAtLTE ¶
StartedAtLTE applies the LTE predicate on the "started_at" field.
func StartedAtNEQ ¶
StartedAtNEQ applies the NEQ predicate on the "started_at" field.
func StartedAtNotIn ¶
StartedAtNotIn applies the NotIn predicate on the "started_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶ added in v1.0.0
OrderOption defines the ordering options for the TaskLog queries.
func ByFinishedAt ¶ added in v1.0.0
func ByFinishedAt(opts ...sql.OrderTermOption) OrderOption
ByFinishedAt orders the results by the finished_at field.
func ByID ¶ added in v1.0.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByResult ¶ added in v1.0.0
func ByResult(opts ...sql.OrderTermOption) OrderOption
ByResult orders the results by the result field.
func ByStartedAt ¶ added in v1.0.0
func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
ByStartedAt orders the results by the started_at field.
func ByTasksField ¶ added in v1.0.0
func ByTasksField(field string, opts ...sql.OrderTermOption) OrderOption
ByTasksField orders the results by tasks field.