chathistory

package
v0.0.0-...-b336c4c Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

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

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 ID

func ID(id int) predicate.ChatHistory

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.ChatHistory

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.ChatHistory

IDGT applies the GT predicate on the ID 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 IDLT

func IDLT(id int) predicate.ChatHistory

IDLT applies the LT 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

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

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 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.

Jump to

Keyboard shortcuts

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