Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ChatHistory) predicate.ChatHistory
- func ChatID(v int64) predicate.ChatHistory
- func ChatIDEQ(v int64) predicate.ChatHistory
- func ChatIDGT(v int64) predicate.ChatHistory
- func ChatIDGTE(v int64) predicate.ChatHistory
- func ChatIDIn(vs ...int64) predicate.ChatHistory
- func ChatIDLT(v int64) predicate.ChatHistory
- func ChatIDLTE(v int64) predicate.ChatHistory
- func ChatIDNEQ(v int64) predicate.ChatHistory
- func ChatIDNotIn(vs ...int64) predicate.ChatHistory
- func Content(v string) predicate.ChatHistory
- func ContentContains(v string) predicate.ChatHistory
- func ContentContainsFold(v string) predicate.ChatHistory
- func ContentEQ(v string) predicate.ChatHistory
- func ContentEqualFold(v string) predicate.ChatHistory
- func ContentGT(v string) predicate.ChatHistory
- func ContentGTE(v string) predicate.ChatHistory
- func ContentHasPrefix(v string) predicate.ChatHistory
- func ContentHasSuffix(v string) predicate.ChatHistory
- func ContentIn(vs ...string) predicate.ChatHistory
- func ContentLT(v string) predicate.ChatHistory
- func ContentLTE(v string) predicate.ChatHistory
- func ContentNEQ(v string) predicate.ChatHistory
- func ContentNotIn(vs ...string) predicate.ChatHistory
- func ID(id int) predicate.ChatHistory
- func IDEQ(id int) predicate.ChatHistory
- func IDGT(id int) predicate.ChatHistory
- func IDGTE(id int) predicate.ChatHistory
- func IDIn(ids ...int) predicate.ChatHistory
- func IDLT(id int) predicate.ChatHistory
- func IDLTE(id int) predicate.ChatHistory
- func IDNEQ(id int) predicate.ChatHistory
- func IDNotIn(ids ...int) predicate.ChatHistory
- func Not(p predicate.ChatHistory) predicate.ChatHistory
- func Or(predicates ...predicate.ChatHistory) predicate.ChatHistory
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the chathistory type in the database. Label = "chat_history" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChatID holds the string denoting the chat_id field in the database. FieldChatID = "chat_id" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // Table holds the table name of the chathistory in the database. Table = "chat_histories" )
Variables ¶
var Columns = []string{ FieldID, FieldChatID, FieldContent, }
Columns holds all SQL columns for chathistory fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ChatHistory) predicate.ChatHistory
And groups predicates with the AND operator between them.
func ChatID ¶
func ChatID(v int64) predicate.ChatHistory
ChatID applies equality check predicate on the "chat_id" field. It's identical to ChatIDEQ.
func ChatIDEQ ¶
func ChatIDEQ(v int64) predicate.ChatHistory
ChatIDEQ applies the EQ predicate on the "chat_id" field.
func ChatIDGT ¶
func ChatIDGT(v int64) predicate.ChatHistory
ChatIDGT applies the GT predicate on the "chat_id" field.
func ChatIDGTE ¶
func ChatIDGTE(v int64) predicate.ChatHistory
ChatIDGTE applies the GTE predicate on the "chat_id" field.
func ChatIDIn ¶
func ChatIDIn(vs ...int64) predicate.ChatHistory
ChatIDIn applies the In predicate on the "chat_id" field.
func ChatIDLT ¶
func ChatIDLT(v int64) predicate.ChatHistory
ChatIDLT applies the LT predicate on the "chat_id" field.
func ChatIDLTE ¶
func ChatIDLTE(v int64) predicate.ChatHistory
ChatIDLTE applies the LTE predicate on the "chat_id" field.
func ChatIDNEQ ¶
func ChatIDNEQ(v int64) predicate.ChatHistory
ChatIDNEQ applies the NEQ predicate on the "chat_id" field.
func ChatIDNotIn ¶
func ChatIDNotIn(vs ...int64) predicate.ChatHistory
ChatIDNotIn applies the NotIn predicate on the "chat_id" field.
func Content ¶
func Content(v string) predicate.ChatHistory
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.ChatHistory
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.ChatHistory
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.ChatHistory
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.ChatHistory
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.ChatHistory
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.ChatHistory
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.ChatHistory
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.ChatHistory
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.ChatHistory
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.ChatHistory
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.ChatHistory
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.ChatHistory
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.ChatHistory
ContentNotIn applies the NotIn predicate on the "content" field.
func IDGTE ¶
func IDGTE(id int) predicate.ChatHistory
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ChatHistory
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ChatHistory
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ChatHistory
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ChatHistory
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ChatHistory) predicate.ChatHistory
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ChatHistory) predicate.ChatHistory
Or groups predicates with the OR operator between them.
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 ChatHistory queries.
func ByChatID ¶
func ByChatID(opts ...sql.OrderTermOption) OrderOption
ByChatID orders the results by the chat_id field.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.