gptdialog

package
v0.0.0-...-5feaf8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for gptdialog fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

func And(predicates ...predicate.GPTDialog) predicate.GPTDialog

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.GPTDialog

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.GPTDialog

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.GPTDialog

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.GPTDialog

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.GPTDialog

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.GPTDialog

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.GPTDialog

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.GPTDialog

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.GPTDialog

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func GptMsg

func GptMsg(v string) predicate.GPTDialog

GptMsg applies equality check predicate on the "gpt_msg" field. It's identical to GptMsgEQ.

func GptMsgContains

func GptMsgContains(v string) predicate.GPTDialog

GptMsgContains applies the Contains predicate on the "gpt_msg" field.

func GptMsgContainsFold

func GptMsgContainsFold(v string) predicate.GPTDialog

GptMsgContainsFold applies the ContainsFold predicate on the "gpt_msg" field.

func GptMsgEQ

func GptMsgEQ(v string) predicate.GPTDialog

GptMsgEQ applies the EQ predicate on the "gpt_msg" field.

func GptMsgEqualFold

func GptMsgEqualFold(v string) predicate.GPTDialog

GptMsgEqualFold applies the EqualFold predicate on the "gpt_msg" field.

func GptMsgGT

func GptMsgGT(v string) predicate.GPTDialog

GptMsgGT applies the GT predicate on the "gpt_msg" field.

func GptMsgGTE

func GptMsgGTE(v string) predicate.GPTDialog

GptMsgGTE applies the GTE predicate on the "gpt_msg" field.

func GptMsgHasPrefix

func GptMsgHasPrefix(v string) predicate.GPTDialog

GptMsgHasPrefix applies the HasPrefix predicate on the "gpt_msg" field.

func GptMsgHasSuffix

func GptMsgHasSuffix(v string) predicate.GPTDialog

GptMsgHasSuffix applies the HasSuffix predicate on the "gpt_msg" field.

func GptMsgID

func GptMsgID(v int) predicate.GPTDialog

GptMsgID applies equality check predicate on the "gpt_msg_id" field. It's identical to GptMsgIDEQ.

func GptMsgIDEQ

func GptMsgIDEQ(v int) predicate.GPTDialog

GptMsgIDEQ applies the EQ predicate on the "gpt_msg_id" field.

func GptMsgIDGT

func GptMsgIDGT(v int) predicate.GPTDialog

GptMsgIDGT applies the GT predicate on the "gpt_msg_id" field.

func GptMsgIDGTE

func GptMsgIDGTE(v int) predicate.GPTDialog

GptMsgIDGTE applies the GTE predicate on the "gpt_msg_id" field.

func GptMsgIDIn

func GptMsgIDIn(vs ...int) predicate.GPTDialog

GptMsgIDIn applies the In predicate on the "gpt_msg_id" field.

func GptMsgIDLT

func GptMsgIDLT(v int) predicate.GPTDialog

GptMsgIDLT applies the LT predicate on the "gpt_msg_id" field.

func GptMsgIDLTE

func GptMsgIDLTE(v int) predicate.GPTDialog

GptMsgIDLTE applies the LTE predicate on the "gpt_msg_id" field.

func GptMsgIDNEQ

func GptMsgIDNEQ(v int) predicate.GPTDialog

GptMsgIDNEQ applies the NEQ predicate on the "gpt_msg_id" field.

func GptMsgIDNotIn

func GptMsgIDNotIn(vs ...int) predicate.GPTDialog

GptMsgIDNotIn applies the NotIn predicate on the "gpt_msg_id" field.

func GptMsgIn

func GptMsgIn(vs ...string) predicate.GPTDialog

GptMsgIn applies the In predicate on the "gpt_msg" field.

func GptMsgLT

func GptMsgLT(v string) predicate.GPTDialog

GptMsgLT applies the LT predicate on the "gpt_msg" field.

func GptMsgLTE

func GptMsgLTE(v string) predicate.GPTDialog

GptMsgLTE applies the LTE predicate on the "gpt_msg" field.

func GptMsgNEQ

func GptMsgNEQ(v string) predicate.GPTDialog

GptMsgNEQ applies the NEQ predicate on the "gpt_msg" field.

func GptMsgNotIn

func GptMsgNotIn(vs ...string) predicate.GPTDialog

GptMsgNotIn applies the NotIn predicate on the "gpt_msg" field.

func ID

func ID(id int) predicate.GPTDialog

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.GPTDialog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.GPTDialog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.GPTDialog

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.GPTDialog

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.GPTDialog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.GPTDialog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.GPTDialog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.GPTDialog

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.GPTDialog) predicate.GPTDialog

Or groups predicates with the OR operator between them.

func PeerID

func PeerID(v string) predicate.GPTDialog

PeerID applies equality check predicate on the "peer_id" field. It's identical to PeerIDEQ.

func PeerIDContains

func PeerIDContains(v string) predicate.GPTDialog

PeerIDContains applies the Contains predicate on the "peer_id" field.

func PeerIDContainsFold

func PeerIDContainsFold(v string) predicate.GPTDialog

PeerIDContainsFold applies the ContainsFold predicate on the "peer_id" field.

func PeerIDEQ

func PeerIDEQ(v string) predicate.GPTDialog

PeerIDEQ applies the EQ predicate on the "peer_id" field.

func PeerIDEqualFold

func PeerIDEqualFold(v string) predicate.GPTDialog

PeerIDEqualFold applies the EqualFold predicate on the "peer_id" field.

func PeerIDGT

func PeerIDGT(v string) predicate.GPTDialog

PeerIDGT applies the GT predicate on the "peer_id" field.

func PeerIDGTE

func PeerIDGTE(v string) predicate.GPTDialog

PeerIDGTE applies the GTE predicate on the "peer_id" field.

func PeerIDHasPrefix

func PeerIDHasPrefix(v string) predicate.GPTDialog

PeerIDHasPrefix applies the HasPrefix predicate on the "peer_id" field.

func PeerIDHasSuffix

func PeerIDHasSuffix(v string) predicate.GPTDialog

PeerIDHasSuffix applies the HasSuffix predicate on the "peer_id" field.

func PeerIDIn

func PeerIDIn(vs ...string) predicate.GPTDialog

PeerIDIn applies the In predicate on the "peer_id" field.

func PeerIDLT

func PeerIDLT(v string) predicate.GPTDialog

PeerIDLT applies the LT predicate on the "peer_id" field.

func PeerIDLTE

func PeerIDLTE(v string) predicate.GPTDialog

PeerIDLTE applies the LTE predicate on the "peer_id" field.

func PeerIDNEQ

func PeerIDNEQ(v string) predicate.GPTDialog

PeerIDNEQ applies the NEQ predicate on the "peer_id" field.

func PeerIDNotIn

func PeerIDNotIn(vs ...string) predicate.GPTDialog

PeerIDNotIn applies the NotIn predicate on the "peer_id" field.

func PromptMsg

func PromptMsg(v string) predicate.GPTDialog

PromptMsg applies equality check predicate on the "prompt_msg" field. It's identical to PromptMsgEQ.

func PromptMsgContains

func PromptMsgContains(v string) predicate.GPTDialog

PromptMsgContains applies the Contains predicate on the "prompt_msg" field.

func PromptMsgContainsFold

func PromptMsgContainsFold(v string) predicate.GPTDialog

PromptMsgContainsFold applies the ContainsFold predicate on the "prompt_msg" field.

func PromptMsgEQ

func PromptMsgEQ(v string) predicate.GPTDialog

PromptMsgEQ applies the EQ predicate on the "prompt_msg" field.

func PromptMsgEqualFold

func PromptMsgEqualFold(v string) predicate.GPTDialog

PromptMsgEqualFold applies the EqualFold predicate on the "prompt_msg" field.

func PromptMsgGT

func PromptMsgGT(v string) predicate.GPTDialog

PromptMsgGT applies the GT predicate on the "prompt_msg" field.

func PromptMsgGTE

func PromptMsgGTE(v string) predicate.GPTDialog

PromptMsgGTE applies the GTE predicate on the "prompt_msg" field.

func PromptMsgHasPrefix

func PromptMsgHasPrefix(v string) predicate.GPTDialog

PromptMsgHasPrefix applies the HasPrefix predicate on the "prompt_msg" field.

func PromptMsgHasSuffix

func PromptMsgHasSuffix(v string) predicate.GPTDialog

PromptMsgHasSuffix applies the HasSuffix predicate on the "prompt_msg" field.

func PromptMsgID

func PromptMsgID(v int) predicate.GPTDialog

PromptMsgID applies equality check predicate on the "prompt_msg_id" field. It's identical to PromptMsgIDEQ.

func PromptMsgIDEQ

func PromptMsgIDEQ(v int) predicate.GPTDialog

PromptMsgIDEQ applies the EQ predicate on the "prompt_msg_id" field.

func PromptMsgIDGT

func PromptMsgIDGT(v int) predicate.GPTDialog

PromptMsgIDGT applies the GT predicate on the "prompt_msg_id" field.

func PromptMsgIDGTE

func PromptMsgIDGTE(v int) predicate.GPTDialog

PromptMsgIDGTE applies the GTE predicate on the "prompt_msg_id" field.

func PromptMsgIDIn

func PromptMsgIDIn(vs ...int) predicate.GPTDialog

PromptMsgIDIn applies the In predicate on the "prompt_msg_id" field.

func PromptMsgIDLT

func PromptMsgIDLT(v int) predicate.GPTDialog

PromptMsgIDLT applies the LT predicate on the "prompt_msg_id" field.

func PromptMsgIDLTE

func PromptMsgIDLTE(v int) predicate.GPTDialog

PromptMsgIDLTE applies the LTE predicate on the "prompt_msg_id" field.

func PromptMsgIDNEQ

func PromptMsgIDNEQ(v int) predicate.GPTDialog

PromptMsgIDNEQ applies the NEQ predicate on the "prompt_msg_id" field.

func PromptMsgIDNotIn

func PromptMsgIDNotIn(vs ...int) predicate.GPTDialog

PromptMsgIDNotIn applies the NotIn predicate on the "prompt_msg_id" field.

func PromptMsgIn

func PromptMsgIn(vs ...string) predicate.GPTDialog

PromptMsgIn applies the In predicate on the "prompt_msg" field.

func PromptMsgLT

func PromptMsgLT(v string) predicate.GPTDialog

PromptMsgLT applies the LT predicate on the "prompt_msg" field.

func PromptMsgLTE

func PromptMsgLTE(v string) predicate.GPTDialog

PromptMsgLTE applies the LTE predicate on the "prompt_msg" field.

func PromptMsgNEQ

func PromptMsgNEQ(v string) predicate.GPTDialog

PromptMsgNEQ applies the NEQ predicate on the "prompt_msg" field.

func PromptMsgNotIn

func PromptMsgNotIn(vs ...string) predicate.GPTDialog

PromptMsgNotIn applies the NotIn predicate on the "prompt_msg" field.

func ThreadTopMsgID

func ThreadTopMsgID(v int) predicate.GPTDialog

ThreadTopMsgID applies equality check predicate on the "thread_top_msg_id" field. It's identical to ThreadTopMsgIDEQ.

func ThreadTopMsgIDEQ

func ThreadTopMsgIDEQ(v int) predicate.GPTDialog

ThreadTopMsgIDEQ applies the EQ predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDGT

func ThreadTopMsgIDGT(v int) predicate.GPTDialog

ThreadTopMsgIDGT applies the GT predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDGTE

func ThreadTopMsgIDGTE(v int) predicate.GPTDialog

ThreadTopMsgIDGTE applies the GTE predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDIn

func ThreadTopMsgIDIn(vs ...int) predicate.GPTDialog

ThreadTopMsgIDIn applies the In predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDIsNil

func ThreadTopMsgIDIsNil() predicate.GPTDialog

ThreadTopMsgIDIsNil applies the IsNil predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDLT

func ThreadTopMsgIDLT(v int) predicate.GPTDialog

ThreadTopMsgIDLT applies the LT predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDLTE

func ThreadTopMsgIDLTE(v int) predicate.GPTDialog

ThreadTopMsgIDLTE applies the LTE predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDNEQ

func ThreadTopMsgIDNEQ(v int) predicate.GPTDialog

ThreadTopMsgIDNEQ applies the NEQ predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDNotIn

func ThreadTopMsgIDNotIn(vs ...int) predicate.GPTDialog

ThreadTopMsgIDNotIn applies the NotIn predicate on the "thread_top_msg_id" field.

func ThreadTopMsgIDNotNil

func ThreadTopMsgIDNotNil() predicate.GPTDialog

ThreadTopMsgIDNotNil applies the NotNil predicate on the "thread_top_msg_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL