Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ChatTurn) predicate.ChatTurn
- func CompletedAt(v time.Time) predicate.ChatTurn
- func CompletedAtEQ(v time.Time) predicate.ChatTurn
- func CompletedAtGT(v time.Time) predicate.ChatTurn
- func CompletedAtGTE(v time.Time) predicate.ChatTurn
- func CompletedAtIn(vs ...time.Time) predicate.ChatTurn
- func CompletedAtIsNil() predicate.ChatTurn
- func CompletedAtLT(v time.Time) predicate.ChatTurn
- func CompletedAtLTE(v time.Time) predicate.ChatTurn
- func CompletedAtNEQ(v time.Time) predicate.ChatTurn
- func CompletedAtNotIn(vs ...time.Time) predicate.ChatTurn
- func CompletedAtNotNil() predicate.ChatTurn
- func ConversationID(v uuid.UUID) predicate.ChatTurn
- func ConversationIDEQ(v uuid.UUID) predicate.ChatTurn
- func ConversationIDIn(vs ...uuid.UUID) predicate.ChatTurn
- func ConversationIDNEQ(v uuid.UUID) predicate.ChatTurn
- func ConversationIDNotIn(vs ...uuid.UUID) predicate.ChatTurn
- func CreatedAt(v time.Time) predicate.ChatTurn
- func CreatedAtEQ(v time.Time) predicate.ChatTurn
- func CreatedAtGT(v time.Time) predicate.ChatTurn
- func CreatedAtGTE(v time.Time) predicate.ChatTurn
- func CreatedAtIn(vs ...time.Time) predicate.ChatTurn
- func CreatedAtLT(v time.Time) predicate.ChatTurn
- func CreatedAtLTE(v time.Time) predicate.ChatTurn
- func CreatedAtNEQ(v time.Time) predicate.ChatTurn
- func CreatedAtNotIn(vs ...time.Time) predicate.ChatTurn
- func HasConversation() predicate.ChatTurn
- func HasConversationWith(preds ...predicate.ChatConversation) predicate.ChatTurn
- func HasEntries() predicate.ChatTurn
- func HasEntriesWith(preds ...predicate.ChatEntry) predicate.ChatTurn
- func HasPendingInterrupts() predicate.ChatTurn
- func HasPendingInterruptsWith(preds ...predicate.ChatPendingInterrupt) predicate.ChatTurn
- func ID(id uuid.UUID) predicate.ChatTurn
- func IDEQ(id uuid.UUID) predicate.ChatTurn
- func IDGT(id uuid.UUID) predicate.ChatTurn
- func IDGTE(id uuid.UUID) predicate.ChatTurn
- func IDIn(ids ...uuid.UUID) predicate.ChatTurn
- func IDLT(id uuid.UUID) predicate.ChatTurn
- func IDLTE(id uuid.UUID) predicate.ChatTurn
- func IDNEQ(id uuid.UUID) predicate.ChatTurn
- func IDNotIn(ids ...uuid.UUID) predicate.ChatTurn
- func Not(p predicate.ChatTurn) predicate.ChatTurn
- func Or(predicates ...predicate.ChatTurn) predicate.ChatTurn
- func ProviderTurnID(v string) predicate.ChatTurn
- func ProviderTurnIDContains(v string) predicate.ChatTurn
- func ProviderTurnIDContainsFold(v string) predicate.ChatTurn
- func ProviderTurnIDEQ(v string) predicate.ChatTurn
- func ProviderTurnIDEqualFold(v string) predicate.ChatTurn
- func ProviderTurnIDGT(v string) predicate.ChatTurn
- func ProviderTurnIDGTE(v string) predicate.ChatTurn
- func ProviderTurnIDHasPrefix(v string) predicate.ChatTurn
- func ProviderTurnIDHasSuffix(v string) predicate.ChatTurn
- func ProviderTurnIDIn(vs ...string) predicate.ChatTurn
- func ProviderTurnIDIsNil() predicate.ChatTurn
- func ProviderTurnIDLT(v string) predicate.ChatTurn
- func ProviderTurnIDLTE(v string) predicate.ChatTurn
- func ProviderTurnIDNEQ(v string) predicate.ChatTurn
- func ProviderTurnIDNotIn(vs ...string) predicate.ChatTurn
- func ProviderTurnIDNotNil() predicate.ChatTurn
- func StartedAt(v time.Time) predicate.ChatTurn
- func StartedAtEQ(v time.Time) predicate.ChatTurn
- func StartedAtGT(v time.Time) predicate.ChatTurn
- func StartedAtGTE(v time.Time) predicate.ChatTurn
- func StartedAtIn(vs ...time.Time) predicate.ChatTurn
- func StartedAtLT(v time.Time) predicate.ChatTurn
- func StartedAtLTE(v time.Time) predicate.ChatTurn
- func StartedAtNEQ(v time.Time) predicate.ChatTurn
- func StartedAtNotIn(vs ...time.Time) predicate.ChatTurn
- func Status(v string) predicate.ChatTurn
- func StatusContains(v string) predicate.ChatTurn
- func StatusContainsFold(v string) predicate.ChatTurn
- func StatusEQ(v string) predicate.ChatTurn
- func StatusEqualFold(v string) predicate.ChatTurn
- func StatusGT(v string) predicate.ChatTurn
- func StatusGTE(v string) predicate.ChatTurn
- func StatusHasPrefix(v string) predicate.ChatTurn
- func StatusHasSuffix(v string) predicate.ChatTurn
- func StatusIn(vs ...string) predicate.ChatTurn
- func StatusLT(v string) predicate.ChatTurn
- func StatusLTE(v string) predicate.ChatTurn
- func StatusNEQ(v string) predicate.ChatTurn
- func StatusNotIn(vs ...string) predicate.ChatTurn
- func TurnIndex(v int) predicate.ChatTurn
- func TurnIndexEQ(v int) predicate.ChatTurn
- func TurnIndexGT(v int) predicate.ChatTurn
- func TurnIndexGTE(v int) predicate.ChatTurn
- func TurnIndexIn(vs ...int) predicate.ChatTurn
- func TurnIndexLT(v int) predicate.ChatTurn
- func TurnIndexLTE(v int) predicate.ChatTurn
- func TurnIndexNEQ(v int) predicate.ChatTurn
- func TurnIndexNotIn(vs ...int) predicate.ChatTurn
- func UpdatedAt(v time.Time) predicate.ChatTurn
- func UpdatedAtEQ(v time.Time) predicate.ChatTurn
- func UpdatedAtGT(v time.Time) predicate.ChatTurn
- func UpdatedAtGTE(v time.Time) predicate.ChatTurn
- func UpdatedAtIn(vs ...time.Time) predicate.ChatTurn
- func UpdatedAtLT(v time.Time) predicate.ChatTurn
- func UpdatedAtLTE(v time.Time) predicate.ChatTurn
- func UpdatedAtNEQ(v time.Time) predicate.ChatTurn
- func UpdatedAtNotIn(vs ...time.Time) predicate.ChatTurn
- func ValidColumn(column string) bool
- type OrderOption
- func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByConversationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByConversationID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEntries(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEntriesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPendingInterrupts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPendingInterruptsCount(opts ...sql.OrderTermOption) OrderOption
- func ByProviderTurnID(opts ...sql.OrderTermOption) OrderOption
- func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTurnIndex(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the chatturn type in the database. Label = "chat_turn" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldConversationID holds the string denoting the conversation_id field in the database. FieldConversationID = "conversation_id" // FieldTurnIndex holds the string denoting the turn_index field in the database. FieldTurnIndex = "turn_index" // FieldProviderTurnID holds the string denoting the provider_turn_id field in the database. FieldProviderTurnID = "provider_turn_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldStartedAt holds the string denoting the started_at field in the database. FieldStartedAt = "started_at" // FieldCompletedAt holds the string denoting the completed_at field in the database. FieldCompletedAt = "completed_at" // 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" // EdgeConversation holds the string denoting the conversation edge name in mutations. EdgeConversation = "conversation" // EdgeEntries holds the string denoting the entries edge name in mutations. EdgeEntries = "entries" // EdgePendingInterrupts holds the string denoting the pending_interrupts edge name in mutations. EdgePendingInterrupts = "pending_interrupts" // Table holds the table name of the chatturn in the database. Table = "chat_turns" // ConversationTable is the table that holds the conversation relation/edge. ConversationTable = "chat_turns" // ConversationInverseTable is the table name for the ChatConversation entity. // It exists in this package in order to avoid circular dependency with the "chatconversation" package. ConversationInverseTable = "chat_conversations" // ConversationColumn is the table column denoting the conversation relation/edge. ConversationColumn = "conversation_id" // EntriesTable is the table that holds the entries relation/edge. EntriesTable = "chat_entries" // EntriesInverseTable is the table name for the ChatEntry entity. // It exists in this package in order to avoid circular dependency with the "chatentry" package. EntriesInverseTable = "chat_entries" // EntriesColumn is the table column denoting the entries relation/edge. EntriesColumn = "turn_id" // PendingInterruptsTable is the table that holds the pending_interrupts relation/edge. PendingInterruptsTable = "chat_pending_interrupts" // PendingInterruptsInverseTable is the table name for the ChatPendingInterrupt entity. // It exists in this package in order to avoid circular dependency with the "chatpendinginterrupt" package. PendingInterruptsInverseTable = "chat_pending_interrupts" // PendingInterruptsColumn is the table column denoting the pending_interrupts relation/edge. PendingInterruptsColumn = "turn_id" )
Variables ¶
var ( // TurnIndexValidator is a validator for the "turn_index" field. It is called by the builders before save. TurnIndexValidator func(int) error // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // DefaultStartedAt holds the default value on creation for the "started_at" field. DefaultStartedAt func() time.Time // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldConversationID, FieldTurnIndex, FieldProviderTurnID, FieldStatus, FieldStartedAt, FieldCompletedAt, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for chatturn fields.
Functions ¶
func CompletedAt ¶
CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.
func CompletedAtEQ ¶
CompletedAtEQ applies the EQ predicate on the "completed_at" field.
func CompletedAtGT ¶
CompletedAtGT applies the GT predicate on the "completed_at" field.
func CompletedAtGTE ¶
CompletedAtGTE applies the GTE predicate on the "completed_at" field.
func CompletedAtIn ¶
CompletedAtIn applies the In predicate on the "completed_at" field.
func CompletedAtIsNil ¶
CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.
func CompletedAtLT ¶
CompletedAtLT applies the LT predicate on the "completed_at" field.
func CompletedAtLTE ¶
CompletedAtLTE applies the LTE predicate on the "completed_at" field.
func CompletedAtNEQ ¶
CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.
func CompletedAtNotIn ¶
CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.
func CompletedAtNotNil ¶
CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.
func ConversationID ¶
ConversationID applies equality check predicate on the "conversation_id" field. It's identical to ConversationIDEQ.
func ConversationIDEQ ¶
ConversationIDEQ applies the EQ predicate on the "conversation_id" field.
func ConversationIDIn ¶
ConversationIDIn applies the In predicate on the "conversation_id" field.
func ConversationIDNEQ ¶
ConversationIDNEQ applies the NEQ predicate on the "conversation_id" field.
func ConversationIDNotIn ¶
ConversationIDNotIn applies the NotIn predicate on the "conversation_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasConversation ¶
HasConversation applies the HasEdge predicate on the "conversation" edge.
func HasConversationWith ¶
func HasConversationWith(preds ...predicate.ChatConversation) predicate.ChatTurn
HasConversationWith applies the HasEdge predicate on the "conversation" edge with a given conditions (other predicates).
func HasEntries ¶
HasEntries applies the HasEdge predicate on the "entries" edge.
func HasEntriesWith ¶
HasEntriesWith applies the HasEdge predicate on the "entries" edge with a given conditions (other predicates).
func HasPendingInterrupts ¶
HasPendingInterrupts applies the HasEdge predicate on the "pending_interrupts" edge.
func HasPendingInterruptsWith ¶
func HasPendingInterruptsWith(preds ...predicate.ChatPendingInterrupt) predicate.ChatTurn
HasPendingInterruptsWith applies the HasEdge predicate on the "pending_interrupts" edge with a given conditions (other predicates).
func ProviderTurnID ¶
ProviderTurnID applies equality check predicate on the "provider_turn_id" field. It's identical to ProviderTurnIDEQ.
func ProviderTurnIDContains ¶
ProviderTurnIDContains applies the Contains predicate on the "provider_turn_id" field.
func ProviderTurnIDContainsFold ¶
ProviderTurnIDContainsFold applies the ContainsFold predicate on the "provider_turn_id" field.
func ProviderTurnIDEQ ¶
ProviderTurnIDEQ applies the EQ predicate on the "provider_turn_id" field.
func ProviderTurnIDEqualFold ¶
ProviderTurnIDEqualFold applies the EqualFold predicate on the "provider_turn_id" field.
func ProviderTurnIDGT ¶
ProviderTurnIDGT applies the GT predicate on the "provider_turn_id" field.
func ProviderTurnIDGTE ¶
ProviderTurnIDGTE applies the GTE predicate on the "provider_turn_id" field.
func ProviderTurnIDHasPrefix ¶
ProviderTurnIDHasPrefix applies the HasPrefix predicate on the "provider_turn_id" field.
func ProviderTurnIDHasSuffix ¶
ProviderTurnIDHasSuffix applies the HasSuffix predicate on the "provider_turn_id" field.
func ProviderTurnIDIn ¶
ProviderTurnIDIn applies the In predicate on the "provider_turn_id" field.
func ProviderTurnIDIsNil ¶
ProviderTurnIDIsNil applies the IsNil predicate on the "provider_turn_id" field.
func ProviderTurnIDLT ¶
ProviderTurnIDLT applies the LT predicate on the "provider_turn_id" field.
func ProviderTurnIDLTE ¶
ProviderTurnIDLTE applies the LTE predicate on the "provider_turn_id" field.
func ProviderTurnIDNEQ ¶
ProviderTurnIDNEQ applies the NEQ predicate on the "provider_turn_id" field.
func ProviderTurnIDNotIn ¶
ProviderTurnIDNotIn applies the NotIn predicate on the "provider_turn_id" field.
func ProviderTurnIDNotNil ¶
ProviderTurnIDNotNil applies the NotNil predicate on the "provider_turn_id" 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 Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func TurnIndex ¶
TurnIndex applies equality check predicate on the "turn_index" field. It's identical to TurnIndexEQ.
func TurnIndexEQ ¶
TurnIndexEQ applies the EQ predicate on the "turn_index" field.
func TurnIndexGT ¶
TurnIndexGT applies the GT predicate on the "turn_index" field.
func TurnIndexGTE ¶
TurnIndexGTE applies the GTE predicate on the "turn_index" field.
func TurnIndexIn ¶
TurnIndexIn applies the In predicate on the "turn_index" field.
func TurnIndexLT ¶
TurnIndexLT applies the LT predicate on the "turn_index" field.
func TurnIndexLTE ¶
TurnIndexLTE applies the LTE predicate on the "turn_index" field.
func TurnIndexNEQ ¶
TurnIndexNEQ applies the NEQ predicate on the "turn_index" field.
func TurnIndexNotIn ¶
TurnIndexNotIn applies the NotIn predicate on the "turn_index" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ChatTurn queries.
func ByCompletedAt ¶
func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
ByCompletedAt orders the results by the completed_at field.
func ByConversationField ¶
func ByConversationField(field string, opts ...sql.OrderTermOption) OrderOption
ByConversationField orders the results by conversation field.
func ByConversationID ¶
func ByConversationID(opts ...sql.OrderTermOption) OrderOption
ByConversationID orders the results by the conversation_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEntries ¶
func ByEntries(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEntries orders the results by entries terms.
func ByEntriesCount ¶
func ByEntriesCount(opts ...sql.OrderTermOption) OrderOption
ByEntriesCount orders the results by entries count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPendingInterrupts ¶
func ByPendingInterrupts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPendingInterrupts orders the results by pending_interrupts terms.
func ByPendingInterruptsCount ¶
func ByPendingInterruptsCount(opts ...sql.OrderTermOption) OrderOption
ByPendingInterruptsCount orders the results by pending_interrupts count.
func ByProviderTurnID ¶
func ByProviderTurnID(opts ...sql.OrderTermOption) OrderOption
ByProviderTurnID orders the results by the provider_turn_id field.
func ByStartedAt ¶
func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
ByStartedAt orders the results by the started_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTurnIndex ¶
func ByTurnIndex(opts ...sql.OrderTermOption) OrderOption
ByTurnIndex orders the results by the turn_index field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.