Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ChatMessage) predicate.ChatMessage
- func Content(v string) predicate.ChatMessage
- func ContentContains(v string) predicate.ChatMessage
- func ContentContainsFold(v string) predicate.ChatMessage
- func ContentEQ(v string) predicate.ChatMessage
- func ContentEqualFold(v string) predicate.ChatMessage
- func ContentGT(v string) predicate.ChatMessage
- func ContentGTE(v string) predicate.ChatMessage
- func ContentHasPrefix(v string) predicate.ChatMessage
- func ContentHasSuffix(v string) predicate.ChatMessage
- func ContentIn(vs ...string) predicate.ChatMessage
- func ContentLT(v string) predicate.ChatMessage
- func ContentLTE(v string) predicate.ChatMessage
- func ContentNEQ(v string) predicate.ChatMessage
- func ContentNotIn(vs ...string) predicate.ChatMessage
- func ConversationID(v string) predicate.ChatMessage
- func ConversationIDContains(v string) predicate.ChatMessage
- func ConversationIDContainsFold(v string) predicate.ChatMessage
- func ConversationIDEQ(v string) predicate.ChatMessage
- func ConversationIDEqualFold(v string) predicate.ChatMessage
- func ConversationIDGT(v string) predicate.ChatMessage
- func ConversationIDGTE(v string) predicate.ChatMessage
- func ConversationIDHasPrefix(v string) predicate.ChatMessage
- func ConversationIDHasSuffix(v string) predicate.ChatMessage
- func ConversationIDIn(vs ...string) predicate.ChatMessage
- func ConversationIDLT(v string) predicate.ChatMessage
- func ConversationIDLTE(v string) predicate.ChatMessage
- func ConversationIDNEQ(v string) predicate.ChatMessage
- func ConversationIDNotIn(vs ...string) predicate.ChatMessage
- func ID(id string) predicate.ChatMessage
- func IDContainsFold(id string) predicate.ChatMessage
- func IDEQ(id string) predicate.ChatMessage
- func IDEqualFold(id string) predicate.ChatMessage
- func IDGT(id string) predicate.ChatMessage
- func IDGTE(id string) predicate.ChatMessage
- func IDIn(ids ...string) predicate.ChatMessage
- func IDLT(id string) predicate.ChatMessage
- func IDLTE(id string) predicate.ChatMessage
- func IDNEQ(id string) predicate.ChatMessage
- func IDNotIn(ids ...string) predicate.ChatMessage
- func Not(p predicate.ChatMessage) predicate.ChatMessage
- func Or(predicates ...predicate.ChatMessage) predicate.ChatMessage
- func Role(v string) predicate.ChatMessage
- func RoleContains(v string) predicate.ChatMessage
- func RoleContainsFold(v string) predicate.ChatMessage
- func RoleEQ(v string) predicate.ChatMessage
- func RoleEqualFold(v string) predicate.ChatMessage
- func RoleGT(v string) predicate.ChatMessage
- func RoleGTE(v string) predicate.ChatMessage
- func RoleHasPrefix(v string) predicate.ChatMessage
- func RoleHasSuffix(v string) predicate.ChatMessage
- func RoleIn(vs ...string) predicate.ChatMessage
- func RoleLT(v string) predicate.ChatMessage
- func RoleLTE(v string) predicate.ChatMessage
- func RoleNEQ(v string) predicate.ChatMessage
- func RoleNotIn(vs ...string) predicate.ChatMessage
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the chatmessage type in the database. Label = "chat_message" // 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" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // Table holds the table name of the chatmessage in the database. Table = "chat_messages" )
Variables ¶
var ( // ConversationIDValidator is a validator for the "conversation_id" field. It is called by the builders before save. ConversationIDValidator func(string) error // RoleValidator is a validator for the "role" field. It is called by the builders before save. RoleValidator func(string) error // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldConversationID, FieldRole, FieldContent, }
Columns holds all SQL columns for chatmessage fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ChatMessage) predicate.ChatMessage
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.ChatMessage
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.ChatMessage
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.ChatMessage
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.ChatMessage
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.ChatMessage
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.ChatMessage
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.ChatMessage
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.ChatMessage
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.ChatMessage
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.ChatMessage
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.ChatMessage
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.ChatMessage
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.ChatMessage
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.ChatMessage
ContentNotIn applies the NotIn predicate on the "content" field.
func ConversationID ¶
func ConversationID(v string) predicate.ChatMessage
ConversationID applies equality check predicate on the "conversation_id" field. It's identical to ConversationIDEQ.
func ConversationIDContains ¶
func ConversationIDContains(v string) predicate.ChatMessage
ConversationIDContains applies the Contains predicate on the "conversation_id" field.
func ConversationIDContainsFold ¶
func ConversationIDContainsFold(v string) predicate.ChatMessage
ConversationIDContainsFold applies the ContainsFold predicate on the "conversation_id" field.
func ConversationIDEQ ¶
func ConversationIDEQ(v string) predicate.ChatMessage
ConversationIDEQ applies the EQ predicate on the "conversation_id" field.
func ConversationIDEqualFold ¶
func ConversationIDEqualFold(v string) predicate.ChatMessage
ConversationIDEqualFold applies the EqualFold predicate on the "conversation_id" field.
func ConversationIDGT ¶
func ConversationIDGT(v string) predicate.ChatMessage
ConversationIDGT applies the GT predicate on the "conversation_id" field.
func ConversationIDGTE ¶
func ConversationIDGTE(v string) predicate.ChatMessage
ConversationIDGTE applies the GTE predicate on the "conversation_id" field.
func ConversationIDHasPrefix ¶
func ConversationIDHasPrefix(v string) predicate.ChatMessage
ConversationIDHasPrefix applies the HasPrefix predicate on the "conversation_id" field.
func ConversationIDHasSuffix ¶
func ConversationIDHasSuffix(v string) predicate.ChatMessage
ConversationIDHasSuffix applies the HasSuffix predicate on the "conversation_id" field.
func ConversationIDIn ¶
func ConversationIDIn(vs ...string) predicate.ChatMessage
ConversationIDIn applies the In predicate on the "conversation_id" field.
func ConversationIDLT ¶
func ConversationIDLT(v string) predicate.ChatMessage
ConversationIDLT applies the LT predicate on the "conversation_id" field.
func ConversationIDLTE ¶
func ConversationIDLTE(v string) predicate.ChatMessage
ConversationIDLTE applies the LTE predicate on the "conversation_id" field.
func ConversationIDNEQ ¶
func ConversationIDNEQ(v string) predicate.ChatMessage
ConversationIDNEQ applies the NEQ predicate on the "conversation_id" field.
func ConversationIDNotIn ¶
func ConversationIDNotIn(vs ...string) predicate.ChatMessage
ConversationIDNotIn applies the NotIn predicate on the "conversation_id" field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.ChatMessage
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.ChatMessage
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.ChatMessage
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.ChatMessage
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.ChatMessage
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.ChatMessage
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.ChatMessage
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.ChatMessage
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.ChatMessage
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.ChatMessage
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ChatMessage) predicate.ChatMessage
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ChatMessage) predicate.ChatMessage
Or groups predicates with the OR operator between them.
func Role ¶
func Role(v string) predicate.ChatMessage
Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
func RoleContains ¶
func RoleContains(v string) predicate.ChatMessage
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
func RoleContainsFold(v string) predicate.ChatMessage
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEQ ¶
func RoleEQ(v string) predicate.ChatMessage
RoleEQ applies the EQ predicate on the "role" field.
func RoleEqualFold ¶
func RoleEqualFold(v string) predicate.ChatMessage
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleGT ¶
func RoleGT(v string) predicate.ChatMessage
RoleGT applies the GT predicate on the "role" field.
func RoleGTE ¶
func RoleGTE(v string) predicate.ChatMessage
RoleGTE applies the GTE predicate on the "role" field.
func RoleHasPrefix ¶
func RoleHasPrefix(v string) predicate.ChatMessage
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
func RoleHasSuffix(v string) predicate.ChatMessage
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...string) predicate.ChatMessage
RoleIn applies the In predicate on the "role" field.
func RoleLT ¶
func RoleLT(v string) predicate.ChatMessage
RoleLT applies the LT predicate on the "role" field.
func RoleLTE ¶
func RoleLTE(v string) predicate.ChatMessage
RoleLTE applies the LTE predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v string) predicate.ChatMessage
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...string) predicate.ChatMessage
RoleNotIn applies the NotIn predicate on the "role" 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 ChatMessage queries.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByConversationID ¶
func ByConversationID(opts ...sql.OrderTermOption) OrderOption
ByConversationID orders the results by the conversation_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.