Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GPTDialog) predicate.GPTDialog
- func CreatedAt(v time.Time) predicate.GPTDialog
- func CreatedAtEQ(v time.Time) predicate.GPTDialog
- func CreatedAtGT(v time.Time) predicate.GPTDialog
- func CreatedAtGTE(v time.Time) predicate.GPTDialog
- func CreatedAtIn(vs ...time.Time) predicate.GPTDialog
- func CreatedAtLT(v time.Time) predicate.GPTDialog
- func CreatedAtLTE(v time.Time) predicate.GPTDialog
- func CreatedAtNEQ(v time.Time) predicate.GPTDialog
- func CreatedAtNotIn(vs ...time.Time) predicate.GPTDialog
- func GptMsg(v string) predicate.GPTDialog
- func GptMsgContains(v string) predicate.GPTDialog
- func GptMsgContainsFold(v string) predicate.GPTDialog
- func GptMsgEQ(v string) predicate.GPTDialog
- func GptMsgEqualFold(v string) predicate.GPTDialog
- func GptMsgGT(v string) predicate.GPTDialog
- func GptMsgGTE(v string) predicate.GPTDialog
- func GptMsgHasPrefix(v string) predicate.GPTDialog
- func GptMsgHasSuffix(v string) predicate.GPTDialog
- func GptMsgID(v int) predicate.GPTDialog
- func GptMsgIDEQ(v int) predicate.GPTDialog
- func GptMsgIDGT(v int) predicate.GPTDialog
- func GptMsgIDGTE(v int) predicate.GPTDialog
- func GptMsgIDIn(vs ...int) predicate.GPTDialog
- func GptMsgIDLT(v int) predicate.GPTDialog
- func GptMsgIDLTE(v int) predicate.GPTDialog
- func GptMsgIDNEQ(v int) predicate.GPTDialog
- func GptMsgIDNotIn(vs ...int) predicate.GPTDialog
- func GptMsgIn(vs ...string) predicate.GPTDialog
- func GptMsgLT(v string) predicate.GPTDialog
- func GptMsgLTE(v string) predicate.GPTDialog
- func GptMsgNEQ(v string) predicate.GPTDialog
- func GptMsgNotIn(vs ...string) predicate.GPTDialog
- func ID(id int) predicate.GPTDialog
- func IDEQ(id int) predicate.GPTDialog
- func IDGT(id int) predicate.GPTDialog
- func IDGTE(id int) predicate.GPTDialog
- func IDIn(ids ...int) predicate.GPTDialog
- func IDLT(id int) predicate.GPTDialog
- func IDLTE(id int) predicate.GPTDialog
- func IDNEQ(id int) predicate.GPTDialog
- func IDNotIn(ids ...int) predicate.GPTDialog
- func Not(p predicate.GPTDialog) predicate.GPTDialog
- func Or(predicates ...predicate.GPTDialog) predicate.GPTDialog
- func PeerID(v string) predicate.GPTDialog
- func PeerIDContains(v string) predicate.GPTDialog
- func PeerIDContainsFold(v string) predicate.GPTDialog
- func PeerIDEQ(v string) predicate.GPTDialog
- func PeerIDEqualFold(v string) predicate.GPTDialog
- func PeerIDGT(v string) predicate.GPTDialog
- func PeerIDGTE(v string) predicate.GPTDialog
- func PeerIDHasPrefix(v string) predicate.GPTDialog
- func PeerIDHasSuffix(v string) predicate.GPTDialog
- func PeerIDIn(vs ...string) predicate.GPTDialog
- func PeerIDLT(v string) predicate.GPTDialog
- func PeerIDLTE(v string) predicate.GPTDialog
- func PeerIDNEQ(v string) predicate.GPTDialog
- func PeerIDNotIn(vs ...string) predicate.GPTDialog
- func PromptMsg(v string) predicate.GPTDialog
- func PromptMsgContains(v string) predicate.GPTDialog
- func PromptMsgContainsFold(v string) predicate.GPTDialog
- func PromptMsgEQ(v string) predicate.GPTDialog
- func PromptMsgEqualFold(v string) predicate.GPTDialog
- func PromptMsgGT(v string) predicate.GPTDialog
- func PromptMsgGTE(v string) predicate.GPTDialog
- func PromptMsgHasPrefix(v string) predicate.GPTDialog
- func PromptMsgHasSuffix(v string) predicate.GPTDialog
- func PromptMsgID(v int) predicate.GPTDialog
- func PromptMsgIDEQ(v int) predicate.GPTDialog
- func PromptMsgIDGT(v int) predicate.GPTDialog
- func PromptMsgIDGTE(v int) predicate.GPTDialog
- func PromptMsgIDIn(vs ...int) predicate.GPTDialog
- func PromptMsgIDLT(v int) predicate.GPTDialog
- func PromptMsgIDLTE(v int) predicate.GPTDialog
- func PromptMsgIDNEQ(v int) predicate.GPTDialog
- func PromptMsgIDNotIn(vs ...int) predicate.GPTDialog
- func PromptMsgIn(vs ...string) predicate.GPTDialog
- func PromptMsgLT(v string) predicate.GPTDialog
- func PromptMsgLTE(v string) predicate.GPTDialog
- func PromptMsgNEQ(v string) predicate.GPTDialog
- func PromptMsgNotIn(vs ...string) predicate.GPTDialog
- func ThreadTopMsgID(v int) predicate.GPTDialog
- func ThreadTopMsgIDEQ(v int) predicate.GPTDialog
- func ThreadTopMsgIDGT(v int) predicate.GPTDialog
- func ThreadTopMsgIDGTE(v int) predicate.GPTDialog
- func ThreadTopMsgIDIn(vs ...int) predicate.GPTDialog
- func ThreadTopMsgIDIsNil() predicate.GPTDialog
- func ThreadTopMsgIDLT(v int) predicate.GPTDialog
- func ThreadTopMsgIDLTE(v int) predicate.GPTDialog
- func ThreadTopMsgIDNEQ(v int) predicate.GPTDialog
- func ThreadTopMsgIDNotIn(vs ...int) predicate.GPTDialog
- func ThreadTopMsgIDNotNil() predicate.GPTDialog
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGptMsg(opts ...sql.OrderTermOption) OrderOption
- func ByGptMsgID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPeerID(opts ...sql.OrderTermOption) OrderOption
- func ByPromptMsg(opts ...sql.OrderTermOption) OrderOption
- func ByPromptMsgID(opts ...sql.OrderTermOption) OrderOption
- func ByThreadTopMsgID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the gptdialog type in the database. Label = "gpt_dialog" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPeerID holds the string denoting the peer_id field in the database. FieldPeerID = "peer_id" // FieldPromptMsgID holds the string denoting the prompt_msg_id field in the database. FieldPromptMsgID = "prompt_msg_id" // FieldPromptMsg holds the string denoting the prompt_msg field in the database. FieldPromptMsg = "prompt_msg" // FieldGptMsgID holds the string denoting the gpt_msg_id field in the database. FieldGptMsgID = "gpt_msg_id" // FieldGptMsg holds the string denoting the gpt_msg field in the database. FieldGptMsg = "gpt_msg" // FieldThreadTopMsgID holds the string denoting the thread_top_msg_id field in the database. FieldThreadTopMsgID = "thread_top_msg_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the gptdialog in the database. Table = "gpt_dialogs" )
Variables ¶
var Columns = []string{ FieldID, FieldPeerID, FieldPromptMsgID, FieldPromptMsg, FieldGptMsgID, FieldGptMsg, FieldThreadTopMsgID, FieldCreatedAt, }
Columns holds all SQL columns for gptdialog fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
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 GptMsg ¶
GptMsg applies equality check predicate on the "gpt_msg" field. It's identical to GptMsgEQ.
func GptMsgContains ¶
GptMsgContains applies the Contains predicate on the "gpt_msg" field.
func GptMsgContainsFold ¶
GptMsgContainsFold applies the ContainsFold predicate on the "gpt_msg" field.
func GptMsgEqualFold ¶
GptMsgEqualFold applies the EqualFold predicate on the "gpt_msg" field.
func GptMsgHasPrefix ¶
GptMsgHasPrefix applies the HasPrefix predicate on the "gpt_msg" field.
func GptMsgHasSuffix ¶
GptMsgHasSuffix applies the HasSuffix predicate on the "gpt_msg" field.
func GptMsgID ¶
GptMsgID applies equality check predicate on the "gpt_msg_id" field. It's identical to GptMsgIDEQ.
func GptMsgIDEQ ¶
GptMsgIDEQ applies the EQ predicate on the "gpt_msg_id" field.
func GptMsgIDGT ¶
GptMsgIDGT applies the GT predicate on the "gpt_msg_id" field.
func GptMsgIDGTE ¶
GptMsgIDGTE applies the GTE predicate on the "gpt_msg_id" field.
func GptMsgIDIn ¶
GptMsgIDIn applies the In predicate on the "gpt_msg_id" field.
func GptMsgIDLT ¶
GptMsgIDLT applies the LT predicate on the "gpt_msg_id" field.
func GptMsgIDLTE ¶
GptMsgIDLTE applies the LTE predicate on the "gpt_msg_id" field.
func GptMsgIDNEQ ¶
GptMsgIDNEQ applies the NEQ predicate on the "gpt_msg_id" field.
func GptMsgIDNotIn ¶
GptMsgIDNotIn applies the NotIn predicate on the "gpt_msg_id" field.
func GptMsgNotIn ¶
GptMsgNotIn applies the NotIn predicate on the "gpt_msg" field.
func PeerID ¶
PeerID applies equality check predicate on the "peer_id" field. It's identical to PeerIDEQ.
func PeerIDContains ¶
PeerIDContains applies the Contains predicate on the "peer_id" field.
func PeerIDContainsFold ¶
PeerIDContainsFold applies the ContainsFold predicate on the "peer_id" field.
func PeerIDEqualFold ¶
PeerIDEqualFold applies the EqualFold predicate on the "peer_id" field.
func PeerIDHasPrefix ¶
PeerIDHasPrefix applies the HasPrefix predicate on the "peer_id" field.
func PeerIDHasSuffix ¶
PeerIDHasSuffix applies the HasSuffix predicate on the "peer_id" field.
func PeerIDNotIn ¶
PeerIDNotIn applies the NotIn predicate on the "peer_id" field.
func PromptMsg ¶
PromptMsg applies equality check predicate on the "prompt_msg" field. It's identical to PromptMsgEQ.
func PromptMsgContains ¶
PromptMsgContains applies the Contains predicate on the "prompt_msg" field.
func PromptMsgContainsFold ¶
PromptMsgContainsFold applies the ContainsFold predicate on the "prompt_msg" field.
func PromptMsgEQ ¶
PromptMsgEQ applies the EQ predicate on the "prompt_msg" field.
func PromptMsgEqualFold ¶
PromptMsgEqualFold applies the EqualFold predicate on the "prompt_msg" field.
func PromptMsgGT ¶
PromptMsgGT applies the GT predicate on the "prompt_msg" field.
func PromptMsgGTE ¶
PromptMsgGTE applies the GTE predicate on the "prompt_msg" field.
func PromptMsgHasPrefix ¶
PromptMsgHasPrefix applies the HasPrefix predicate on the "prompt_msg" field.
func PromptMsgHasSuffix ¶
PromptMsgHasSuffix applies the HasSuffix predicate on the "prompt_msg" field.
func PromptMsgID ¶
PromptMsgID applies equality check predicate on the "prompt_msg_id" field. It's identical to PromptMsgIDEQ.
func PromptMsgIDEQ ¶
PromptMsgIDEQ applies the EQ predicate on the "prompt_msg_id" field.
func PromptMsgIDGT ¶
PromptMsgIDGT applies the GT predicate on the "prompt_msg_id" field.
func PromptMsgIDGTE ¶
PromptMsgIDGTE applies the GTE predicate on the "prompt_msg_id" field.
func PromptMsgIDIn ¶
PromptMsgIDIn applies the In predicate on the "prompt_msg_id" field.
func PromptMsgIDLT ¶
PromptMsgIDLT applies the LT predicate on the "prompt_msg_id" field.
func PromptMsgIDLTE ¶
PromptMsgIDLTE applies the LTE predicate on the "prompt_msg_id" field.
func PromptMsgIDNEQ ¶
PromptMsgIDNEQ applies the NEQ predicate on the "prompt_msg_id" field.
func PromptMsgIDNotIn ¶
PromptMsgIDNotIn applies the NotIn predicate on the "prompt_msg_id" field.
func PromptMsgIn ¶
PromptMsgIn applies the In predicate on the "prompt_msg" field.
func PromptMsgLT ¶
PromptMsgLT applies the LT predicate on the "prompt_msg" field.
func PromptMsgLTE ¶
PromptMsgLTE applies the LTE predicate on the "prompt_msg" field.
func PromptMsgNEQ ¶
PromptMsgNEQ applies the NEQ predicate on the "prompt_msg" field.
func PromptMsgNotIn ¶
PromptMsgNotIn applies the NotIn predicate on the "prompt_msg" field.
func ThreadTopMsgID ¶
ThreadTopMsgID applies equality check predicate on the "thread_top_msg_id" field. It's identical to ThreadTopMsgIDEQ.
func ThreadTopMsgIDEQ ¶
ThreadTopMsgIDEQ applies the EQ predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDGT ¶
ThreadTopMsgIDGT applies the GT predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDGTE ¶
ThreadTopMsgIDGTE applies the GTE predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDIn ¶
ThreadTopMsgIDIn applies the In predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDIsNil ¶
ThreadTopMsgIDIsNil applies the IsNil predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDLT ¶
ThreadTopMsgIDLT applies the LT predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDLTE ¶
ThreadTopMsgIDLTE applies the LTE predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDNEQ ¶
ThreadTopMsgIDNEQ applies the NEQ predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDNotIn ¶
ThreadTopMsgIDNotIn applies the NotIn predicate on the "thread_top_msg_id" field.
func ThreadTopMsgIDNotNil ¶
ThreadTopMsgIDNotNil applies the NotNil predicate on the "thread_top_msg_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 GPTDialog queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGptMsg ¶
func ByGptMsg(opts ...sql.OrderTermOption) OrderOption
ByGptMsg orders the results by the gpt_msg field.
func ByGptMsgID ¶
func ByGptMsgID(opts ...sql.OrderTermOption) OrderOption
ByGptMsgID orders the results by the gpt_msg_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPeerID ¶
func ByPeerID(opts ...sql.OrderTermOption) OrderOption
ByPeerID orders the results by the peer_id field.
func ByPromptMsg ¶
func ByPromptMsg(opts ...sql.OrderTermOption) OrderOption
ByPromptMsg orders the results by the prompt_msg field.
func ByPromptMsgID ¶
func ByPromptMsgID(opts ...sql.OrderTermOption) OrderOption
ByPromptMsgID orders the results by the prompt_msg_id field.
func ByThreadTopMsgID ¶
func ByThreadTopMsgID(opts ...sql.OrderTermOption) OrderOption
ByThreadTopMsgID orders the results by the thread_top_msg_id field.