Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ChatEntry) predicate.ChatEntry
- func ConversationID(v uuid.UUID) predicate.ChatEntry
- func ConversationIDEQ(v uuid.UUID) predicate.ChatEntry
- func ConversationIDIn(vs ...uuid.UUID) predicate.ChatEntry
- func ConversationIDNEQ(v uuid.UUID) predicate.ChatEntry
- func ConversationIDNotIn(vs ...uuid.UUID) predicate.ChatEntry
- func CreatedAt(v time.Time) predicate.ChatEntry
- func CreatedAtEQ(v time.Time) predicate.ChatEntry
- func CreatedAtGT(v time.Time) predicate.ChatEntry
- func CreatedAtGTE(v time.Time) predicate.ChatEntry
- func CreatedAtIn(vs ...time.Time) predicate.ChatEntry
- func CreatedAtLT(v time.Time) predicate.ChatEntry
- func CreatedAtLTE(v time.Time) predicate.ChatEntry
- func CreatedAtNEQ(v time.Time) predicate.ChatEntry
- func CreatedAtNotIn(vs ...time.Time) predicate.ChatEntry
- func HasConversation() predicate.ChatEntry
- func HasConversationWith(preds ...predicate.ChatConversation) predicate.ChatEntry
- func HasTurn() predicate.ChatEntry
- func HasTurnWith(preds ...predicate.ChatTurn) predicate.ChatEntry
- func ID(id uuid.UUID) predicate.ChatEntry
- func IDEQ(id uuid.UUID) predicate.ChatEntry
- func IDGT(id uuid.UUID) predicate.ChatEntry
- func IDGTE(id uuid.UUID) predicate.ChatEntry
- func IDIn(ids ...uuid.UUID) predicate.ChatEntry
- func IDLT(id uuid.UUID) predicate.ChatEntry
- func IDLTE(id uuid.UUID) predicate.ChatEntry
- func IDNEQ(id uuid.UUID) predicate.ChatEntry
- func IDNotIn(ids ...uuid.UUID) predicate.ChatEntry
- func Kind(v string) predicate.ChatEntry
- func KindContains(v string) predicate.ChatEntry
- func KindContainsFold(v string) predicate.ChatEntry
- func KindEQ(v string) predicate.ChatEntry
- func KindEqualFold(v string) predicate.ChatEntry
- func KindGT(v string) predicate.ChatEntry
- func KindGTE(v string) predicate.ChatEntry
- func KindHasPrefix(v string) predicate.ChatEntry
- func KindHasSuffix(v string) predicate.ChatEntry
- func KindIn(vs ...string) predicate.ChatEntry
- func KindLT(v string) predicate.ChatEntry
- func KindLTE(v string) predicate.ChatEntry
- func KindNEQ(v string) predicate.ChatEntry
- func KindNotIn(vs ...string) predicate.ChatEntry
- func Not(p predicate.ChatEntry) predicate.ChatEntry
- func Or(predicates ...predicate.ChatEntry) predicate.ChatEntry
- func Seq(v int) predicate.ChatEntry
- func SeqEQ(v int) predicate.ChatEntry
- func SeqGT(v int) predicate.ChatEntry
- func SeqGTE(v int) predicate.ChatEntry
- func SeqIn(vs ...int) predicate.ChatEntry
- func SeqLT(v int) predicate.ChatEntry
- func SeqLTE(v int) predicate.ChatEntry
- func SeqNEQ(v int) predicate.ChatEntry
- func SeqNotIn(vs ...int) predicate.ChatEntry
- func TurnID(v uuid.UUID) predicate.ChatEntry
- func TurnIDEQ(v uuid.UUID) predicate.ChatEntry
- func TurnIDIn(vs ...uuid.UUID) predicate.ChatEntry
- func TurnIDIsNil() predicate.ChatEntry
- func TurnIDNEQ(v uuid.UUID) predicate.ChatEntry
- func TurnIDNotIn(vs ...uuid.UUID) predicate.ChatEntry
- func TurnIDNotNil() predicate.ChatEntry
- func ValidColumn(column string) bool
- type OrderOption
- func ByConversationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByConversationID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func BySeq(opts ...sql.OrderTermOption) OrderOption
- func ByTurnField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTurnID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the chatentry type in the database. Label = "chat_entry" // 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" // FieldTurnID holds the string denoting the turn_id field in the database. FieldTurnID = "turn_id" // FieldSeq holds the string denoting the seq field in the database. FieldSeq = "seq" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldPayloadJSON holds the string denoting the payload_json field in the database. FieldPayloadJSON = "payload_json" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeConversation holds the string denoting the conversation edge name in mutations. EdgeConversation = "conversation" // EdgeTurn holds the string denoting the turn edge name in mutations. EdgeTurn = "turn" // Table holds the table name of the chatentry in the database. Table = "chat_entries" // ConversationTable is the table that holds the conversation relation/edge. ConversationTable = "chat_entries" // 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" // TurnTable is the table that holds the turn relation/edge. TurnTable = "chat_entries" // TurnInverseTable is the table name for the ChatTurn entity. // It exists in this package in order to avoid circular dependency with the "chatturn" package. TurnInverseTable = "chat_turns" // TurnColumn is the table column denoting the turn relation/edge. TurnColumn = "turn_id" )
Variables ¶
var ( // SeqValidator is a validator for the "seq" field. It is called by the builders before save. SeqValidator func(int) error // KindValidator is a validator for the "kind" field. It is called by the builders before save. KindValidator func(string) error // DefaultPayloadJSON holds the default value on creation for the "payload_json" field. DefaultPayloadJSON func() map[string]interface{} // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldConversationID, FieldTurnID, FieldSeq, FieldKind, FieldPayloadJSON, FieldCreatedAt, }
Columns holds all SQL columns for chatentry fields.
Functions ¶
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.ChatEntry
HasConversationWith applies the HasEdge predicate on the "conversation" edge with a given conditions (other predicates).
func HasTurnWith ¶
HasTurnWith applies the HasEdge predicate on the "turn" edge with a given conditions (other predicates).
func KindContains ¶
KindContains applies the Contains predicate on the "kind" field.
func KindContainsFold ¶
KindContainsFold applies the ContainsFold predicate on the "kind" field.
func KindEqualFold ¶
KindEqualFold applies the EqualFold predicate on the "kind" field.
func KindHasPrefix ¶
KindHasPrefix applies the HasPrefix predicate on the "kind" field.
func KindHasSuffix ¶
KindHasSuffix applies the HasSuffix predicate on the "kind" field.
func TurnID ¶
TurnID applies equality check predicate on the "turn_id" field. It's identical to TurnIDEQ.
func TurnIDIsNil ¶
TurnIDIsNil applies the IsNil predicate on the "turn_id" field.
func TurnIDNotIn ¶
TurnIDNotIn applies the NotIn predicate on the "turn_id" field.
func TurnIDNotNil ¶
TurnIDNotNil applies the NotNil predicate on the "turn_id" 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 ChatEntry queries.
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 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 BySeq ¶
func BySeq(opts ...sql.OrderTermOption) OrderOption
BySeq orders the results by the seq field.
func ByTurnField ¶
func ByTurnField(field string, opts ...sql.OrderTermOption) OrderOption
ByTurnField orders the results by turn field.
func ByTurnID ¶
func ByTurnID(opts ...sql.OrderTermOption) OrderOption
ByTurnID orders the results by the turn_id field.