task

package
v0.0.0-...-c20d9b3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: AGPL-3.0 Imports: 6 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"
	// FieldTaskID holds the string denoting the task_id field in the database.
	FieldTaskID = "task_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldModelID holds the string denoting the model_id field in the database.
	FieldModelID = "model_id"
	// FieldRequestID holds the string denoting the request_id field in the database.
	FieldRequestID = "request_id"
	// FieldModelType holds the string denoting the model_type field in the database.
	FieldModelType = "model_type"
	// FieldIsAccept holds the string denoting the is_accept field in the database.
	FieldIsAccept = "is_accept"
	// FieldProgramLanguage holds the string denoting the program_language field in the database.
	FieldProgramLanguage = "program_language"
	// FieldWorkMode holds the string denoting the work_mode field in the database.
	FieldWorkMode = "work_mode"
	// FieldPrompt holds the string denoting the prompt field in the database.
	FieldPrompt = "prompt"
	// FieldCompletion holds the string denoting the completion field in the database.
	FieldCompletion = "completion"
	// FieldCodeLines holds the string denoting the code_lines field in the database.
	FieldCodeLines = "code_lines"
	// FieldInputTokens holds the string denoting the input_tokens field in the database.
	FieldInputTokens = "input_tokens"
	// FieldOutputTokens holds the string denoting the output_tokens field in the database.
	FieldOutputTokens = "output_tokens"
	// FieldIsSuggested holds the string denoting the is_suggested field in the database.
	FieldIsSuggested = "is_suggested"
	// FieldSourceCode holds the string denoting the source_code field in the database.
	FieldSourceCode = "source_code"
	// FieldCursorPosition holds the string denoting the cursor_position field in the database.
	FieldCursorPosition = "cursor_position"
	// FieldUserInput holds the string denoting the user_input field in the database.
	FieldUserInput = "user_input"
	// 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"
	// EdgeTaskRecords holds the string denoting the task_records edge name in mutations.
	EdgeTaskRecords = "task_records"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeModel holds the string denoting the model edge name in mutations.
	EdgeModel = "model"
	// Table holds the table name of the task in the database.
	Table = "tasks"
	// TaskRecordsTable is the table that holds the task_records relation/edge.
	TaskRecordsTable = "task_records"
	// TaskRecordsInverseTable is the table name for the TaskRecord entity.
	// It exists in this package in order to avoid circular dependency with the "taskrecord" package.
	TaskRecordsInverseTable = "task_records"
	// TaskRecordsColumn is the table column denoting the task_records relation/edge.
	TaskRecordsColumn = "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"
	// ModelTable is the table that holds the model relation/edge.
	ModelTable = "tasks"
	// ModelInverseTable is the table name for the Model entity.
	// It exists in this package in order to avoid circular dependency with the "model" package.
	ModelInverseTable = "models"
	// ModelColumn is the table column denoting the model relation/edge.
	ModelColumn = "model_id"
)

Variables

View Source
var (
	// DefaultIsAccept holds the default value on creation for the "is_accept" field.
	DefaultIsAccept bool
	// DefaultIsSuggested holds the default value on creation for the "is_suggested" field.
	DefaultIsSuggested bool
	// 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
)

Columns holds all SQL columns for task fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func CodeLines

func CodeLines(v int64) predicate.Task

CodeLines applies equality check predicate on the "code_lines" field. It's identical to CodeLinesEQ.

func CodeLinesEQ

func CodeLinesEQ(v int64) predicate.Task

CodeLinesEQ applies the EQ predicate on the "code_lines" field.

func CodeLinesGT

func CodeLinesGT(v int64) predicate.Task

CodeLinesGT applies the GT predicate on the "code_lines" field.

func CodeLinesGTE

func CodeLinesGTE(v int64) predicate.Task

CodeLinesGTE applies the GTE predicate on the "code_lines" field.

func CodeLinesIn

func CodeLinesIn(vs ...int64) predicate.Task

CodeLinesIn applies the In predicate on the "code_lines" field.

func CodeLinesIsNil

func CodeLinesIsNil() predicate.Task

CodeLinesIsNil applies the IsNil predicate on the "code_lines" field.

func CodeLinesLT

func CodeLinesLT(v int64) predicate.Task

CodeLinesLT applies the LT predicate on the "code_lines" field.

func CodeLinesLTE

func CodeLinesLTE(v int64) predicate.Task

CodeLinesLTE applies the LTE predicate on the "code_lines" field.

func CodeLinesNEQ

func CodeLinesNEQ(v int64) predicate.Task

CodeLinesNEQ applies the NEQ predicate on the "code_lines" field.

func CodeLinesNotIn

func CodeLinesNotIn(vs ...int64) predicate.Task

CodeLinesNotIn applies the NotIn predicate on the "code_lines" field.

func CodeLinesNotNil

func CodeLinesNotNil() predicate.Task

CodeLinesNotNil applies the NotNil predicate on the "code_lines" field.

func Completion

func Completion(v string) predicate.Task

Completion applies equality check predicate on the "completion" field. It's identical to CompletionEQ.

func CompletionContains

func CompletionContains(v string) predicate.Task

CompletionContains applies the Contains predicate on the "completion" field.

func CompletionContainsFold

func CompletionContainsFold(v string) predicate.Task

CompletionContainsFold applies the ContainsFold predicate on the "completion" field.

func CompletionEQ

func CompletionEQ(v string) predicate.Task

CompletionEQ applies the EQ predicate on the "completion" field.

func CompletionEqualFold

func CompletionEqualFold(v string) predicate.Task

CompletionEqualFold applies the EqualFold predicate on the "completion" field.

func CompletionGT

func CompletionGT(v string) predicate.Task

CompletionGT applies the GT predicate on the "completion" field.

func CompletionGTE

func CompletionGTE(v string) predicate.Task

CompletionGTE applies the GTE predicate on the "completion" field.

func CompletionHasPrefix

func CompletionHasPrefix(v string) predicate.Task

CompletionHasPrefix applies the HasPrefix predicate on the "completion" field.

func CompletionHasSuffix

func CompletionHasSuffix(v string) predicate.Task

CompletionHasSuffix applies the HasSuffix predicate on the "completion" field.

func CompletionIn

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

CompletionIn applies the In predicate on the "completion" field.

func CompletionIsNil

func CompletionIsNil() predicate.Task

CompletionIsNil applies the IsNil predicate on the "completion" field.

func CompletionLT

func CompletionLT(v string) predicate.Task

CompletionLT applies the LT predicate on the "completion" field.

func CompletionLTE

func CompletionLTE(v string) predicate.Task

CompletionLTE applies the LTE predicate on the "completion" field.

func CompletionNEQ

func CompletionNEQ(v string) predicate.Task

CompletionNEQ applies the NEQ predicate on the "completion" field.

func CompletionNotIn

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

CompletionNotIn applies the NotIn predicate on the "completion" field.

func CompletionNotNil

func CompletionNotNil() predicate.Task

CompletionNotNil applies the NotNil predicate on the "completion" 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 CursorPositionIsNil

func CursorPositionIsNil() predicate.Task

CursorPositionIsNil applies the IsNil predicate on the "cursor_position" field.

func CursorPositionNotNil

func CursorPositionNotNil() predicate.Task

CursorPositionNotNil applies the NotNil predicate on the "cursor_position" field.

func HasModel

func HasModel() predicate.Task

HasModel applies the HasEdge predicate on the "model" edge.

func HasModelWith

func HasModelWith(preds ...predicate.Model) predicate.Task

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

func HasTaskRecords

func HasTaskRecords() predicate.Task

HasTaskRecords applies the HasEdge predicate on the "task_records" edge.

func HasTaskRecordsWith

func HasTaskRecordsWith(preds ...predicate.TaskRecord) predicate.Task

HasTaskRecordsWith applies the HasEdge predicate on the "task_records" 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 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 InputTokens

func InputTokens(v int64) predicate.Task

InputTokens applies equality check predicate on the "input_tokens" field. It's identical to InputTokensEQ.

func InputTokensEQ

func InputTokensEQ(v int64) predicate.Task

InputTokensEQ applies the EQ predicate on the "input_tokens" field.

func InputTokensGT

func InputTokensGT(v int64) predicate.Task

InputTokensGT applies the GT predicate on the "input_tokens" field.

func InputTokensGTE

func InputTokensGTE(v int64) predicate.Task

InputTokensGTE applies the GTE predicate on the "input_tokens" field.

func InputTokensIn

func InputTokensIn(vs ...int64) predicate.Task

InputTokensIn applies the In predicate on the "input_tokens" field.

func InputTokensIsNil

func InputTokensIsNil() predicate.Task

InputTokensIsNil applies the IsNil predicate on the "input_tokens" field.

func InputTokensLT

func InputTokensLT(v int64) predicate.Task

InputTokensLT applies the LT predicate on the "input_tokens" field.

func InputTokensLTE

func InputTokensLTE(v int64) predicate.Task

InputTokensLTE applies the LTE predicate on the "input_tokens" field.

func InputTokensNEQ

func InputTokensNEQ(v int64) predicate.Task

InputTokensNEQ applies the NEQ predicate on the "input_tokens" field.

func InputTokensNotIn

func InputTokensNotIn(vs ...int64) predicate.Task

InputTokensNotIn applies the NotIn predicate on the "input_tokens" field.

func InputTokensNotNil

func InputTokensNotNil() predicate.Task

InputTokensNotNil applies the NotNil predicate on the "input_tokens" field.

func IsAccept

func IsAccept(v bool) predicate.Task

IsAccept applies equality check predicate on the "is_accept" field. It's identical to IsAcceptEQ.

func IsAcceptEQ

func IsAcceptEQ(v bool) predicate.Task

IsAcceptEQ applies the EQ predicate on the "is_accept" field.

func IsAcceptNEQ

func IsAcceptNEQ(v bool) predicate.Task

IsAcceptNEQ applies the NEQ predicate on the "is_accept" field.

func IsSuggested

func IsSuggested(v bool) predicate.Task

IsSuggested applies equality check predicate on the "is_suggested" field. It's identical to IsSuggestedEQ.

func IsSuggestedEQ

func IsSuggestedEQ(v bool) predicate.Task

IsSuggestedEQ applies the EQ predicate on the "is_suggested" field.

func IsSuggestedNEQ

func IsSuggestedNEQ(v bool) predicate.Task

IsSuggestedNEQ applies the NEQ predicate on the "is_suggested" field.

func ModelID

func ModelID(v uuid.UUID) predicate.Task

ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.

func ModelIDEQ

func ModelIDEQ(v uuid.UUID) predicate.Task

ModelIDEQ applies the EQ predicate on the "model_id" field.

func ModelIDIn

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

ModelIDIn applies the In predicate on the "model_id" field.

func ModelIDIsNil

func ModelIDIsNil() predicate.Task

ModelIDIsNil applies the IsNil predicate on the "model_id" field.

func ModelIDNEQ

func ModelIDNEQ(v uuid.UUID) predicate.Task

ModelIDNEQ applies the NEQ predicate on the "model_id" field.

func ModelIDNotIn

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

ModelIDNotIn applies the NotIn predicate on the "model_id" field.

func ModelIDNotNil

func ModelIDNotNil() predicate.Task

ModelIDNotNil applies the NotNil predicate on the "model_id" field.

func ModelType

func ModelType(v consts.ModelType) predicate.Task

ModelType applies equality check predicate on the "model_type" field. It's identical to ModelTypeEQ.

func ModelTypeContains

func ModelTypeContains(v consts.ModelType) predicate.Task

ModelTypeContains applies the Contains predicate on the "model_type" field.

func ModelTypeContainsFold

func ModelTypeContainsFold(v consts.ModelType) predicate.Task

ModelTypeContainsFold applies the ContainsFold predicate on the "model_type" field.

func ModelTypeEQ

func ModelTypeEQ(v consts.ModelType) predicate.Task

ModelTypeEQ applies the EQ predicate on the "model_type" field.

func ModelTypeEqualFold

func ModelTypeEqualFold(v consts.ModelType) predicate.Task

ModelTypeEqualFold applies the EqualFold predicate on the "model_type" field.

func ModelTypeGT

func ModelTypeGT(v consts.ModelType) predicate.Task

ModelTypeGT applies the GT predicate on the "model_type" field.

func ModelTypeGTE

func ModelTypeGTE(v consts.ModelType) predicate.Task

ModelTypeGTE applies the GTE predicate on the "model_type" field.

func ModelTypeHasPrefix

func ModelTypeHasPrefix(v consts.ModelType) predicate.Task

ModelTypeHasPrefix applies the HasPrefix predicate on the "model_type" field.

func ModelTypeHasSuffix

func ModelTypeHasSuffix(v consts.ModelType) predicate.Task

ModelTypeHasSuffix applies the HasSuffix predicate on the "model_type" field.

func ModelTypeIn

func ModelTypeIn(vs ...consts.ModelType) predicate.Task

ModelTypeIn applies the In predicate on the "model_type" field.

func ModelTypeLT

func ModelTypeLT(v consts.ModelType) predicate.Task

ModelTypeLT applies the LT predicate on the "model_type" field.

func ModelTypeLTE

func ModelTypeLTE(v consts.ModelType) predicate.Task

ModelTypeLTE applies the LTE predicate on the "model_type" field.

func ModelTypeNEQ

func ModelTypeNEQ(v consts.ModelType) predicate.Task

ModelTypeNEQ applies the NEQ predicate on the "model_type" field.

func ModelTypeNotIn

func ModelTypeNotIn(vs ...consts.ModelType) predicate.Task

ModelTypeNotIn applies the NotIn predicate on the "model_type" 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 OutputTokens

func OutputTokens(v int64) predicate.Task

OutputTokens applies equality check predicate on the "output_tokens" field. It's identical to OutputTokensEQ.

func OutputTokensEQ

func OutputTokensEQ(v int64) predicate.Task

OutputTokensEQ applies the EQ predicate on the "output_tokens" field.

func OutputTokensGT

func OutputTokensGT(v int64) predicate.Task

OutputTokensGT applies the GT predicate on the "output_tokens" field.

func OutputTokensGTE

func OutputTokensGTE(v int64) predicate.Task

OutputTokensGTE applies the GTE predicate on the "output_tokens" field.

func OutputTokensIn

func OutputTokensIn(vs ...int64) predicate.Task

OutputTokensIn applies the In predicate on the "output_tokens" field.

func OutputTokensIsNil

func OutputTokensIsNil() predicate.Task

OutputTokensIsNil applies the IsNil predicate on the "output_tokens" field.

func OutputTokensLT

func OutputTokensLT(v int64) predicate.Task

OutputTokensLT applies the LT predicate on the "output_tokens" field.

func OutputTokensLTE

func OutputTokensLTE(v int64) predicate.Task

OutputTokensLTE applies the LTE predicate on the "output_tokens" field.

func OutputTokensNEQ

func OutputTokensNEQ(v int64) predicate.Task

OutputTokensNEQ applies the NEQ predicate on the "output_tokens" field.

func OutputTokensNotIn

func OutputTokensNotIn(vs ...int64) predicate.Task

OutputTokensNotIn applies the NotIn predicate on the "output_tokens" field.

func OutputTokensNotNil

func OutputTokensNotNil() predicate.Task

OutputTokensNotNil applies the NotNil predicate on the "output_tokens" field.

func ProgramLanguage

func ProgramLanguage(v string) predicate.Task

ProgramLanguage applies equality check predicate on the "program_language" field. It's identical to ProgramLanguageEQ.

func ProgramLanguageContains

func ProgramLanguageContains(v string) predicate.Task

ProgramLanguageContains applies the Contains predicate on the "program_language" field.

func ProgramLanguageContainsFold

func ProgramLanguageContainsFold(v string) predicate.Task

ProgramLanguageContainsFold applies the ContainsFold predicate on the "program_language" field.

func ProgramLanguageEQ

func ProgramLanguageEQ(v string) predicate.Task

ProgramLanguageEQ applies the EQ predicate on the "program_language" field.

func ProgramLanguageEqualFold

func ProgramLanguageEqualFold(v string) predicate.Task

ProgramLanguageEqualFold applies the EqualFold predicate on the "program_language" field.

func ProgramLanguageGT

func ProgramLanguageGT(v string) predicate.Task

ProgramLanguageGT applies the GT predicate on the "program_language" field.

func ProgramLanguageGTE

func ProgramLanguageGTE(v string) predicate.Task

ProgramLanguageGTE applies the GTE predicate on the "program_language" field.

func ProgramLanguageHasPrefix

func ProgramLanguageHasPrefix(v string) predicate.Task

ProgramLanguageHasPrefix applies the HasPrefix predicate on the "program_language" field.

func ProgramLanguageHasSuffix

func ProgramLanguageHasSuffix(v string) predicate.Task

ProgramLanguageHasSuffix applies the HasSuffix predicate on the "program_language" field.

func ProgramLanguageIn

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

ProgramLanguageIn applies the In predicate on the "program_language" field.

func ProgramLanguageIsNil

func ProgramLanguageIsNil() predicate.Task

ProgramLanguageIsNil applies the IsNil predicate on the "program_language" field.

func ProgramLanguageLT

func ProgramLanguageLT(v string) predicate.Task

ProgramLanguageLT applies the LT predicate on the "program_language" field.

func ProgramLanguageLTE

func ProgramLanguageLTE(v string) predicate.Task

ProgramLanguageLTE applies the LTE predicate on the "program_language" field.

func ProgramLanguageNEQ

func ProgramLanguageNEQ(v string) predicate.Task

ProgramLanguageNEQ applies the NEQ predicate on the "program_language" field.

func ProgramLanguageNotIn

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

ProgramLanguageNotIn applies the NotIn predicate on the "program_language" field.

func ProgramLanguageNotNil

func ProgramLanguageNotNil() predicate.Task

ProgramLanguageNotNil applies the NotNil predicate on the "program_language" field.

func Prompt

func Prompt(v string) predicate.Task

Prompt applies equality check predicate on the "prompt" field. It's identical to PromptEQ.

func PromptContains

func PromptContains(v string) predicate.Task

PromptContains applies the Contains predicate on the "prompt" field.

func PromptContainsFold

func PromptContainsFold(v string) predicate.Task

PromptContainsFold applies the ContainsFold predicate on the "prompt" field.

func PromptEQ

func PromptEQ(v string) predicate.Task

PromptEQ applies the EQ predicate on the "prompt" field.

func PromptEqualFold

func PromptEqualFold(v string) predicate.Task

PromptEqualFold applies the EqualFold predicate on the "prompt" field.

func PromptGT

func PromptGT(v string) predicate.Task

PromptGT applies the GT predicate on the "prompt" field.

func PromptGTE

func PromptGTE(v string) predicate.Task

PromptGTE applies the GTE predicate on the "prompt" field.

func PromptHasPrefix

func PromptHasPrefix(v string) predicate.Task

PromptHasPrefix applies the HasPrefix predicate on the "prompt" field.

func PromptHasSuffix

func PromptHasSuffix(v string) predicate.Task

PromptHasSuffix applies the HasSuffix predicate on the "prompt" field.

func PromptIn

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

PromptIn applies the In predicate on the "prompt" field.

func PromptIsNil

func PromptIsNil() predicate.Task

PromptIsNil applies the IsNil predicate on the "prompt" field.

func PromptLT

func PromptLT(v string) predicate.Task

PromptLT applies the LT predicate on the "prompt" field.

func PromptLTE

func PromptLTE(v string) predicate.Task

PromptLTE applies the LTE predicate on the "prompt" field.

func PromptNEQ

func PromptNEQ(v string) predicate.Task

PromptNEQ applies the NEQ predicate on the "prompt" field.

func PromptNotIn

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

PromptNotIn applies the NotIn predicate on the "prompt" field.

func PromptNotNil

func PromptNotNil() predicate.Task

PromptNotNil applies the NotNil predicate on the "prompt" field.

func RequestID

func RequestID(v string) predicate.Task

RequestID applies equality check predicate on the "request_id" field. It's identical to RequestIDEQ.

func RequestIDContains

func RequestIDContains(v string) predicate.Task

RequestIDContains applies the Contains predicate on the "request_id" field.

func RequestIDContainsFold

func RequestIDContainsFold(v string) predicate.Task

RequestIDContainsFold applies the ContainsFold predicate on the "request_id" field.

func RequestIDEQ

func RequestIDEQ(v string) predicate.Task

RequestIDEQ applies the EQ predicate on the "request_id" field.

func RequestIDEqualFold

func RequestIDEqualFold(v string) predicate.Task

RequestIDEqualFold applies the EqualFold predicate on the "request_id" field.

func RequestIDGT

func RequestIDGT(v string) predicate.Task

RequestIDGT applies the GT predicate on the "request_id" field.

func RequestIDGTE

func RequestIDGTE(v string) predicate.Task

RequestIDGTE applies the GTE predicate on the "request_id" field.

func RequestIDHasPrefix

func RequestIDHasPrefix(v string) predicate.Task

RequestIDHasPrefix applies the HasPrefix predicate on the "request_id" field.

func RequestIDHasSuffix

func RequestIDHasSuffix(v string) predicate.Task

RequestIDHasSuffix applies the HasSuffix predicate on the "request_id" field.

func RequestIDIn

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

RequestIDIn applies the In predicate on the "request_id" field.

func RequestIDIsNil

func RequestIDIsNil() predicate.Task

RequestIDIsNil applies the IsNil predicate on the "request_id" field.

func RequestIDLT

func RequestIDLT(v string) predicate.Task

RequestIDLT applies the LT predicate on the "request_id" field.

func RequestIDLTE

func RequestIDLTE(v string) predicate.Task

RequestIDLTE applies the LTE predicate on the "request_id" field.

func RequestIDNEQ

func RequestIDNEQ(v string) predicate.Task

RequestIDNEQ applies the NEQ predicate on the "request_id" field.

func RequestIDNotIn

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

RequestIDNotIn applies the NotIn predicate on the "request_id" field.

func RequestIDNotNil

func RequestIDNotNil() predicate.Task

RequestIDNotNil applies the NotNil predicate on the "request_id" field.

func SourceCode

func SourceCode(v string) predicate.Task

SourceCode applies equality check predicate on the "source_code" field. It's identical to SourceCodeEQ.

func SourceCodeContains

func SourceCodeContains(v string) predicate.Task

SourceCodeContains applies the Contains predicate on the "source_code" field.

func SourceCodeContainsFold

func SourceCodeContainsFold(v string) predicate.Task

SourceCodeContainsFold applies the ContainsFold predicate on the "source_code" field.

func SourceCodeEQ

func SourceCodeEQ(v string) predicate.Task

SourceCodeEQ applies the EQ predicate on the "source_code" field.

func SourceCodeEqualFold

func SourceCodeEqualFold(v string) predicate.Task

SourceCodeEqualFold applies the EqualFold predicate on the "source_code" field.

func SourceCodeGT

func SourceCodeGT(v string) predicate.Task

SourceCodeGT applies the GT predicate on the "source_code" field.

func SourceCodeGTE

func SourceCodeGTE(v string) predicate.Task

SourceCodeGTE applies the GTE predicate on the "source_code" field.

func SourceCodeHasPrefix

func SourceCodeHasPrefix(v string) predicate.Task

SourceCodeHasPrefix applies the HasPrefix predicate on the "source_code" field.

func SourceCodeHasSuffix

func SourceCodeHasSuffix(v string) predicate.Task

SourceCodeHasSuffix applies the HasSuffix predicate on the "source_code" field.

func SourceCodeIn

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

SourceCodeIn applies the In predicate on the "source_code" field.

func SourceCodeIsNil

func SourceCodeIsNil() predicate.Task

SourceCodeIsNil applies the IsNil predicate on the "source_code" field.

func SourceCodeLT

func SourceCodeLT(v string) predicate.Task

SourceCodeLT applies the LT predicate on the "source_code" field.

func SourceCodeLTE

func SourceCodeLTE(v string) predicate.Task

SourceCodeLTE applies the LTE predicate on the "source_code" field.

func SourceCodeNEQ

func SourceCodeNEQ(v string) predicate.Task

SourceCodeNEQ applies the NEQ predicate on the "source_code" field.

func SourceCodeNotIn

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

SourceCodeNotIn applies the NotIn predicate on the "source_code" field.

func SourceCodeNotNil

func SourceCodeNotNil() predicate.Task

SourceCodeNotNil applies the NotNil predicate on the "source_code" field.

func TaskID

func TaskID(v string) predicate.Task

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

func TaskIDContains

func TaskIDContains(v string) predicate.Task

TaskIDContains applies the Contains predicate on the "task_id" field.

func TaskIDContainsFold

func TaskIDContainsFold(v string) predicate.Task

TaskIDContainsFold applies the ContainsFold predicate on the "task_id" field.

func TaskIDEQ

func TaskIDEQ(v string) predicate.Task

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

func TaskIDEqualFold

func TaskIDEqualFold(v string) predicate.Task

TaskIDEqualFold applies the EqualFold predicate on the "task_id" field.

func TaskIDGT

func TaskIDGT(v string) predicate.Task

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

func TaskIDGTE

func TaskIDGTE(v string) predicate.Task

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

func TaskIDHasPrefix

func TaskIDHasPrefix(v string) predicate.Task

TaskIDHasPrefix applies the HasPrefix predicate on the "task_id" field.

func TaskIDHasSuffix

func TaskIDHasSuffix(v string) predicate.Task

TaskIDHasSuffix applies the HasSuffix predicate on the "task_id" field.

func TaskIDIn

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

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

func TaskIDLT

func TaskIDLT(v string) predicate.Task

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

func TaskIDLTE

func TaskIDLTE(v string) predicate.Task

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

func TaskIDNEQ

func TaskIDNEQ(v string) predicate.Task

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

func TaskIDNotIn

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

TaskIDNotIn applies the NotIn predicate on the "task_id" 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 UserIDIsNil

func UserIDIsNil() predicate.Task

UserIDIsNil applies the IsNil 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 UserIDNotNil

func UserIDNotNil() predicate.Task

UserIDNotNil applies the NotNil predicate on the "user_id" field.

func UserInput

func UserInput(v string) predicate.Task

UserInput applies equality check predicate on the "user_input" field. It's identical to UserInputEQ.

func UserInputContains

func UserInputContains(v string) predicate.Task

UserInputContains applies the Contains predicate on the "user_input" field.

func UserInputContainsFold

func UserInputContainsFold(v string) predicate.Task

UserInputContainsFold applies the ContainsFold predicate on the "user_input" field.

func UserInputEQ

func UserInputEQ(v string) predicate.Task

UserInputEQ applies the EQ predicate on the "user_input" field.

func UserInputEqualFold

func UserInputEqualFold(v string) predicate.Task

UserInputEqualFold applies the EqualFold predicate on the "user_input" field.

func UserInputGT

func UserInputGT(v string) predicate.Task

UserInputGT applies the GT predicate on the "user_input" field.

func UserInputGTE

func UserInputGTE(v string) predicate.Task

UserInputGTE applies the GTE predicate on the "user_input" field.

func UserInputHasPrefix

func UserInputHasPrefix(v string) predicate.Task

UserInputHasPrefix applies the HasPrefix predicate on the "user_input" field.

func UserInputHasSuffix

func UserInputHasSuffix(v string) predicate.Task

UserInputHasSuffix applies the HasSuffix predicate on the "user_input" field.

func UserInputIn

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

UserInputIn applies the In predicate on the "user_input" field.

func UserInputIsNil

func UserInputIsNil() predicate.Task

UserInputIsNil applies the IsNil predicate on the "user_input" field.

func UserInputLT

func UserInputLT(v string) predicate.Task

UserInputLT applies the LT predicate on the "user_input" field.

func UserInputLTE

func UserInputLTE(v string) predicate.Task

UserInputLTE applies the LTE predicate on the "user_input" field.

func UserInputNEQ

func UserInputNEQ(v string) predicate.Task

UserInputNEQ applies the NEQ predicate on the "user_input" field.

func UserInputNotIn

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

UserInputNotIn applies the NotIn predicate on the "user_input" field.

func UserInputNotNil

func UserInputNotNil() predicate.Task

UserInputNotNil applies the NotNil predicate on the "user_input" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WorkMode

func WorkMode(v string) predicate.Task

WorkMode applies equality check predicate on the "work_mode" field. It's identical to WorkModeEQ.

func WorkModeContains

func WorkModeContains(v string) predicate.Task

WorkModeContains applies the Contains predicate on the "work_mode" field.

func WorkModeContainsFold

func WorkModeContainsFold(v string) predicate.Task

WorkModeContainsFold applies the ContainsFold predicate on the "work_mode" field.

func WorkModeEQ

func WorkModeEQ(v string) predicate.Task

WorkModeEQ applies the EQ predicate on the "work_mode" field.

func WorkModeEqualFold

func WorkModeEqualFold(v string) predicate.Task

WorkModeEqualFold applies the EqualFold predicate on the "work_mode" field.

func WorkModeGT

func WorkModeGT(v string) predicate.Task

WorkModeGT applies the GT predicate on the "work_mode" field.

func WorkModeGTE

func WorkModeGTE(v string) predicate.Task

WorkModeGTE applies the GTE predicate on the "work_mode" field.

func WorkModeHasPrefix

func WorkModeHasPrefix(v string) predicate.Task

WorkModeHasPrefix applies the HasPrefix predicate on the "work_mode" field.

func WorkModeHasSuffix

func WorkModeHasSuffix(v string) predicate.Task

WorkModeHasSuffix applies the HasSuffix predicate on the "work_mode" field.

func WorkModeIn

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

WorkModeIn applies the In predicate on the "work_mode" field.

func WorkModeIsNil

func WorkModeIsNil() predicate.Task

WorkModeIsNil applies the IsNil predicate on the "work_mode" field.

func WorkModeLT

func WorkModeLT(v string) predicate.Task

WorkModeLT applies the LT predicate on the "work_mode" field.

func WorkModeLTE

func WorkModeLTE(v string) predicate.Task

WorkModeLTE applies the LTE predicate on the "work_mode" field.

func WorkModeNEQ

func WorkModeNEQ(v string) predicate.Task

WorkModeNEQ applies the NEQ predicate on the "work_mode" field.

func WorkModeNotIn

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

WorkModeNotIn applies the NotIn predicate on the "work_mode" field.

func WorkModeNotNil

func WorkModeNotNil() predicate.Task

WorkModeNotNil applies the NotNil predicate on the "work_mode" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Task queries.

func ByCodeLines

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

ByCodeLines orders the results by the code_lines field.

func ByCompletion

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

ByCompletion orders the results by the completion field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByInputTokens

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

ByInputTokens orders the results by the input_tokens field.

func ByIsAccept

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

ByIsAccept orders the results by the is_accept field.

func ByIsSuggested

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

ByIsSuggested orders the results by the is_suggested field.

func ByModelField

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

ByModelField orders the results by model field.

func ByModelID

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

ByModelID orders the results by the model_id field.

func ByModelType

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

ByModelType orders the results by the model_type field.

func ByOutputTokens

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

ByOutputTokens orders the results by the output_tokens field.

func ByProgramLanguage

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

ByProgramLanguage orders the results by the program_language field.

func ByPrompt

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

ByPrompt orders the results by the prompt field.

func ByRequestID

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

ByRequestID orders the results by the request_id field.

func BySourceCode

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

BySourceCode orders the results by the source_code field.

func ByTaskID

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

ByTaskID orders the results by the task_id field.

func ByTaskRecords

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

ByTaskRecords orders the results by task_records terms.

func ByTaskRecordsCount

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

ByTaskRecordsCount orders the results by task_records 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 ByUserInput

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

ByUserInput orders the results by the user_input field.

func ByWorkMode

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

ByWorkMode orders the results by the work_mode field.

Jump to

Keyboard shortcuts

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