Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Agent) predicate.Agent
- func Builtin(v bool) predicate.Agent
- func BuiltinEQ(v bool) predicate.Agent
- func BuiltinNEQ(v bool) predicate.Agent
- func CreateTime(v time.Time) predicate.Agent
- func CreateTimeEQ(v time.Time) predicate.Agent
- func CreateTimeGT(v time.Time) predicate.Agent
- func CreateTimeGTE(v time.Time) predicate.Agent
- func CreateTimeIn(vs ...time.Time) predicate.Agent
- func CreateTimeLT(v time.Time) predicate.Agent
- func CreateTimeLTE(v time.Time) predicate.Agent
- func CreateTimeNEQ(v time.Time) predicate.Agent
- func CreateTimeNotIn(vs ...time.Time) predicate.Agent
- func Description(v string) predicate.Agent
- func DescriptionContains(v string) predicate.Agent
- func DescriptionContainsFold(v string) predicate.Agent
- func DescriptionEQ(v string) predicate.Agent
- func DescriptionEqualFold(v string) predicate.Agent
- func DescriptionGT(v string) predicate.Agent
- func DescriptionGTE(v string) predicate.Agent
- func DescriptionHasPrefix(v string) predicate.Agent
- func DescriptionHasSuffix(v string) predicate.Agent
- func DescriptionIn(vs ...string) predicate.Agent
- func DescriptionIsNil() predicate.Agent
- func DescriptionLT(v string) predicate.Agent
- func DescriptionLTE(v string) predicate.Agent
- func DescriptionNEQ(v string) predicate.Agent
- func DescriptionNotIn(vs ...string) predicate.Agent
- func DescriptionNotNil() predicate.Agent
- func HasMessages() predicate.Agent
- func HasMessagesWith(preds ...predicate.Message) predicate.Agent
- func HasModel() predicate.Agent
- func HasModelWith(preds ...predicate.Model) predicate.Agent
- func HasTasks() predicate.Agent
- func HasTasksWith(preds ...predicate.Task) predicate.Agent
- func ID(id uuid.UUID) predicate.Agent
- func IDEQ(id uuid.UUID) predicate.Agent
- func IDGT(id uuid.UUID) predicate.Agent
- func IDGTE(id uuid.UUID) predicate.Agent
- func IDIn(ids ...uuid.UUID) predicate.Agent
- func IDLT(id uuid.UUID) predicate.Agent
- func IDLTE(id uuid.UUID) predicate.Agent
- func IDNEQ(id uuid.UUID) predicate.Agent
- func IDNotIn(ids ...uuid.UUID) predicate.Agent
- func Instructions(v string) predicate.Agent
- func InstructionsContains(v string) predicate.Agent
- func InstructionsContainsFold(v string) predicate.Agent
- func InstructionsEQ(v string) predicate.Agent
- func InstructionsEqualFold(v string) predicate.Agent
- func InstructionsGT(v string) predicate.Agent
- func InstructionsGTE(v string) predicate.Agent
- func InstructionsHasPrefix(v string) predicate.Agent
- func InstructionsHasSuffix(v string) predicate.Agent
- func InstructionsIn(vs ...string) predicate.Agent
- func InstructionsLT(v string) predicate.Agent
- func InstructionsLTE(v string) predicate.Agent
- func InstructionsNEQ(v string) predicate.Agent
- func InstructionsNotIn(vs ...string) predicate.Agent
- func ModelID(v uuid.UUID) predicate.Agent
- func ModelIDEQ(v uuid.UUID) predicate.Agent
- func ModelIDIn(vs ...uuid.UUID) predicate.Agent
- func ModelIDIsNil() predicate.Agent
- func ModelIDNEQ(v uuid.UUID) predicate.Agent
- func ModelIDNotIn(vs ...uuid.UUID) predicate.Agent
- func ModelIDNotNil() predicate.Agent
- func Name(v string) predicate.Agent
- func NameContains(v string) predicate.Agent
- func NameContainsFold(v string) predicate.Agent
- func NameEQ(v string) predicate.Agent
- func NameEqualFold(v string) predicate.Agent
- func NameGT(v string) predicate.Agent
- func NameGTE(v string) predicate.Agent
- func NameHasPrefix(v string) predicate.Agent
- func NameHasSuffix(v string) predicate.Agent
- func NameIn(vs ...string) predicate.Agent
- func NameLT(v string) predicate.Agent
- func NameLTE(v string) predicate.Agent
- func NameNEQ(v string) predicate.Agent
- func NameNotIn(vs ...string) predicate.Agent
- func Not(p predicate.Agent) predicate.Agent
- func Or(predicates ...predicate.Agent) predicate.Agent
- func UpdateTime(v time.Time) predicate.Agent
- func UpdateTimeEQ(v time.Time) predicate.Agent
- func UpdateTimeGT(v time.Time) predicate.Agent
- func UpdateTimeGTE(v time.Time) predicate.Agent
- func UpdateTimeIn(vs ...time.Time) predicate.Agent
- func UpdateTimeLT(v time.Time) predicate.Agent
- func UpdateTimeLTE(v time.Time) predicate.Agent
- func UpdateTimeNEQ(v time.Time) predicate.Agent
- func UpdateTimeNotIn(vs ...time.Time) predicate.Agent
- func ValidColumn(column string) bool
- type OrderOption
- func ByBuiltin(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInstructions(opts ...sql.OrderTermOption) OrderOption
- func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByModelField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByModelID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the agent type in the database. Label = "agent" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldInstructions holds the string denoting the instructions field in the database. FieldInstructions = "instructions" // FieldBuiltin holds the string denoting the builtin field in the database. FieldBuiltin = "builtin" // FieldModelID holds the string denoting the model_id field in the database. FieldModelID = "model_id" // EdgeModel holds the string denoting the model edge name in mutations. EdgeModel = "model" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeMessages holds the string denoting the messages edge name in mutations. EdgeMessages = "messages" // Table holds the table name of the agent in the database. Table = "agents" // ModelTable is the table that holds the model relation/edge. ModelTable = "agents" // 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" // TasksTable is the table that holds the tasks relation/edge. TasksTable = "tasks" // 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 = "tasks" // TasksColumn is the table column denoting the tasks relation/edge. TasksColumn = "agent_id" // MessagesTable is the table that holds the messages relation/edge. MessagesTable = "messages" // MessagesInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. MessagesInverseTable = "messages" // MessagesColumn is the table column denoting the messages relation/edge. MessagesColumn = "agent_id" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultBuiltin holds the default value on creation for the "builtin" field. DefaultBuiltin bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldDescription, FieldInstructions, FieldBuiltin, FieldModelID, }
Columns holds all SQL columns for agent fields.
Functions ¶
func Builtin ¶
Builtin applies equality check predicate on the "builtin" field. It's identical to BuiltinEQ.
func BuiltinNEQ ¶
BuiltinNEQ applies the NEQ predicate on the "builtin" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasMessages ¶
HasMessages applies the HasEdge predicate on the "messages" edge.
func HasMessagesWith ¶
HasMessagesWith applies the HasEdge predicate on the "messages" edge with a given conditions (other predicates).
func HasModelWith ¶
HasModelWith applies the HasEdge predicate on the "model" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func Instructions ¶
Instructions applies equality check predicate on the "instructions" field. It's identical to InstructionsEQ.
func InstructionsContains ¶
InstructionsContains applies the Contains predicate on the "instructions" field.
func InstructionsContainsFold ¶
InstructionsContainsFold applies the ContainsFold predicate on the "instructions" field.
func InstructionsEQ ¶
InstructionsEQ applies the EQ predicate on the "instructions" field.
func InstructionsEqualFold ¶
InstructionsEqualFold applies the EqualFold predicate on the "instructions" field.
func InstructionsGT ¶
InstructionsGT applies the GT predicate on the "instructions" field.
func InstructionsGTE ¶
InstructionsGTE applies the GTE predicate on the "instructions" field.
func InstructionsHasPrefix ¶
InstructionsHasPrefix applies the HasPrefix predicate on the "instructions" field.
func InstructionsHasSuffix ¶
InstructionsHasSuffix applies the HasSuffix predicate on the "instructions" field.
func InstructionsIn ¶
InstructionsIn applies the In predicate on the "instructions" field.
func InstructionsLT ¶
InstructionsLT applies the LT predicate on the "instructions" field.
func InstructionsLTE ¶
InstructionsLTE applies the LTE predicate on the "instructions" field.
func InstructionsNEQ ¶
InstructionsNEQ applies the NEQ predicate on the "instructions" field.
func InstructionsNotIn ¶
InstructionsNotIn applies the NotIn predicate on the "instructions" field.
func ModelID ¶
ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.
func ModelIDIsNil ¶
ModelIDIsNil applies the IsNil predicate on the "model_id" field.
func ModelIDNEQ ¶
ModelIDNEQ applies the NEQ predicate on the "model_id" field.
func ModelIDNotIn ¶
ModelIDNotIn applies the NotIn predicate on the "model_id" field.
func ModelIDNotNil ¶
ModelIDNotNil applies the NotNil predicate on the "model_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Agent queries.
func ByBuiltin ¶
func ByBuiltin(opts ...sql.OrderTermOption) OrderOption
ByBuiltin orders the results by the builtin field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInstructions ¶
func ByInstructions(opts ...sql.OrderTermOption) OrderOption
ByInstructions orders the results by the instructions field.
func ByMessages ¶
func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMessages orders the results by messages terms.
func ByMessagesCount ¶
func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
ByMessagesCount orders the results by messages count.
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 ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByTasks ¶
func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTasks orders the results by tasks terms.
func ByTasksCount ¶
func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
ByTasksCount orders the results by tasks count.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.