task

package
v0.0.0-...-481d40d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the task type in the database.
	Label = "task"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldSubType holds the string denoting the sub_type field in the database.
	FieldSubType = "sub_type"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldSummary holds the string denoting the summary field in the database.
	FieldSummary = "summary"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCompletedAt holds the string denoting the completed_at field in the database.
	FieldCompletedAt = "completed_at"
	// EdgeProjectTasks holds the string denoting the project_tasks edge name in mutations.
	EdgeProjectTasks = "project_tasks"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeVms holds the string denoting the vms edge name in mutations.
	EdgeVms = "vms"
	// EdgeGitBotTasks holds the string denoting the git_bot_tasks edge name in mutations.
	EdgeGitBotTasks = "git_bot_tasks"
	// EdgeTaskVms holds the string denoting the task_vms edge name in mutations.
	EdgeTaskVms = "task_vms"
	// Table holds the table name of the task in the database.
	Table = "tasks"
	// ProjectTasksTable is the table that holds the project_tasks relation/edge.
	ProjectTasksTable = "project_tasks"
	// ProjectTasksInverseTable is the table name for the ProjectTask entity.
	// It exists in this package in order to avoid circular dependency with the "projecttask" package.
	ProjectTasksInverseTable = "project_tasks"
	// ProjectTasksColumn is the table column denoting the project_tasks relation/edge.
	ProjectTasksColumn = "task_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "tasks"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// VmsTable is the table that holds the vms relation/edge. The primary key declared below.
	VmsTable = "task_virtualmachines"
	// VmsInverseTable is the table name for the VirtualMachine entity.
	// It exists in this package in order to avoid circular dependency with the "virtualmachine" package.
	VmsInverseTable = "virtualmachines"
	// GitBotTasksTable is the table that holds the git_bot_tasks relation/edge.
	GitBotTasksTable = "git_bot_tasks"
	// GitBotTasksInverseTable is the table name for the GitBotTask entity.
	// It exists in this package in order to avoid circular dependency with the "gitbottask" package.
	GitBotTasksInverseTable = "git_bot_tasks"
	// GitBotTasksColumn is the table column denoting the git_bot_tasks relation/edge.
	GitBotTasksColumn = "task_id"
	// TaskVmsTable is the table that holds the task_vms relation/edge.
	TaskVmsTable = "task_virtualmachines"
	// TaskVmsInverseTable is the table name for the TaskVirtualMachine entity.
	// It exists in this package in order to avoid circular dependency with the "taskvirtualmachine" package.
	TaskVmsInverseTable = "task_virtualmachines"
	// TaskVmsColumn is the table column denoting the task_vms relation/edge.
	TaskVmsColumn = "task_id"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// ContentValidator is a validator for the "content" field. It is called by the builders before save.
	ContentValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/chaitin/MonkeyCode/backend/db/runtime"

Columns holds all SQL columns for task fields.

View Source
var (
	// VmsPrimaryKey and VmsColumn2 are the table columns denoting the
	// primary key for the vms relation (M2M).
	VmsPrimaryKey = []string{"virtualmachine_id", "task_id"}
)

Functions

func And

func And(predicates ...predicate.Task) predicate.Task

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.Task

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

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.Task

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

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.Task

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

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.Task

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

func CompletedAtIn

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

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

func CompletedAtIsNil

func CompletedAtIsNil() predicate.Task

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

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.Task

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

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.Task

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

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.Task

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

func CompletedAtNotIn

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

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

func CompletedAtNotNil

func CompletedAtNotNil() predicate.Task

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

func Content

func Content(v string) predicate.Task

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Task

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Task

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Task

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Task

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Task

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Task

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Task

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Task

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Task

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Task

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Task

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Task

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Task

ContentNotIn applies the NotIn predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Task

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Task

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Task

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Task

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Task

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Task

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Task

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Task

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Task

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Task

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Task

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Task

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Task

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Task

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Task

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Task

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Task

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Task

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Task

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Task

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasGitBotTasks

func HasGitBotTasks() predicate.Task

HasGitBotTasks applies the HasEdge predicate on the "git_bot_tasks" edge.

func HasGitBotTasksWith

func HasGitBotTasksWith(preds ...predicate.GitBotTask) predicate.Task

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

func HasProjectTasks

func HasProjectTasks() predicate.Task

HasProjectTasks applies the HasEdge predicate on the "project_tasks" edge.

func HasProjectTasksWith

func HasProjectTasksWith(preds ...predicate.ProjectTask) predicate.Task

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

func HasTaskVms

func HasTaskVms() predicate.Task

HasTaskVms applies the HasEdge predicate on the "task_vms" edge.

func HasTaskVmsWith

func HasTaskVmsWith(preds ...predicate.TaskVirtualMachine) predicate.Task

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

func HasUser

func HasUser() predicate.Task

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Task

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

func HasVms

func HasVms() predicate.Task

HasVms applies the HasEdge predicate on the "vms" edge.

func HasVmsWith

func HasVmsWith(preds ...predicate.VirtualMachine) predicate.Task

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

func ID

func ID(id uuid.UUID) predicate.Task

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Task

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Task

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Task

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Task

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Task

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Task

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Task

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Task

IDNotIn applies the NotIn predicate on the ID field.

func Kind

func Kind(v consts.TaskType) predicate.Task

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v consts.TaskType) predicate.Task

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v consts.TaskType) predicate.Task

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v consts.TaskType) predicate.Task

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v consts.TaskType) predicate.Task

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v consts.TaskType) predicate.Task

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v consts.TaskType) predicate.Task

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v consts.TaskType) predicate.Task

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v consts.TaskType) predicate.Task

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

func KindIn(vs ...consts.TaskType) predicate.Task

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v consts.TaskType) predicate.Task

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v consts.TaskType) predicate.Task

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v consts.TaskType) predicate.Task

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...consts.TaskType) predicate.Task

KindNotIn applies the NotIn predicate on the "kind" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Task) predicate.Task

Or groups predicates with the OR operator between them.

func Status

func Status(v consts.TaskStatus) predicate.Task

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

func StatusContains

func StatusContains(v consts.TaskStatus) predicate.Task

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v consts.TaskStatus) predicate.Task

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v consts.TaskStatus) predicate.Task

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

func StatusEqualFold

func StatusEqualFold(v consts.TaskStatus) predicate.Task

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v consts.TaskStatus) predicate.Task

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

func StatusGTE

func StatusGTE(v consts.TaskStatus) predicate.Task

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

func StatusHasPrefix

func StatusHasPrefix(v consts.TaskStatus) predicate.Task

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v consts.TaskStatus) predicate.Task

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...consts.TaskStatus) predicate.Task

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

func StatusLT

func StatusLT(v consts.TaskStatus) predicate.Task

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

func StatusLTE

func StatusLTE(v consts.TaskStatus) predicate.Task

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

func StatusNEQ

func StatusNEQ(v consts.TaskStatus) predicate.Task

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

func StatusNotIn

func StatusNotIn(vs ...consts.TaskStatus) predicate.Task

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

func SubType

func SubType(v consts.TaskSubType) predicate.Task

SubType applies equality check predicate on the "sub_type" field. It's identical to SubTypeEQ.

func SubTypeContains

func SubTypeContains(v consts.TaskSubType) predicate.Task

SubTypeContains applies the Contains predicate on the "sub_type" field.

func SubTypeContainsFold

func SubTypeContainsFold(v consts.TaskSubType) predicate.Task

SubTypeContainsFold applies the ContainsFold predicate on the "sub_type" field.

func SubTypeEQ

func SubTypeEQ(v consts.TaskSubType) predicate.Task

SubTypeEQ applies the EQ predicate on the "sub_type" field.

func SubTypeEqualFold

func SubTypeEqualFold(v consts.TaskSubType) predicate.Task

SubTypeEqualFold applies the EqualFold predicate on the "sub_type" field.

func SubTypeGT

func SubTypeGT(v consts.TaskSubType) predicate.Task

SubTypeGT applies the GT predicate on the "sub_type" field.

func SubTypeGTE

func SubTypeGTE(v consts.TaskSubType) predicate.Task

SubTypeGTE applies the GTE predicate on the "sub_type" field.

func SubTypeHasPrefix

func SubTypeHasPrefix(v consts.TaskSubType) predicate.Task

SubTypeHasPrefix applies the HasPrefix predicate on the "sub_type" field.

func SubTypeHasSuffix

func SubTypeHasSuffix(v consts.TaskSubType) predicate.Task

SubTypeHasSuffix applies the HasSuffix predicate on the "sub_type" field.

func SubTypeIn

func SubTypeIn(vs ...consts.TaskSubType) predicate.Task

SubTypeIn applies the In predicate on the "sub_type" field.

func SubTypeIsNil

func SubTypeIsNil() predicate.Task

SubTypeIsNil applies the IsNil predicate on the "sub_type" field.

func SubTypeLT

func SubTypeLT(v consts.TaskSubType) predicate.Task

SubTypeLT applies the LT predicate on the "sub_type" field.

func SubTypeLTE

func SubTypeLTE(v consts.TaskSubType) predicate.Task

SubTypeLTE applies the LTE predicate on the "sub_type" field.

func SubTypeNEQ

func SubTypeNEQ(v consts.TaskSubType) predicate.Task

SubTypeNEQ applies the NEQ predicate on the "sub_type" field.

func SubTypeNotIn

func SubTypeNotIn(vs ...consts.TaskSubType) predicate.Task

SubTypeNotIn applies the NotIn predicate on the "sub_type" field.

func SubTypeNotNil

func SubTypeNotNil() predicate.Task

SubTypeNotNil applies the NotNil predicate on the "sub_type" field.

func Summary

func Summary(v string) predicate.Task

Summary applies equality check predicate on the "summary" field. It's identical to SummaryEQ.

func SummaryContains

func SummaryContains(v string) predicate.Task

SummaryContains applies the Contains predicate on the "summary" field.

func SummaryContainsFold

func SummaryContainsFold(v string) predicate.Task

SummaryContainsFold applies the ContainsFold predicate on the "summary" field.

func SummaryEQ

func SummaryEQ(v string) predicate.Task

SummaryEQ applies the EQ predicate on the "summary" field.

func SummaryEqualFold

func SummaryEqualFold(v string) predicate.Task

SummaryEqualFold applies the EqualFold predicate on the "summary" field.

func SummaryGT

func SummaryGT(v string) predicate.Task

SummaryGT applies the GT predicate on the "summary" field.

func SummaryGTE

func SummaryGTE(v string) predicate.Task

SummaryGTE applies the GTE predicate on the "summary" field.

func SummaryHasPrefix

func SummaryHasPrefix(v string) predicate.Task

SummaryHasPrefix applies the HasPrefix predicate on the "summary" field.

func SummaryHasSuffix

func SummaryHasSuffix(v string) predicate.Task

SummaryHasSuffix applies the HasSuffix predicate on the "summary" field.

func SummaryIn

func SummaryIn(vs ...string) predicate.Task

SummaryIn applies the In predicate on the "summary" field.

func SummaryIsNil

func SummaryIsNil() predicate.Task

SummaryIsNil applies the IsNil predicate on the "summary" field.

func SummaryLT

func SummaryLT(v string) predicate.Task

SummaryLT applies the LT predicate on the "summary" field.

func SummaryLTE

func SummaryLTE(v string) predicate.Task

SummaryLTE applies the LTE predicate on the "summary" field.

func SummaryNEQ

func SummaryNEQ(v string) predicate.Task

SummaryNEQ applies the NEQ predicate on the "summary" field.

func SummaryNotIn

func SummaryNotIn(vs ...string) predicate.Task

SummaryNotIn applies the NotIn predicate on the "summary" field.

func SummaryNotNil

func SummaryNotNil() predicate.Task

SummaryNotNil applies the NotNil predicate on the "summary" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Task

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Task

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Task

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Task

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Task

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Task

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Task

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Task

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Task

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v uuid.UUID) predicate.Task

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.Task

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.Task

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.Task

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.Task

UserIDNotIn applies the NotIn predicate on the "user_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 Task queries.

func ByCompletedAt

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

ByCompletedAt orders the results by the completed_at field.

func ByContent

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

ByContent orders the results by the content field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByGitBotTasks

func ByGitBotTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGitBotTasks orders the results by git_bot_tasks terms.

func ByGitBotTasksCount

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

ByGitBotTasksCount orders the results by git_bot_tasks count.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByProjectTasks

func ByProjectTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByProjectTasks orders the results by project_tasks terms.

func ByProjectTasksCount

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

ByProjectTasksCount orders the results by project_tasks count.

func ByStatus

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

ByStatus orders the results by the status field.

func BySubType

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

BySubType orders the results by the sub_type field.

func BySummary

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

BySummary orders the results by the summary field.

func ByTaskVms

func ByTaskVms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTaskVms orders the results by task_vms terms.

func ByTaskVmsCount

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

ByTaskVmsCount orders the results by task_vms count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

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

ByUserField orders the results by user field.

func ByUserID

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

ByUserID orders the results by the user_id field.

func ByVms

func ByVms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByVms orders the results by vms terms.

func ByVmsCount

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

ByVmsCount orders the results by vms count.

Jump to

Keyboard shortcuts

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