ent

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Operation types.
	OpCreate    = ent.OpCreate
	OpDelete    = ent.OpDelete
	OpDeleteOne = ent.OpDeleteOne
	OpUpdate    = ent.OpUpdate
	OpUpdateOne = ent.OpUpdateOne

	// Node types.
	TypeChatHistories                        = "ChatHistories"
	TypeFeedbackChatHistoriesRecapsReactions = "FeedbackChatHistoriesRecapsReactions"
	TypeFeedbackSummarizationsReactions      = "FeedbackSummarizationsReactions"
	TypeLogChatHistoriesRecap                = "LogChatHistoriesRecap"
	TypeLogSummarizations                    = "LogSummarizations"
	TypeMetricOpenAIChatCompletionTokenUsage = "MetricOpenAIChatCompletionTokenUsage"
	TypeSlackOAuthCredentials                = "SlackOAuthCredentials"
	TypeTelegramChatAutoRecapsSubscribers    = "TelegramChatAutoRecapsSubscribers"
	TypeTelegramChatFeatureFlags             = "TelegramChatFeatureFlags"
	TypeTelegramChatRecapsOptions            = "TelegramChatRecapsOptions"
)

Variables

View Source
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")

ErrTxStarted is returned when trying to start a new transaction from a transactional client.

Functions

func Asc

func Asc(fields ...string) func(*sql.Selector)

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) func(*sql.Selector)

Desc applies the given fields in DESC order.

func IsConstraintError

func IsConstraintError(err error) bool

IsConstraintError returns a boolean indicating whether the error is a constraint failure.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is a not found error.

func IsNotLoaded

func IsNotLoaded(err error) bool

IsNotLoaded returns a boolean indicating whether the error is a not loaded error.

func IsNotSingular

func IsNotSingular(err error) bool

IsNotSingular returns a boolean indicating whether the error is a not singular error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns a boolean indicating whether the error is a validation error.

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

func NewContext(parent context.Context, c *Client) context.Context

NewContext returns a new context with the given Client attached.

func NewTxContext

func NewTxContext(parent context.Context, tx *Tx) context.Context

NewTxContext returns a new context with the given Tx attached.

Types

type AggregateFunc

type AggregateFunc func(*sql.Selector) string

AggregateFunc applies an aggregation step on the group-by traversal/selector.

func As

As is a pseudo aggregation function for renaming another other functions with custom names. For example:

GroupBy(field1, field2).
Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")).
Scan(ctx, &v)

func Count

func Count() AggregateFunc

Count applies the "count" aggregation function on each group.

func Max

func Max(field string) AggregateFunc

Max applies the "max" aggregation function on the given field of each group.

func Mean

func Mean(field string) AggregateFunc

Mean applies the "mean" aggregation function on the given field of each group.

func Min

func Min(field string) AggregateFunc

Min applies the "min" aggregation function on the given field of each group.

func Sum

func Sum(field string) AggregateFunc

Sum applies the "sum" aggregation function on the given field of each group.

type ChatHistories

type ChatHistories struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// ChatID holds the value of the "chat_id" field.
	ChatID int64 `json:"chat_id,omitempty"`
	// ChatTitle holds the value of the "chat_title" field.
	ChatTitle string `json:"chat_title,omitempty"`
	// ChatType holds the value of the "chat_type" field.
	ChatType string `json:"chat_type,omitempty"`
	// MessageID holds the value of the "message_id" field.
	MessageID int64 `json:"message_id,omitempty"`
	// UserID holds the value of the "user_id" field.
	UserID int64 `json:"user_id,omitempty"`
	// Username holds the value of the "username" field.
	Username string `json:"username,omitempty"`
	// FullName holds the value of the "full_name" field.
	FullName string `json:"full_name,omitempty"`
	// Text holds the value of the "text" field.
	Text string `json:"text,omitempty"`
	// RepliedToMessageID holds the value of the "replied_to_message_id" field.
	RepliedToMessageID int64 `json:"replied_to_message_id,omitempty"`
	// RepliedToUserID holds the value of the "replied_to_user_id" field.
	RepliedToUserID int64 `json:"replied_to_user_id,omitempty"`
	// RepliedToFullName holds the value of the "replied_to_full_name" field.
	RepliedToFullName string `json:"replied_to_full_name,omitempty"`
	// RepliedToUsername holds the value of the "replied_to_username" field.
	RepliedToUsername string `json:"replied_to_username,omitempty"`
	// RepliedToText holds the value of the "replied_to_text" field.
	RepliedToText string `json:"replied_to_text,omitempty"`
	// RepliedToChatType holds the value of the "replied_to_chat_type" field.
	RepliedToChatType string `json:"replied_to_chat_type,omitempty"`
	// ChattedAt holds the value of the "chatted_at" field.
	ChattedAt int64 `json:"chatted_at,omitempty"`
	// Embedded holds the value of the "embedded" field.
	Embedded bool `json:"embedded,omitempty"`
	// FromPlatform holds the value of the "from_platform" field.
	FromPlatform int `json:"from_platform,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

ChatHistories is the model entity for the ChatHistories schema.

func (*ChatHistories) String

func (ch *ChatHistories) String() string

String implements the fmt.Stringer.

func (*ChatHistories) Unwrap

func (ch *ChatHistories) Unwrap() *ChatHistories

Unwrap unwraps the ChatHistories entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ChatHistories) Update

func (ch *ChatHistories) Update() *ChatHistoriesUpdateOne

Update returns a builder for updating this ChatHistories. Note that you need to call ChatHistories.Unwrap() before calling this method if this ChatHistories was returned from a transaction, and the transaction was committed or rolled back.

func (*ChatHistories) Value

func (ch *ChatHistories) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ChatHistories. This includes values selected through modifiers, order, etc.

type ChatHistoriesClient

type ChatHistoriesClient struct {
	// contains filtered or unexported fields
}

ChatHistoriesClient is a client for the ChatHistories schema.

func NewChatHistoriesClient

func NewChatHistoriesClient(c config) *ChatHistoriesClient

NewChatHistoriesClient returns a client for the ChatHistories from the given config.

func (*ChatHistoriesClient) Create

Create returns a builder for creating a ChatHistories entity.

func (*ChatHistoriesClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ChatHistories entities.

func (*ChatHistoriesClient) Delete

Delete returns a delete builder for ChatHistories.

func (*ChatHistoriesClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*ChatHistoriesClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ChatHistoriesClient) Get

Get returns a ChatHistories entity by its id.

func (*ChatHistoriesClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ChatHistoriesClient) Hooks

func (c *ChatHistoriesClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ChatHistoriesClient) Intercept

func (c *ChatHistoriesClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `chathistories.Intercept(f(g(h())))`.

func (*ChatHistoriesClient) Interceptors

func (c *ChatHistoriesClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ChatHistoriesClient) MapCreateBulk added in v0.22.0

func (c *ChatHistoriesClient) MapCreateBulk(slice any, setFunc func(*ChatHistoriesCreate, int)) *ChatHistoriesCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ChatHistoriesClient) Query

Query returns a query builder for ChatHistories.

func (*ChatHistoriesClient) Update

Update returns an update builder for ChatHistories.

func (*ChatHistoriesClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ChatHistoriesClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*ChatHistoriesClient) Use

func (c *ChatHistoriesClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `chathistories.Hooks(f(g(h())))`.

type ChatHistoriesCreate

type ChatHistoriesCreate struct {
	// contains filtered or unexported fields
}

ChatHistoriesCreate is the builder for creating a ChatHistories entity.

func (*ChatHistoriesCreate) Exec

func (chc *ChatHistoriesCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ChatHistoriesCreate) ExecX

func (chc *ChatHistoriesCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ChatHistoriesCreate) Mutation

func (chc *ChatHistoriesCreate) Mutation() *ChatHistoriesMutation

Mutation returns the ChatHistoriesMutation object of the builder.

func (*ChatHistoriesCreate) Save

Save creates the ChatHistories in the database.

func (*ChatHistoriesCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ChatHistoriesCreate) SetChatID

func (chc *ChatHistoriesCreate) SetChatID(i int64) *ChatHistoriesCreate

SetChatID sets the "chat_id" field.

func (*ChatHistoriesCreate) SetChatTitle

func (chc *ChatHistoriesCreate) SetChatTitle(s string) *ChatHistoriesCreate

SetChatTitle sets the "chat_title" field.

func (*ChatHistoriesCreate) SetChatType added in v0.14.0

func (chc *ChatHistoriesCreate) SetChatType(s string) *ChatHistoriesCreate

SetChatType sets the "chat_type" field.

func (*ChatHistoriesCreate) SetChattedAt

func (chc *ChatHistoriesCreate) SetChattedAt(i int64) *ChatHistoriesCreate

SetChattedAt sets the "chatted_at" field.

func (*ChatHistoriesCreate) SetCreatedAt

func (chc *ChatHistoriesCreate) SetCreatedAt(i int64) *ChatHistoriesCreate

SetCreatedAt sets the "created_at" field.

func (*ChatHistoriesCreate) SetEmbedded

func (chc *ChatHistoriesCreate) SetEmbedded(b bool) *ChatHistoriesCreate

SetEmbedded sets the "embedded" field.

func (*ChatHistoriesCreate) SetFromPlatform

func (chc *ChatHistoriesCreate) SetFromPlatform(i int) *ChatHistoriesCreate

SetFromPlatform sets the "from_platform" field.

func (*ChatHistoriesCreate) SetFullName

func (chc *ChatHistoriesCreate) SetFullName(s string) *ChatHistoriesCreate

SetFullName sets the "full_name" field.

func (*ChatHistoriesCreate) SetID

SetID sets the "id" field.

func (*ChatHistoriesCreate) SetMessageID

func (chc *ChatHistoriesCreate) SetMessageID(i int64) *ChatHistoriesCreate

SetMessageID sets the "message_id" field.

func (*ChatHistoriesCreate) SetNillableChatID

func (chc *ChatHistoriesCreate) SetNillableChatID(i *int64) *ChatHistoriesCreate

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableChatTitle

func (chc *ChatHistoriesCreate) SetNillableChatTitle(s *string) *ChatHistoriesCreate

SetNillableChatTitle sets the "chat_title" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableChatType added in v0.14.0

func (chc *ChatHistoriesCreate) SetNillableChatType(s *string) *ChatHistoriesCreate

SetNillableChatType sets the "chat_type" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableChattedAt

func (chc *ChatHistoriesCreate) SetNillableChattedAt(i *int64) *ChatHistoriesCreate

SetNillableChattedAt sets the "chatted_at" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableCreatedAt

func (chc *ChatHistoriesCreate) SetNillableCreatedAt(i *int64) *ChatHistoriesCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableEmbedded

func (chc *ChatHistoriesCreate) SetNillableEmbedded(b *bool) *ChatHistoriesCreate

SetNillableEmbedded sets the "embedded" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableFromPlatform

func (chc *ChatHistoriesCreate) SetNillableFromPlatform(i *int) *ChatHistoriesCreate

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableFullName

func (chc *ChatHistoriesCreate) SetNillableFullName(s *string) *ChatHistoriesCreate

SetNillableFullName sets the "full_name" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableID

func (chc *ChatHistoriesCreate) SetNillableID(u *uuid.UUID) *ChatHistoriesCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableMessageID

func (chc *ChatHistoriesCreate) SetNillableMessageID(i *int64) *ChatHistoriesCreate

SetNillableMessageID sets the "message_id" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableRepliedToChatType added in v0.14.0

func (chc *ChatHistoriesCreate) SetNillableRepliedToChatType(s *string) *ChatHistoriesCreate

SetNillableRepliedToChatType sets the "replied_to_chat_type" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableRepliedToFullName

func (chc *ChatHistoriesCreate) SetNillableRepliedToFullName(s *string) *ChatHistoriesCreate

SetNillableRepliedToFullName sets the "replied_to_full_name" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableRepliedToMessageID

func (chc *ChatHistoriesCreate) SetNillableRepliedToMessageID(i *int64) *ChatHistoriesCreate

SetNillableRepliedToMessageID sets the "replied_to_message_id" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableRepliedToText

func (chc *ChatHistoriesCreate) SetNillableRepliedToText(s *string) *ChatHistoriesCreate

SetNillableRepliedToText sets the "replied_to_text" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableRepliedToUserID

func (chc *ChatHistoriesCreate) SetNillableRepliedToUserID(i *int64) *ChatHistoriesCreate

SetNillableRepliedToUserID sets the "replied_to_user_id" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableRepliedToUsername

func (chc *ChatHistoriesCreate) SetNillableRepliedToUsername(s *string) *ChatHistoriesCreate

SetNillableRepliedToUsername sets the "replied_to_username" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableText

func (chc *ChatHistoriesCreate) SetNillableText(s *string) *ChatHistoriesCreate

SetNillableText sets the "text" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableUpdatedAt

func (chc *ChatHistoriesCreate) SetNillableUpdatedAt(i *int64) *ChatHistoriesCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableUserID

func (chc *ChatHistoriesCreate) SetNillableUserID(i *int64) *ChatHistoriesCreate

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*ChatHistoriesCreate) SetNillableUsername

func (chc *ChatHistoriesCreate) SetNillableUsername(s *string) *ChatHistoriesCreate

SetNillableUsername sets the "username" field if the given value is not nil.

func (*ChatHistoriesCreate) SetRepliedToChatType added in v0.14.0

func (chc *ChatHistoriesCreate) SetRepliedToChatType(s string) *ChatHistoriesCreate

SetRepliedToChatType sets the "replied_to_chat_type" field.

func (*ChatHistoriesCreate) SetRepliedToFullName

func (chc *ChatHistoriesCreate) SetRepliedToFullName(s string) *ChatHistoriesCreate

SetRepliedToFullName sets the "replied_to_full_name" field.

func (*ChatHistoriesCreate) SetRepliedToMessageID

func (chc *ChatHistoriesCreate) SetRepliedToMessageID(i int64) *ChatHistoriesCreate

SetRepliedToMessageID sets the "replied_to_message_id" field.

func (*ChatHistoriesCreate) SetRepliedToText

func (chc *ChatHistoriesCreate) SetRepliedToText(s string) *ChatHistoriesCreate

SetRepliedToText sets the "replied_to_text" field.

func (*ChatHistoriesCreate) SetRepliedToUserID

func (chc *ChatHistoriesCreate) SetRepliedToUserID(i int64) *ChatHistoriesCreate

SetRepliedToUserID sets the "replied_to_user_id" field.

func (*ChatHistoriesCreate) SetRepliedToUsername

func (chc *ChatHistoriesCreate) SetRepliedToUsername(s string) *ChatHistoriesCreate

SetRepliedToUsername sets the "replied_to_username" field.

func (*ChatHistoriesCreate) SetText

SetText sets the "text" field.

func (*ChatHistoriesCreate) SetUpdatedAt

func (chc *ChatHistoriesCreate) SetUpdatedAt(i int64) *ChatHistoriesCreate

SetUpdatedAt sets the "updated_at" field.

func (*ChatHistoriesCreate) SetUserID

func (chc *ChatHistoriesCreate) SetUserID(i int64) *ChatHistoriesCreate

SetUserID sets the "user_id" field.

func (*ChatHistoriesCreate) SetUsername

func (chc *ChatHistoriesCreate) SetUsername(s string) *ChatHistoriesCreate

SetUsername sets the "username" field.

type ChatHistoriesCreateBulk

type ChatHistoriesCreateBulk struct {
	// contains filtered or unexported fields
}

ChatHistoriesCreateBulk is the builder for creating many ChatHistories entities in bulk.

func (*ChatHistoriesCreateBulk) Exec

func (chcb *ChatHistoriesCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ChatHistoriesCreateBulk) ExecX

func (chcb *ChatHistoriesCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ChatHistoriesCreateBulk) Save

Save creates the ChatHistories entities in the database.

func (*ChatHistoriesCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ChatHistoriesDelete

type ChatHistoriesDelete struct {
	// contains filtered or unexported fields
}

ChatHistoriesDelete is the builder for deleting a ChatHistories entity.

func (*ChatHistoriesDelete) Exec

func (chd *ChatHistoriesDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ChatHistoriesDelete) ExecX

func (chd *ChatHistoriesDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ChatHistoriesDelete) Where

Where appends a list predicates to the ChatHistoriesDelete builder.

type ChatHistoriesDeleteOne

type ChatHistoriesDeleteOne struct {
	// contains filtered or unexported fields
}

ChatHistoriesDeleteOne is the builder for deleting a single ChatHistories entity.

func (*ChatHistoriesDeleteOne) Exec

func (chdo *ChatHistoriesDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ChatHistoriesDeleteOne) ExecX

func (chdo *ChatHistoriesDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ChatHistoriesDeleteOne) Where

Where appends a list predicates to the ChatHistoriesDelete builder.

type ChatHistoriesGroupBy

type ChatHistoriesGroupBy struct {
	// contains filtered or unexported fields
}

ChatHistoriesGroupBy is the group-by builder for ChatHistories entities.

func (*ChatHistoriesGroupBy) Aggregate

func (chgb *ChatHistoriesGroupBy) Aggregate(fns ...AggregateFunc) *ChatHistoriesGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ChatHistoriesGroupBy) Bool

func (s *ChatHistoriesGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesGroupBy) BoolX

func (s *ChatHistoriesGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ChatHistoriesGroupBy) Bools

func (s *ChatHistoriesGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesGroupBy) BoolsX

func (s *ChatHistoriesGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ChatHistoriesGroupBy) Float64

func (s *ChatHistoriesGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesGroupBy) Float64X

func (s *ChatHistoriesGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ChatHistoriesGroupBy) Float64s

func (s *ChatHistoriesGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesGroupBy) Float64sX

func (s *ChatHistoriesGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ChatHistoriesGroupBy) Int

func (s *ChatHistoriesGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesGroupBy) IntX

func (s *ChatHistoriesGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ChatHistoriesGroupBy) Ints

func (s *ChatHistoriesGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesGroupBy) IntsX

func (s *ChatHistoriesGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ChatHistoriesGroupBy) Scan

func (chgb *ChatHistoriesGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ChatHistoriesGroupBy) ScanX

func (s *ChatHistoriesGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ChatHistoriesGroupBy) String

func (s *ChatHistoriesGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesGroupBy) StringX

func (s *ChatHistoriesGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ChatHistoriesGroupBy) Strings

func (s *ChatHistoriesGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesGroupBy) StringsX

func (s *ChatHistoriesGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ChatHistoriesMutation

type ChatHistoriesMutation struct {
	// contains filtered or unexported fields
}

ChatHistoriesMutation represents an operation that mutates the ChatHistories nodes in the graph.

func (*ChatHistoriesMutation) AddChatID

func (m *ChatHistoriesMutation) AddChatID(i int64)

AddChatID adds i to the "chat_id" field.

func (*ChatHistoriesMutation) AddChattedAt

func (m *ChatHistoriesMutation) AddChattedAt(i int64)

AddChattedAt adds i to the "chatted_at" field.

func (*ChatHistoriesMutation) AddCreatedAt

func (m *ChatHistoriesMutation) AddCreatedAt(i int64)

AddCreatedAt adds i to the "created_at" field.

func (*ChatHistoriesMutation) AddField

func (m *ChatHistoriesMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ChatHistoriesMutation) AddFromPlatform

func (m *ChatHistoriesMutation) AddFromPlatform(i int)

AddFromPlatform adds i to the "from_platform" field.

func (*ChatHistoriesMutation) AddMessageID

func (m *ChatHistoriesMutation) AddMessageID(i int64)

AddMessageID adds i to the "message_id" field.

func (*ChatHistoriesMutation) AddRepliedToMessageID

func (m *ChatHistoriesMutation) AddRepliedToMessageID(i int64)

AddRepliedToMessageID adds i to the "replied_to_message_id" field.

func (*ChatHistoriesMutation) AddRepliedToUserID

func (m *ChatHistoriesMutation) AddRepliedToUserID(i int64)

AddRepliedToUserID adds i to the "replied_to_user_id" field.

func (*ChatHistoriesMutation) AddUpdatedAt

func (m *ChatHistoriesMutation) AddUpdatedAt(i int64)

AddUpdatedAt adds i to the "updated_at" field.

func (*ChatHistoriesMutation) AddUserID

func (m *ChatHistoriesMutation) AddUserID(i int64)

AddUserID adds i to the "user_id" field.

func (*ChatHistoriesMutation) AddedChatID

func (m *ChatHistoriesMutation) AddedChatID() (r int64, exists bool)

AddedChatID returns the value that was added to the "chat_id" field in this mutation.

func (*ChatHistoriesMutation) AddedChattedAt

func (m *ChatHistoriesMutation) AddedChattedAt() (r int64, exists bool)

AddedChattedAt returns the value that was added to the "chatted_at" field in this mutation.

func (*ChatHistoriesMutation) AddedCreatedAt

func (m *ChatHistoriesMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*ChatHistoriesMutation) AddedEdges

func (m *ChatHistoriesMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ChatHistoriesMutation) AddedField

func (m *ChatHistoriesMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ChatHistoriesMutation) AddedFields

func (m *ChatHistoriesMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ChatHistoriesMutation) AddedFromPlatform

func (m *ChatHistoriesMutation) AddedFromPlatform() (r int, exists bool)

AddedFromPlatform returns the value that was added to the "from_platform" field in this mutation.

func (*ChatHistoriesMutation) AddedIDs

func (m *ChatHistoriesMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ChatHistoriesMutation) AddedMessageID

func (m *ChatHistoriesMutation) AddedMessageID() (r int64, exists bool)

AddedMessageID returns the value that was added to the "message_id" field in this mutation.

func (*ChatHistoriesMutation) AddedRepliedToMessageID

func (m *ChatHistoriesMutation) AddedRepliedToMessageID() (r int64, exists bool)

AddedRepliedToMessageID returns the value that was added to the "replied_to_message_id" field in this mutation.

func (*ChatHistoriesMutation) AddedRepliedToUserID

func (m *ChatHistoriesMutation) AddedRepliedToUserID() (r int64, exists bool)

AddedRepliedToUserID returns the value that was added to the "replied_to_user_id" field in this mutation.

func (*ChatHistoriesMutation) AddedUpdatedAt

func (m *ChatHistoriesMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*ChatHistoriesMutation) AddedUserID

func (m *ChatHistoriesMutation) AddedUserID() (r int64, exists bool)

AddedUserID returns the value that was added to the "user_id" field in this mutation.

func (*ChatHistoriesMutation) ChatID

func (m *ChatHistoriesMutation) ChatID() (r int64, exists bool)

ChatID returns the value of the "chat_id" field in the mutation.

func (*ChatHistoriesMutation) ChatTitle

func (m *ChatHistoriesMutation) ChatTitle() (r string, exists bool)

ChatTitle returns the value of the "chat_title" field in the mutation.

func (*ChatHistoriesMutation) ChatType added in v0.14.0

func (m *ChatHistoriesMutation) ChatType() (r string, exists bool)

ChatType returns the value of the "chat_type" field in the mutation.

func (*ChatHistoriesMutation) ChattedAt

func (m *ChatHistoriesMutation) ChattedAt() (r int64, exists bool)

ChattedAt returns the value of the "chatted_at" field in the mutation.

func (*ChatHistoriesMutation) ClearEdge

func (m *ChatHistoriesMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ChatHistoriesMutation) ClearField

func (m *ChatHistoriesMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ChatHistoriesMutation) ClearedEdges

func (m *ChatHistoriesMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ChatHistoriesMutation) ClearedFields

func (m *ChatHistoriesMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ChatHistoriesMutation) Client

func (m ChatHistoriesMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ChatHistoriesMutation) CreatedAt

func (m *ChatHistoriesMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ChatHistoriesMutation) EdgeCleared

func (m *ChatHistoriesMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ChatHistoriesMutation) Embedded

func (m *ChatHistoriesMutation) Embedded() (r bool, exists bool)

Embedded returns the value of the "embedded" field in the mutation.

func (*ChatHistoriesMutation) Field

func (m *ChatHistoriesMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ChatHistoriesMutation) FieldCleared

func (m *ChatHistoriesMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ChatHistoriesMutation) Fields

func (m *ChatHistoriesMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ChatHistoriesMutation) FromPlatform

func (m *ChatHistoriesMutation) FromPlatform() (r int, exists bool)

FromPlatform returns the value of the "from_platform" field in the mutation.

func (*ChatHistoriesMutation) FullName

func (m *ChatHistoriesMutation) FullName() (r string, exists bool)

FullName returns the value of the "full_name" field in the mutation.

func (*ChatHistoriesMutation) ID

func (m *ChatHistoriesMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ChatHistoriesMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*ChatHistoriesMutation) MessageID

func (m *ChatHistoriesMutation) MessageID() (r int64, exists bool)

MessageID returns the value of the "message_id" field in the mutation.

func (*ChatHistoriesMutation) OldChatID

func (m *ChatHistoriesMutation) OldChatID(ctx context.Context) (v int64, err error)

OldChatID returns the old "chat_id" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldChatTitle

func (m *ChatHistoriesMutation) OldChatTitle(ctx context.Context) (v string, err error)

OldChatTitle returns the old "chat_title" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldChatType added in v0.14.0

func (m *ChatHistoriesMutation) OldChatType(ctx context.Context) (v string, err error)

OldChatType returns the old "chat_type" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldChattedAt

func (m *ChatHistoriesMutation) OldChattedAt(ctx context.Context) (v int64, err error)

OldChattedAt returns the old "chatted_at" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldCreatedAt

func (m *ChatHistoriesMutation) OldCreatedAt(ctx context.Context) (v int64, err error)

OldCreatedAt returns the old "created_at" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldEmbedded

func (m *ChatHistoriesMutation) OldEmbedded(ctx context.Context) (v bool, err error)

OldEmbedded returns the old "embedded" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldField

func (m *ChatHistoriesMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ChatHistoriesMutation) OldFromPlatform

func (m *ChatHistoriesMutation) OldFromPlatform(ctx context.Context) (v int, err error)

OldFromPlatform returns the old "from_platform" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldFullName

func (m *ChatHistoriesMutation) OldFullName(ctx context.Context) (v string, err error)

OldFullName returns the old "full_name" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldMessageID

func (m *ChatHistoriesMutation) OldMessageID(ctx context.Context) (v int64, err error)

OldMessageID returns the old "message_id" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldRepliedToChatType added in v0.14.0

func (m *ChatHistoriesMutation) OldRepliedToChatType(ctx context.Context) (v string, err error)

OldRepliedToChatType returns the old "replied_to_chat_type" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldRepliedToFullName

func (m *ChatHistoriesMutation) OldRepliedToFullName(ctx context.Context) (v string, err error)

OldRepliedToFullName returns the old "replied_to_full_name" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldRepliedToMessageID

func (m *ChatHistoriesMutation) OldRepliedToMessageID(ctx context.Context) (v int64, err error)

OldRepliedToMessageID returns the old "replied_to_message_id" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldRepliedToText

func (m *ChatHistoriesMutation) OldRepliedToText(ctx context.Context) (v string, err error)

OldRepliedToText returns the old "replied_to_text" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldRepliedToUserID

func (m *ChatHistoriesMutation) OldRepliedToUserID(ctx context.Context) (v int64, err error)

OldRepliedToUserID returns the old "replied_to_user_id" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldRepliedToUsername

func (m *ChatHistoriesMutation) OldRepliedToUsername(ctx context.Context) (v string, err error)

OldRepliedToUsername returns the old "replied_to_username" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldText

func (m *ChatHistoriesMutation) OldText(ctx context.Context) (v string, err error)

OldText returns the old "text" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldUpdatedAt

func (m *ChatHistoriesMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldUserID

func (m *ChatHistoriesMutation) OldUserID(ctx context.Context) (v int64, err error)

OldUserID returns the old "user_id" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) OldUsername

func (m *ChatHistoriesMutation) OldUsername(ctx context.Context) (v string, err error)

OldUsername returns the old "username" field's value of the ChatHistories entity. If the ChatHistories object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ChatHistoriesMutation) Op

func (m *ChatHistoriesMutation) Op() Op

Op returns the operation name.

func (*ChatHistoriesMutation) RemovedEdges

func (m *ChatHistoriesMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ChatHistoriesMutation) RemovedIDs

func (m *ChatHistoriesMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ChatHistoriesMutation) RepliedToChatType added in v0.14.0

func (m *ChatHistoriesMutation) RepliedToChatType() (r string, exists bool)

RepliedToChatType returns the value of the "replied_to_chat_type" field in the mutation.

func (*ChatHistoriesMutation) RepliedToFullName

func (m *ChatHistoriesMutation) RepliedToFullName() (r string, exists bool)

RepliedToFullName returns the value of the "replied_to_full_name" field in the mutation.

func (*ChatHistoriesMutation) RepliedToMessageID

func (m *ChatHistoriesMutation) RepliedToMessageID() (r int64, exists bool)

RepliedToMessageID returns the value of the "replied_to_message_id" field in the mutation.

func (*ChatHistoriesMutation) RepliedToText

func (m *ChatHistoriesMutation) RepliedToText() (r string, exists bool)

RepliedToText returns the value of the "replied_to_text" field in the mutation.

func (*ChatHistoriesMutation) RepliedToUserID

func (m *ChatHistoriesMutation) RepliedToUserID() (r int64, exists bool)

RepliedToUserID returns the value of the "replied_to_user_id" field in the mutation.

func (*ChatHistoriesMutation) RepliedToUsername

func (m *ChatHistoriesMutation) RepliedToUsername() (r string, exists bool)

RepliedToUsername returns the value of the "replied_to_username" field in the mutation.

func (*ChatHistoriesMutation) ResetChatID

func (m *ChatHistoriesMutation) ResetChatID()

ResetChatID resets all changes to the "chat_id" field.

func (*ChatHistoriesMutation) ResetChatTitle

func (m *ChatHistoriesMutation) ResetChatTitle()

ResetChatTitle resets all changes to the "chat_title" field.

func (*ChatHistoriesMutation) ResetChatType added in v0.14.0

func (m *ChatHistoriesMutation) ResetChatType()

ResetChatType resets all changes to the "chat_type" field.

func (*ChatHistoriesMutation) ResetChattedAt

func (m *ChatHistoriesMutation) ResetChattedAt()

ResetChattedAt resets all changes to the "chatted_at" field.

func (*ChatHistoriesMutation) ResetCreatedAt

func (m *ChatHistoriesMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ChatHistoriesMutation) ResetEdge

func (m *ChatHistoriesMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ChatHistoriesMutation) ResetEmbedded

func (m *ChatHistoriesMutation) ResetEmbedded()

ResetEmbedded resets all changes to the "embedded" field.

func (*ChatHistoriesMutation) ResetField

func (m *ChatHistoriesMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ChatHistoriesMutation) ResetFromPlatform

func (m *ChatHistoriesMutation) ResetFromPlatform()

ResetFromPlatform resets all changes to the "from_platform" field.

func (*ChatHistoriesMutation) ResetFullName

func (m *ChatHistoriesMutation) ResetFullName()

ResetFullName resets all changes to the "full_name" field.

func (*ChatHistoriesMutation) ResetMessageID

func (m *ChatHistoriesMutation) ResetMessageID()

ResetMessageID resets all changes to the "message_id" field.

func (*ChatHistoriesMutation) ResetRepliedToChatType added in v0.14.0

func (m *ChatHistoriesMutation) ResetRepliedToChatType()

ResetRepliedToChatType resets all changes to the "replied_to_chat_type" field.

func (*ChatHistoriesMutation) ResetRepliedToFullName

func (m *ChatHistoriesMutation) ResetRepliedToFullName()

ResetRepliedToFullName resets all changes to the "replied_to_full_name" field.

func (*ChatHistoriesMutation) ResetRepliedToMessageID

func (m *ChatHistoriesMutation) ResetRepliedToMessageID()

ResetRepliedToMessageID resets all changes to the "replied_to_message_id" field.

func (*ChatHistoriesMutation) ResetRepliedToText

func (m *ChatHistoriesMutation) ResetRepliedToText()

ResetRepliedToText resets all changes to the "replied_to_text" field.

func (*ChatHistoriesMutation) ResetRepliedToUserID

func (m *ChatHistoriesMutation) ResetRepliedToUserID()

ResetRepliedToUserID resets all changes to the "replied_to_user_id" field.

func (*ChatHistoriesMutation) ResetRepliedToUsername

func (m *ChatHistoriesMutation) ResetRepliedToUsername()

ResetRepliedToUsername resets all changes to the "replied_to_username" field.

func (*ChatHistoriesMutation) ResetText

func (m *ChatHistoriesMutation) ResetText()

ResetText resets all changes to the "text" field.

func (*ChatHistoriesMutation) ResetUpdatedAt

func (m *ChatHistoriesMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ChatHistoriesMutation) ResetUserID

func (m *ChatHistoriesMutation) ResetUserID()

ResetUserID resets all changes to the "user_id" field.

func (*ChatHistoriesMutation) ResetUsername

func (m *ChatHistoriesMutation) ResetUsername()

ResetUsername resets all changes to the "username" field.

func (*ChatHistoriesMutation) SetChatID

func (m *ChatHistoriesMutation) SetChatID(i int64)

SetChatID sets the "chat_id" field.

func (*ChatHistoriesMutation) SetChatTitle

func (m *ChatHistoriesMutation) SetChatTitle(s string)

SetChatTitle sets the "chat_title" field.

func (*ChatHistoriesMutation) SetChatType added in v0.14.0

func (m *ChatHistoriesMutation) SetChatType(s string)

SetChatType sets the "chat_type" field.

func (*ChatHistoriesMutation) SetChattedAt

func (m *ChatHistoriesMutation) SetChattedAt(i int64)

SetChattedAt sets the "chatted_at" field.

func (*ChatHistoriesMutation) SetCreatedAt

func (m *ChatHistoriesMutation) SetCreatedAt(i int64)

SetCreatedAt sets the "created_at" field.

func (*ChatHistoriesMutation) SetEmbedded

func (m *ChatHistoriesMutation) SetEmbedded(b bool)

SetEmbedded sets the "embedded" field.

func (*ChatHistoriesMutation) SetField

func (m *ChatHistoriesMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ChatHistoriesMutation) SetFromPlatform

func (m *ChatHistoriesMutation) SetFromPlatform(i int)

SetFromPlatform sets the "from_platform" field.

func (*ChatHistoriesMutation) SetFullName

func (m *ChatHistoriesMutation) SetFullName(s string)

SetFullName sets the "full_name" field.

func (*ChatHistoriesMutation) SetID

func (m *ChatHistoriesMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of ChatHistories entities.

func (*ChatHistoriesMutation) SetMessageID

func (m *ChatHistoriesMutation) SetMessageID(i int64)

SetMessageID sets the "message_id" field.

func (*ChatHistoriesMutation) SetOp

func (m *ChatHistoriesMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ChatHistoriesMutation) SetRepliedToChatType added in v0.14.0

func (m *ChatHistoriesMutation) SetRepliedToChatType(s string)

SetRepliedToChatType sets the "replied_to_chat_type" field.

func (*ChatHistoriesMutation) SetRepliedToFullName

func (m *ChatHistoriesMutation) SetRepliedToFullName(s string)

SetRepliedToFullName sets the "replied_to_full_name" field.

func (*ChatHistoriesMutation) SetRepliedToMessageID

func (m *ChatHistoriesMutation) SetRepliedToMessageID(i int64)

SetRepliedToMessageID sets the "replied_to_message_id" field.

func (*ChatHistoriesMutation) SetRepliedToText

func (m *ChatHistoriesMutation) SetRepliedToText(s string)

SetRepliedToText sets the "replied_to_text" field.

func (*ChatHistoriesMutation) SetRepliedToUserID

func (m *ChatHistoriesMutation) SetRepliedToUserID(i int64)

SetRepliedToUserID sets the "replied_to_user_id" field.

func (*ChatHistoriesMutation) SetRepliedToUsername

func (m *ChatHistoriesMutation) SetRepliedToUsername(s string)

SetRepliedToUsername sets the "replied_to_username" field.

func (*ChatHistoriesMutation) SetText

func (m *ChatHistoriesMutation) SetText(s string)

SetText sets the "text" field.

func (*ChatHistoriesMutation) SetUpdatedAt

func (m *ChatHistoriesMutation) SetUpdatedAt(i int64)

SetUpdatedAt sets the "updated_at" field.

func (*ChatHistoriesMutation) SetUserID

func (m *ChatHistoriesMutation) SetUserID(i int64)

SetUserID sets the "user_id" field.

func (*ChatHistoriesMutation) SetUsername

func (m *ChatHistoriesMutation) SetUsername(s string)

SetUsername sets the "username" field.

func (*ChatHistoriesMutation) Text

func (m *ChatHistoriesMutation) Text() (r string, exists bool)

Text returns the value of the "text" field in the mutation.

func (ChatHistoriesMutation) Tx

func (m ChatHistoriesMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ChatHistoriesMutation) Type

func (m *ChatHistoriesMutation) Type() string

Type returns the node type of this mutation (ChatHistories).

func (*ChatHistoriesMutation) UpdatedAt

func (m *ChatHistoriesMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ChatHistoriesMutation) UserID

func (m *ChatHistoriesMutation) UserID() (r int64, exists bool)

UserID returns the value of the "user_id" field in the mutation.

func (*ChatHistoriesMutation) Username

func (m *ChatHistoriesMutation) Username() (r string, exists bool)

Username returns the value of the "username" field in the mutation.

func (*ChatHistoriesMutation) Where

Where appends a list predicates to the ChatHistoriesMutation builder.

func (*ChatHistoriesMutation) WhereP

func (m *ChatHistoriesMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ChatHistoriesMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ChatHistoriesQuery

type ChatHistoriesQuery struct {
	// contains filtered or unexported fields
}

ChatHistoriesQuery is the builder for querying ChatHistories entities.

func (*ChatHistoriesQuery) Aggregate

func (chq *ChatHistoriesQuery) Aggregate(fns ...AggregateFunc) *ChatHistoriesSelect

Aggregate returns a ChatHistoriesSelect configured with the given aggregations.

func (*ChatHistoriesQuery) All

All executes the query and returns a list of ChatHistoriesSlice.

func (*ChatHistoriesQuery) AllX

func (chq *ChatHistoriesQuery) AllX(ctx context.Context) []*ChatHistories

AllX is like All, but panics if an error occurs.

func (*ChatHistoriesQuery) Clone

func (chq *ChatHistoriesQuery) Clone() *ChatHistoriesQuery

Clone returns a duplicate of the ChatHistoriesQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ChatHistoriesQuery) Count

func (chq *ChatHistoriesQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ChatHistoriesQuery) CountX

func (chq *ChatHistoriesQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ChatHistoriesQuery) Exist

func (chq *ChatHistoriesQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ChatHistoriesQuery) ExistX

func (chq *ChatHistoriesQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ChatHistoriesQuery) First

First returns the first ChatHistories entity from the query. Returns a *NotFoundError when no ChatHistories was found.

func (*ChatHistoriesQuery) FirstID

func (chq *ChatHistoriesQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first ChatHistories ID from the query. Returns a *NotFoundError when no ChatHistories ID was found.

func (*ChatHistoriesQuery) FirstIDX

func (chq *ChatHistoriesQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*ChatHistoriesQuery) FirstX

func (chq *ChatHistoriesQuery) FirstX(ctx context.Context) *ChatHistories

FirstX is like First, but panics if an error occurs.

func (*ChatHistoriesQuery) GroupBy

func (chq *ChatHistoriesQuery) GroupBy(field string, fields ...string) *ChatHistoriesGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ChatHistories.Query().
	GroupBy(chathistories.FieldChatID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ChatHistoriesQuery) IDs

func (chq *ChatHistoriesQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of ChatHistories IDs.

func (*ChatHistoriesQuery) IDsX

func (chq *ChatHistoriesQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*ChatHistoriesQuery) Limit

func (chq *ChatHistoriesQuery) Limit(limit int) *ChatHistoriesQuery

Limit the number of records to be returned by this query.

func (*ChatHistoriesQuery) Offset

func (chq *ChatHistoriesQuery) Offset(offset int) *ChatHistoriesQuery

Offset to start from.

func (*ChatHistoriesQuery) Only

Only returns a single ChatHistories entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ChatHistories entity is found. Returns a *NotFoundError when no ChatHistories entities are found.

func (*ChatHistoriesQuery) OnlyID

func (chq *ChatHistoriesQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only ChatHistories ID in the query. Returns a *NotSingularError when more than one ChatHistories ID is found. Returns a *NotFoundError when no entities are found.

func (*ChatHistoriesQuery) OnlyIDX

func (chq *ChatHistoriesQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ChatHistoriesQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ChatHistoriesQuery) Order

Order specifies how the records should be ordered.

func (*ChatHistoriesQuery) Select

func (chq *ChatHistoriesQuery) Select(fields ...string) *ChatHistoriesSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
}

client.ChatHistories.Query().
	Select(chathistories.FieldChatID).
	Scan(ctx, &v)

func (*ChatHistoriesQuery) Unique

func (chq *ChatHistoriesQuery) Unique(unique bool) *ChatHistoriesQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ChatHistoriesQuery) Where

Where adds a new predicate for the ChatHistoriesQuery builder.

type ChatHistoriesSelect

type ChatHistoriesSelect struct {
	*ChatHistoriesQuery
	// contains filtered or unexported fields
}

ChatHistoriesSelect is the builder for selecting fields of ChatHistories entities.

func (*ChatHistoriesSelect) Aggregate

func (chs *ChatHistoriesSelect) Aggregate(fns ...AggregateFunc) *ChatHistoriesSelect

Aggregate adds the given aggregation functions to the selector query.

func (*ChatHistoriesSelect) Bool

func (s *ChatHistoriesSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesSelect) BoolX

func (s *ChatHistoriesSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ChatHistoriesSelect) Bools

func (s *ChatHistoriesSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesSelect) BoolsX

func (s *ChatHistoriesSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ChatHistoriesSelect) Float64

func (s *ChatHistoriesSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesSelect) Float64X

func (s *ChatHistoriesSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ChatHistoriesSelect) Float64s

func (s *ChatHistoriesSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesSelect) Float64sX

func (s *ChatHistoriesSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ChatHistoriesSelect) Int

func (s *ChatHistoriesSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesSelect) IntX

func (s *ChatHistoriesSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ChatHistoriesSelect) Ints

func (s *ChatHistoriesSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesSelect) IntsX

func (s *ChatHistoriesSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ChatHistoriesSelect) Scan

func (chs *ChatHistoriesSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ChatHistoriesSelect) ScanX

func (s *ChatHistoriesSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ChatHistoriesSelect) String

func (s *ChatHistoriesSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesSelect) StringX

func (s *ChatHistoriesSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ChatHistoriesSelect) Strings

func (s *ChatHistoriesSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ChatHistoriesSelect) StringsX

func (s *ChatHistoriesSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ChatHistoriesSlice

type ChatHistoriesSlice []*ChatHistories

ChatHistoriesSlice is a parsable slice of ChatHistories.

type ChatHistoriesUpdate

type ChatHistoriesUpdate struct {
	// contains filtered or unexported fields
}

ChatHistoriesUpdate is the builder for updating ChatHistories entities.

func (*ChatHistoriesUpdate) AddChatID

func (chu *ChatHistoriesUpdate) AddChatID(i int64) *ChatHistoriesUpdate

AddChatID adds i to the "chat_id" field.

func (*ChatHistoriesUpdate) AddChattedAt

func (chu *ChatHistoriesUpdate) AddChattedAt(i int64) *ChatHistoriesUpdate

AddChattedAt adds i to the "chatted_at" field.

func (*ChatHistoriesUpdate) AddCreatedAt

func (chu *ChatHistoriesUpdate) AddCreatedAt(i int64) *ChatHistoriesUpdate

AddCreatedAt adds i to the "created_at" field.

func (*ChatHistoriesUpdate) AddFromPlatform

func (chu *ChatHistoriesUpdate) AddFromPlatform(i int) *ChatHistoriesUpdate

AddFromPlatform adds i to the "from_platform" field.

func (*ChatHistoriesUpdate) AddMessageID

func (chu *ChatHistoriesUpdate) AddMessageID(i int64) *ChatHistoriesUpdate

AddMessageID adds i to the "message_id" field.

func (*ChatHistoriesUpdate) AddRepliedToMessageID

func (chu *ChatHistoriesUpdate) AddRepliedToMessageID(i int64) *ChatHistoriesUpdate

AddRepliedToMessageID adds i to the "replied_to_message_id" field.

func (*ChatHistoriesUpdate) AddRepliedToUserID

func (chu *ChatHistoriesUpdate) AddRepliedToUserID(i int64) *ChatHistoriesUpdate

AddRepliedToUserID adds i to the "replied_to_user_id" field.

func (*ChatHistoriesUpdate) AddUpdatedAt

func (chu *ChatHistoriesUpdate) AddUpdatedAt(i int64) *ChatHistoriesUpdate

AddUpdatedAt adds i to the "updated_at" field.

func (*ChatHistoriesUpdate) AddUserID

func (chu *ChatHistoriesUpdate) AddUserID(i int64) *ChatHistoriesUpdate

AddUserID adds i to the "user_id" field.

func (*ChatHistoriesUpdate) Exec

func (chu *ChatHistoriesUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ChatHistoriesUpdate) ExecX

func (chu *ChatHistoriesUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ChatHistoriesUpdate) Mutation

func (chu *ChatHistoriesUpdate) Mutation() *ChatHistoriesMutation

Mutation returns the ChatHistoriesMutation object of the builder.

func (*ChatHistoriesUpdate) Save

func (chu *ChatHistoriesUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ChatHistoriesUpdate) SaveX

func (chu *ChatHistoriesUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ChatHistoriesUpdate) SetChatID

func (chu *ChatHistoriesUpdate) SetChatID(i int64) *ChatHistoriesUpdate

SetChatID sets the "chat_id" field.

func (*ChatHistoriesUpdate) SetChatTitle

func (chu *ChatHistoriesUpdate) SetChatTitle(s string) *ChatHistoriesUpdate

SetChatTitle sets the "chat_title" field.

func (*ChatHistoriesUpdate) SetChatType added in v0.14.0

func (chu *ChatHistoriesUpdate) SetChatType(s string) *ChatHistoriesUpdate

SetChatType sets the "chat_type" field.

func (*ChatHistoriesUpdate) SetChattedAt

func (chu *ChatHistoriesUpdate) SetChattedAt(i int64) *ChatHistoriesUpdate

SetChattedAt sets the "chatted_at" field.

func (*ChatHistoriesUpdate) SetCreatedAt

func (chu *ChatHistoriesUpdate) SetCreatedAt(i int64) *ChatHistoriesUpdate

SetCreatedAt sets the "created_at" field.

func (*ChatHistoriesUpdate) SetEmbedded

func (chu *ChatHistoriesUpdate) SetEmbedded(b bool) *ChatHistoriesUpdate

SetEmbedded sets the "embedded" field.

func (*ChatHistoriesUpdate) SetFromPlatform

func (chu *ChatHistoriesUpdate) SetFromPlatform(i int) *ChatHistoriesUpdate

SetFromPlatform sets the "from_platform" field.

func (*ChatHistoriesUpdate) SetFullName

func (chu *ChatHistoriesUpdate) SetFullName(s string) *ChatHistoriesUpdate

SetFullName sets the "full_name" field.

func (*ChatHistoriesUpdate) SetMessageID

func (chu *ChatHistoriesUpdate) SetMessageID(i int64) *ChatHistoriesUpdate

SetMessageID sets the "message_id" field.

func (*ChatHistoriesUpdate) SetNillableChatID

func (chu *ChatHistoriesUpdate) SetNillableChatID(i *int64) *ChatHistoriesUpdate

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableChatTitle

func (chu *ChatHistoriesUpdate) SetNillableChatTitle(s *string) *ChatHistoriesUpdate

SetNillableChatTitle sets the "chat_title" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableChatType added in v0.14.0

func (chu *ChatHistoriesUpdate) SetNillableChatType(s *string) *ChatHistoriesUpdate

SetNillableChatType sets the "chat_type" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableChattedAt

func (chu *ChatHistoriesUpdate) SetNillableChattedAt(i *int64) *ChatHistoriesUpdate

SetNillableChattedAt sets the "chatted_at" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableCreatedAt

func (chu *ChatHistoriesUpdate) SetNillableCreatedAt(i *int64) *ChatHistoriesUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableEmbedded

func (chu *ChatHistoriesUpdate) SetNillableEmbedded(b *bool) *ChatHistoriesUpdate

SetNillableEmbedded sets the "embedded" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableFromPlatform

func (chu *ChatHistoriesUpdate) SetNillableFromPlatform(i *int) *ChatHistoriesUpdate

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableFullName

func (chu *ChatHistoriesUpdate) SetNillableFullName(s *string) *ChatHistoriesUpdate

SetNillableFullName sets the "full_name" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableMessageID

func (chu *ChatHistoriesUpdate) SetNillableMessageID(i *int64) *ChatHistoriesUpdate

SetNillableMessageID sets the "message_id" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableRepliedToChatType added in v0.14.0

func (chu *ChatHistoriesUpdate) SetNillableRepliedToChatType(s *string) *ChatHistoriesUpdate

SetNillableRepliedToChatType sets the "replied_to_chat_type" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableRepliedToFullName

func (chu *ChatHistoriesUpdate) SetNillableRepliedToFullName(s *string) *ChatHistoriesUpdate

SetNillableRepliedToFullName sets the "replied_to_full_name" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableRepliedToMessageID

func (chu *ChatHistoriesUpdate) SetNillableRepliedToMessageID(i *int64) *ChatHistoriesUpdate

SetNillableRepliedToMessageID sets the "replied_to_message_id" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableRepliedToText

func (chu *ChatHistoriesUpdate) SetNillableRepliedToText(s *string) *ChatHistoriesUpdate

SetNillableRepliedToText sets the "replied_to_text" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableRepliedToUserID

func (chu *ChatHistoriesUpdate) SetNillableRepliedToUserID(i *int64) *ChatHistoriesUpdate

SetNillableRepliedToUserID sets the "replied_to_user_id" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableRepliedToUsername

func (chu *ChatHistoriesUpdate) SetNillableRepliedToUsername(s *string) *ChatHistoriesUpdate

SetNillableRepliedToUsername sets the "replied_to_username" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableText

func (chu *ChatHistoriesUpdate) SetNillableText(s *string) *ChatHistoriesUpdate

SetNillableText sets the "text" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableUpdatedAt

func (chu *ChatHistoriesUpdate) SetNillableUpdatedAt(i *int64) *ChatHistoriesUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableUserID

func (chu *ChatHistoriesUpdate) SetNillableUserID(i *int64) *ChatHistoriesUpdate

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetNillableUsername

func (chu *ChatHistoriesUpdate) SetNillableUsername(s *string) *ChatHistoriesUpdate

SetNillableUsername sets the "username" field if the given value is not nil.

func (*ChatHistoriesUpdate) SetRepliedToChatType added in v0.14.0

func (chu *ChatHistoriesUpdate) SetRepliedToChatType(s string) *ChatHistoriesUpdate

SetRepliedToChatType sets the "replied_to_chat_type" field.

func (*ChatHistoriesUpdate) SetRepliedToFullName

func (chu *ChatHistoriesUpdate) SetRepliedToFullName(s string) *ChatHistoriesUpdate

SetRepliedToFullName sets the "replied_to_full_name" field.

func (*ChatHistoriesUpdate) SetRepliedToMessageID

func (chu *ChatHistoriesUpdate) SetRepliedToMessageID(i int64) *ChatHistoriesUpdate

SetRepliedToMessageID sets the "replied_to_message_id" field.

func (*ChatHistoriesUpdate) SetRepliedToText

func (chu *ChatHistoriesUpdate) SetRepliedToText(s string) *ChatHistoriesUpdate

SetRepliedToText sets the "replied_to_text" field.

func (*ChatHistoriesUpdate) SetRepliedToUserID

func (chu *ChatHistoriesUpdate) SetRepliedToUserID(i int64) *ChatHistoriesUpdate

SetRepliedToUserID sets the "replied_to_user_id" field.

func (*ChatHistoriesUpdate) SetRepliedToUsername

func (chu *ChatHistoriesUpdate) SetRepliedToUsername(s string) *ChatHistoriesUpdate

SetRepliedToUsername sets the "replied_to_username" field.

func (*ChatHistoriesUpdate) SetText

SetText sets the "text" field.

func (*ChatHistoriesUpdate) SetUpdatedAt

func (chu *ChatHistoriesUpdate) SetUpdatedAt(i int64) *ChatHistoriesUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ChatHistoriesUpdate) SetUserID

func (chu *ChatHistoriesUpdate) SetUserID(i int64) *ChatHistoriesUpdate

SetUserID sets the "user_id" field.

func (*ChatHistoriesUpdate) SetUsername

func (chu *ChatHistoriesUpdate) SetUsername(s string) *ChatHistoriesUpdate

SetUsername sets the "username" field.

func (*ChatHistoriesUpdate) Where

Where appends a list predicates to the ChatHistoriesUpdate builder.

type ChatHistoriesUpdateOne

type ChatHistoriesUpdateOne struct {
	// contains filtered or unexported fields
}

ChatHistoriesUpdateOne is the builder for updating a single ChatHistories entity.

func (*ChatHistoriesUpdateOne) AddChatID

AddChatID adds i to the "chat_id" field.

func (*ChatHistoriesUpdateOne) AddChattedAt

func (chuo *ChatHistoriesUpdateOne) AddChattedAt(i int64) *ChatHistoriesUpdateOne

AddChattedAt adds i to the "chatted_at" field.

func (*ChatHistoriesUpdateOne) AddCreatedAt

func (chuo *ChatHistoriesUpdateOne) AddCreatedAt(i int64) *ChatHistoriesUpdateOne

AddCreatedAt adds i to the "created_at" field.

func (*ChatHistoriesUpdateOne) AddFromPlatform

func (chuo *ChatHistoriesUpdateOne) AddFromPlatform(i int) *ChatHistoriesUpdateOne

AddFromPlatform adds i to the "from_platform" field.

func (*ChatHistoriesUpdateOne) AddMessageID

func (chuo *ChatHistoriesUpdateOne) AddMessageID(i int64) *ChatHistoriesUpdateOne

AddMessageID adds i to the "message_id" field.

func (*ChatHistoriesUpdateOne) AddRepliedToMessageID

func (chuo *ChatHistoriesUpdateOne) AddRepliedToMessageID(i int64) *ChatHistoriesUpdateOne

AddRepliedToMessageID adds i to the "replied_to_message_id" field.

func (*ChatHistoriesUpdateOne) AddRepliedToUserID

func (chuo *ChatHistoriesUpdateOne) AddRepliedToUserID(i int64) *ChatHistoriesUpdateOne

AddRepliedToUserID adds i to the "replied_to_user_id" field.

func (*ChatHistoriesUpdateOne) AddUpdatedAt

func (chuo *ChatHistoriesUpdateOne) AddUpdatedAt(i int64) *ChatHistoriesUpdateOne

AddUpdatedAt adds i to the "updated_at" field.

func (*ChatHistoriesUpdateOne) AddUserID

AddUserID adds i to the "user_id" field.

func (*ChatHistoriesUpdateOne) Exec

func (chuo *ChatHistoriesUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ChatHistoriesUpdateOne) ExecX

func (chuo *ChatHistoriesUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ChatHistoriesUpdateOne) Mutation

Mutation returns the ChatHistoriesMutation object of the builder.

func (*ChatHistoriesUpdateOne) Save

Save executes the query and returns the updated ChatHistories entity.

func (*ChatHistoriesUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ChatHistoriesUpdateOne) Select

func (chuo *ChatHistoriesUpdateOne) Select(field string, fields ...string) *ChatHistoriesUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ChatHistoriesUpdateOne) SetChatID

SetChatID sets the "chat_id" field.

func (*ChatHistoriesUpdateOne) SetChatTitle

func (chuo *ChatHistoriesUpdateOne) SetChatTitle(s string) *ChatHistoriesUpdateOne

SetChatTitle sets the "chat_title" field.

func (*ChatHistoriesUpdateOne) SetChatType added in v0.14.0

SetChatType sets the "chat_type" field.

func (*ChatHistoriesUpdateOne) SetChattedAt

func (chuo *ChatHistoriesUpdateOne) SetChattedAt(i int64) *ChatHistoriesUpdateOne

SetChattedAt sets the "chatted_at" field.

func (*ChatHistoriesUpdateOne) SetCreatedAt

func (chuo *ChatHistoriesUpdateOne) SetCreatedAt(i int64) *ChatHistoriesUpdateOne

SetCreatedAt sets the "created_at" field.

func (*ChatHistoriesUpdateOne) SetEmbedded

func (chuo *ChatHistoriesUpdateOne) SetEmbedded(b bool) *ChatHistoriesUpdateOne

SetEmbedded sets the "embedded" field.

func (*ChatHistoriesUpdateOne) SetFromPlatform

func (chuo *ChatHistoriesUpdateOne) SetFromPlatform(i int) *ChatHistoriesUpdateOne

SetFromPlatform sets the "from_platform" field.

func (*ChatHistoriesUpdateOne) SetFullName

SetFullName sets the "full_name" field.

func (*ChatHistoriesUpdateOne) SetMessageID

func (chuo *ChatHistoriesUpdateOne) SetMessageID(i int64) *ChatHistoriesUpdateOne

SetMessageID sets the "message_id" field.

func (*ChatHistoriesUpdateOne) SetNillableChatID

func (chuo *ChatHistoriesUpdateOne) SetNillableChatID(i *int64) *ChatHistoriesUpdateOne

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableChatTitle

func (chuo *ChatHistoriesUpdateOne) SetNillableChatTitle(s *string) *ChatHistoriesUpdateOne

SetNillableChatTitle sets the "chat_title" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableChatType added in v0.14.0

func (chuo *ChatHistoriesUpdateOne) SetNillableChatType(s *string) *ChatHistoriesUpdateOne

SetNillableChatType sets the "chat_type" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableChattedAt

func (chuo *ChatHistoriesUpdateOne) SetNillableChattedAt(i *int64) *ChatHistoriesUpdateOne

SetNillableChattedAt sets the "chatted_at" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableCreatedAt

func (chuo *ChatHistoriesUpdateOne) SetNillableCreatedAt(i *int64) *ChatHistoriesUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableEmbedded

func (chuo *ChatHistoriesUpdateOne) SetNillableEmbedded(b *bool) *ChatHistoriesUpdateOne

SetNillableEmbedded sets the "embedded" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableFromPlatform

func (chuo *ChatHistoriesUpdateOne) SetNillableFromPlatform(i *int) *ChatHistoriesUpdateOne

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableFullName

func (chuo *ChatHistoriesUpdateOne) SetNillableFullName(s *string) *ChatHistoriesUpdateOne

SetNillableFullName sets the "full_name" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableMessageID

func (chuo *ChatHistoriesUpdateOne) SetNillableMessageID(i *int64) *ChatHistoriesUpdateOne

SetNillableMessageID sets the "message_id" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableRepliedToChatType added in v0.14.0

func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToChatType(s *string) *ChatHistoriesUpdateOne

SetNillableRepliedToChatType sets the "replied_to_chat_type" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableRepliedToFullName

func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToFullName(s *string) *ChatHistoriesUpdateOne

SetNillableRepliedToFullName sets the "replied_to_full_name" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableRepliedToMessageID

func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToMessageID(i *int64) *ChatHistoriesUpdateOne

SetNillableRepliedToMessageID sets the "replied_to_message_id" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableRepliedToText

func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToText(s *string) *ChatHistoriesUpdateOne

SetNillableRepliedToText sets the "replied_to_text" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableRepliedToUserID

func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToUserID(i *int64) *ChatHistoriesUpdateOne

SetNillableRepliedToUserID sets the "replied_to_user_id" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableRepliedToUsername

func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToUsername(s *string) *ChatHistoriesUpdateOne

SetNillableRepliedToUsername sets the "replied_to_username" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableText

func (chuo *ChatHistoriesUpdateOne) SetNillableText(s *string) *ChatHistoriesUpdateOne

SetNillableText sets the "text" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableUpdatedAt

func (chuo *ChatHistoriesUpdateOne) SetNillableUpdatedAt(i *int64) *ChatHistoriesUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableUserID

func (chuo *ChatHistoriesUpdateOne) SetNillableUserID(i *int64) *ChatHistoriesUpdateOne

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetNillableUsername

func (chuo *ChatHistoriesUpdateOne) SetNillableUsername(s *string) *ChatHistoriesUpdateOne

SetNillableUsername sets the "username" field if the given value is not nil.

func (*ChatHistoriesUpdateOne) SetRepliedToChatType added in v0.14.0

func (chuo *ChatHistoriesUpdateOne) SetRepliedToChatType(s string) *ChatHistoriesUpdateOne

SetRepliedToChatType sets the "replied_to_chat_type" field.

func (*ChatHistoriesUpdateOne) SetRepliedToFullName

func (chuo *ChatHistoriesUpdateOne) SetRepliedToFullName(s string) *ChatHistoriesUpdateOne

SetRepliedToFullName sets the "replied_to_full_name" field.

func (*ChatHistoriesUpdateOne) SetRepliedToMessageID

func (chuo *ChatHistoriesUpdateOne) SetRepliedToMessageID(i int64) *ChatHistoriesUpdateOne

SetRepliedToMessageID sets the "replied_to_message_id" field.

func (*ChatHistoriesUpdateOne) SetRepliedToText

func (chuo *ChatHistoriesUpdateOne) SetRepliedToText(s string) *ChatHistoriesUpdateOne

SetRepliedToText sets the "replied_to_text" field.

func (*ChatHistoriesUpdateOne) SetRepliedToUserID

func (chuo *ChatHistoriesUpdateOne) SetRepliedToUserID(i int64) *ChatHistoriesUpdateOne

SetRepliedToUserID sets the "replied_to_user_id" field.

func (*ChatHistoriesUpdateOne) SetRepliedToUsername

func (chuo *ChatHistoriesUpdateOne) SetRepliedToUsername(s string) *ChatHistoriesUpdateOne

SetRepliedToUsername sets the "replied_to_username" field.

func (*ChatHistoriesUpdateOne) SetText

SetText sets the "text" field.

func (*ChatHistoriesUpdateOne) SetUpdatedAt

func (chuo *ChatHistoriesUpdateOne) SetUpdatedAt(i int64) *ChatHistoriesUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*ChatHistoriesUpdateOne) SetUserID

SetUserID sets the "user_id" field.

func (*ChatHistoriesUpdateOne) SetUsername

SetUsername sets the "username" field.

func (*ChatHistoriesUpdateOne) Where

Where appends a list predicates to the ChatHistoriesUpdate builder.

type Client

type Client struct {

	// Schema is the client for creating, migrating and dropping schema.
	Schema *migrate.Schema
	// ChatHistories is the client for interacting with the ChatHistories builders.
	ChatHistories *ChatHistoriesClient
	// FeedbackChatHistoriesRecapsReactions is the client for interacting with the FeedbackChatHistoriesRecapsReactions builders.
	FeedbackChatHistoriesRecapsReactions *FeedbackChatHistoriesRecapsReactionsClient
	// FeedbackSummarizationsReactions is the client for interacting with the FeedbackSummarizationsReactions builders.
	FeedbackSummarizationsReactions *FeedbackSummarizationsReactionsClient
	// LogChatHistoriesRecap is the client for interacting with the LogChatHistoriesRecap builders.
	LogChatHistoriesRecap *LogChatHistoriesRecapClient
	// LogSummarizations is the client for interacting with the LogSummarizations builders.
	LogSummarizations *LogSummarizationsClient
	// MetricOpenAIChatCompletionTokenUsage is the client for interacting with the MetricOpenAIChatCompletionTokenUsage builders.
	MetricOpenAIChatCompletionTokenUsage *MetricOpenAIChatCompletionTokenUsageClient
	// SlackOAuthCredentials is the client for interacting with the SlackOAuthCredentials builders.
	SlackOAuthCredentials *SlackOAuthCredentialsClient
	// TelegramChatAutoRecapsSubscribers is the client for interacting with the TelegramChatAutoRecapsSubscribers builders.
	TelegramChatAutoRecapsSubscribers *TelegramChatAutoRecapsSubscribersClient
	// TelegramChatFeatureFlags is the client for interacting with the TelegramChatFeatureFlags builders.
	TelegramChatFeatureFlags *TelegramChatFeatureFlagsClient
	// TelegramChatRecapsOptions is the client for interacting with the TelegramChatRecapsOptions builders.
	TelegramChatRecapsOptions *TelegramChatRecapsOptionsClient
	// contains filtered or unexported fields
}

Client is the client that holds all ent builders.

func FromContext

func FromContext(ctx context.Context) *Client

FromContext returns a Client stored inside a context, or nil if there isn't one.

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client configured with the given options.

func Open

func Open(driverName, dataSourceName string, options ...Option) (*Client, error)

Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.

func (*Client) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

BeginTx returns a transactional client with specified options.

func (*Client) Close

func (c *Client) Close() error

Close closes the database connection and prevents new queries from starting.

func (*Client) Debug

func (c *Client) Debug() *Client

Debug returns a new debug-client. It's used to get verbose logging on specific operations.

client.Debug().
	ChatHistories.
	Query().
	Count(ctx)

func (*Client) Intercept

func (c *Client) Intercept(interceptors ...Interceptor)

Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.

func (*Client) Mutate

func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)

Mutate implements the ent.Mutator interface.

func (*Client) Tx

func (c *Client) Tx(ctx context.Context) (*Tx, error)

Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.

func (*Client) Use

func (c *Client) Use(hooks ...Hook)

Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.

type CommitFunc

type CommitFunc func(context.Context, *Tx) error

The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.

func (CommitFunc) Commit

func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error

Commit calls f(ctx, m).

type CommitHook

type CommitHook func(Committer) Committer

CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:

hook := func(next ent.Committer) ent.Committer {
	return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Commit(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Committer

type Committer interface {
	Commit(context.Context, *Tx) error
}

Committer is the interface that wraps the Commit method.

type ConstraintError

type ConstraintError struct {
	// contains filtered or unexported fields
}

ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.

func (ConstraintError) Error

func (e ConstraintError) Error() string

Error implements the error interface.

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type FeedbackChatHistoriesRecapsReactions added in v0.19.0

type FeedbackChatHistoriesRecapsReactions struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// ChatID holds the value of the "chat_id" field.
	ChatID int64 `json:"chat_id,omitempty"`
	// LogID holds the value of the "log_id" field.
	LogID uuid.UUID `json:"log_id,omitempty"`
	// UserID holds the value of the "user_id" field.
	UserID int64 `json:"user_id,omitempty"`
	// Type holds the value of the "type" field.
	Type feedbackchathistoriesrecapsreactions.Type `json:"type,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactions is the model entity for the FeedbackChatHistoriesRecapsReactions schema.

func (*FeedbackChatHistoriesRecapsReactions) String added in v0.19.0

String implements the fmt.Stringer.

func (*FeedbackChatHistoriesRecapsReactions) Unwrap added in v0.19.0

Unwrap unwraps the FeedbackChatHistoriesRecapsReactions entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*FeedbackChatHistoriesRecapsReactions) Update added in v0.19.0

Update returns a builder for updating this FeedbackChatHistoriesRecapsReactions. Note that you need to call FeedbackChatHistoriesRecapsReactions.Unwrap() before calling this method if this FeedbackChatHistoriesRecapsReactions was returned from a transaction, and the transaction was committed or rolled back.

func (*FeedbackChatHistoriesRecapsReactions) Value added in v0.19.0

Value returns the ent.Value that was dynamically selected and assigned to the FeedbackChatHistoriesRecapsReactions. This includes values selected through modifiers, order, etc.

type FeedbackChatHistoriesRecapsReactionsClient added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsClient struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsClient is a client for the FeedbackChatHistoriesRecapsReactions schema.

func NewFeedbackChatHistoriesRecapsReactionsClient added in v0.19.0

func NewFeedbackChatHistoriesRecapsReactionsClient(c config) *FeedbackChatHistoriesRecapsReactionsClient

NewFeedbackChatHistoriesRecapsReactionsClient returns a client for the FeedbackChatHistoriesRecapsReactions from the given config.

func (*FeedbackChatHistoriesRecapsReactionsClient) Create added in v0.19.0

Create returns a builder for creating a FeedbackChatHistoriesRecapsReactions entity.

func (*FeedbackChatHistoriesRecapsReactionsClient) CreateBulk added in v0.19.0

CreateBulk returns a builder for creating a bulk of FeedbackChatHistoriesRecapsReactions entities.

func (*FeedbackChatHistoriesRecapsReactionsClient) Delete added in v0.19.0

Delete returns a delete builder for FeedbackChatHistoriesRecapsReactions.

func (*FeedbackChatHistoriesRecapsReactionsClient) DeleteOne added in v0.19.0

DeleteOne returns a builder for deleting the given entity.

func (*FeedbackChatHistoriesRecapsReactionsClient) DeleteOneID added in v0.19.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*FeedbackChatHistoriesRecapsReactionsClient) Get added in v0.19.0

Get returns a FeedbackChatHistoriesRecapsReactions entity by its id.

func (*FeedbackChatHistoriesRecapsReactionsClient) GetX added in v0.19.0

GetX is like Get, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsClient) Hooks added in v0.19.0

Hooks returns the client hooks.

func (*FeedbackChatHistoriesRecapsReactionsClient) Intercept added in v0.19.0

func (c *FeedbackChatHistoriesRecapsReactionsClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `feedbackchathistoriesrecapsreactions.Intercept(f(g(h())))`.

func (*FeedbackChatHistoriesRecapsReactionsClient) Interceptors added in v0.19.0

Interceptors returns the client interceptors.

func (*FeedbackChatHistoriesRecapsReactionsClient) MapCreateBulk added in v0.22.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*FeedbackChatHistoriesRecapsReactionsClient) Query added in v0.19.0

Query returns a query builder for FeedbackChatHistoriesRecapsReactions.

func (*FeedbackChatHistoriesRecapsReactionsClient) Update added in v0.19.0

Update returns an update builder for FeedbackChatHistoriesRecapsReactions.

func (*FeedbackChatHistoriesRecapsReactionsClient) UpdateOne added in v0.19.0

UpdateOne returns an update builder for the given entity.

func (*FeedbackChatHistoriesRecapsReactionsClient) UpdateOneID added in v0.19.0

UpdateOneID returns an update builder for the given id.

func (*FeedbackChatHistoriesRecapsReactionsClient) Use added in v0.19.0

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `feedbackchathistoriesrecapsreactions.Hooks(f(g(h())))`.

type FeedbackChatHistoriesRecapsReactionsCreate added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsCreate struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsCreate is the builder for creating a FeedbackChatHistoriesRecapsReactions entity.

func (*FeedbackChatHistoriesRecapsReactionsCreate) Exec added in v0.19.0

Exec executes the query.

func (*FeedbackChatHistoriesRecapsReactionsCreate) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsCreate) Mutation added in v0.19.0

Mutation returns the FeedbackChatHistoriesRecapsReactionsMutation object of the builder.

func (*FeedbackChatHistoriesRecapsReactionsCreate) Save added in v0.19.0

Save creates the FeedbackChatHistoriesRecapsReactions in the database.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SaveX added in v0.19.0

SaveX calls Save and panics if Save returns an error.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetChatID added in v0.19.0

SetChatID sets the "chat_id" field.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetCreatedAt added in v0.19.0

SetCreatedAt sets the "created_at" field.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetID added in v0.19.0

SetID sets the "id" field.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetLogID added in v0.19.0

SetLogID sets the "log_id" field.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetNillableChatID added in v0.19.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetNillableCreatedAt added in v0.19.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetNillableID added in v0.19.0

SetNillableID sets the "id" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetNillableLogID added in v0.19.0

SetNillableLogID sets the "log_id" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetNillableType added in v0.19.0

SetNillableType sets the "type" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetNillableUpdatedAt added in v0.19.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetNillableUserID added in v0.19.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetType added in v0.19.0

SetType sets the "type" field.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetUpdatedAt added in v0.19.0

SetUpdatedAt sets the "updated_at" field.

func (*FeedbackChatHistoriesRecapsReactionsCreate) SetUserID added in v0.19.0

SetUserID sets the "user_id" field.

type FeedbackChatHistoriesRecapsReactionsCreateBulk added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsCreateBulk struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsCreateBulk is the builder for creating many FeedbackChatHistoriesRecapsReactions entities in bulk.

func (*FeedbackChatHistoriesRecapsReactionsCreateBulk) Exec added in v0.19.0

Exec executes the query.

func (*FeedbackChatHistoriesRecapsReactionsCreateBulk) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsCreateBulk) Save added in v0.19.0

Save creates the FeedbackChatHistoriesRecapsReactions entities in the database.

func (*FeedbackChatHistoriesRecapsReactionsCreateBulk) SaveX added in v0.19.0

SaveX is like Save, but panics if an error occurs.

type FeedbackChatHistoriesRecapsReactionsDelete added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsDelete struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsDelete is the builder for deleting a FeedbackChatHistoriesRecapsReactions entity.

func (*FeedbackChatHistoriesRecapsReactionsDelete) Exec added in v0.19.0

Exec executes the deletion query and returns how many vertices were deleted.

func (*FeedbackChatHistoriesRecapsReactionsDelete) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsDelete) Where added in v0.19.0

Where appends a list predicates to the FeedbackChatHistoriesRecapsReactionsDelete builder.

type FeedbackChatHistoriesRecapsReactionsDeleteOne added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsDeleteOne struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsDeleteOne is the builder for deleting a single FeedbackChatHistoriesRecapsReactions entity.

func (*FeedbackChatHistoriesRecapsReactionsDeleteOne) Exec added in v0.19.0

Exec executes the deletion query.

func (*FeedbackChatHistoriesRecapsReactionsDeleteOne) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsDeleteOne) Where added in v0.19.0

Where appends a list predicates to the FeedbackChatHistoriesRecapsReactionsDelete builder.

type FeedbackChatHistoriesRecapsReactionsGroupBy added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsGroupBy struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsGroupBy is the group-by builder for FeedbackChatHistoriesRecapsReactions entities.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Aggregate added in v0.19.0

Aggregate adds the given aggregation functions to the group-by query.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Bool added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) BoolX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Bools added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) BoolsX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Float64 added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Float64X added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Float64s added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Float64sX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Int added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) IntX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Ints added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) IntsX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Scan added in v0.19.0

Scan applies the selector query and scans the result into the given value.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) ScanX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) String added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) StringX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) Strings added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsGroupBy) StringsX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type FeedbackChatHistoriesRecapsReactionsMutation added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsMutation struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsMutation represents an operation that mutates the FeedbackChatHistoriesRecapsReactions nodes in the graph.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddChatID added in v0.19.0

AddChatID adds i to the "chat_id" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddCreatedAt added in v0.19.0

AddCreatedAt adds i to the "created_at" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddField added in v0.19.0

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddUpdatedAt added in v0.19.0

AddUpdatedAt adds i to the "updated_at" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddUserID added in v0.19.0

AddUserID adds i to the "user_id" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddedChatID added in v0.19.0

func (m *FeedbackChatHistoriesRecapsReactionsMutation) AddedChatID() (r int64, exists bool)

AddedChatID returns the value that was added to the "chat_id" field in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddedCreatedAt added in v0.19.0

func (m *FeedbackChatHistoriesRecapsReactionsMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddedEdges added in v0.19.0

AddedEdges returns all edge names that were set/added in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddedField added in v0.19.0

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddedFields added in v0.19.0

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddedIDs added in v0.19.0

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddedUpdatedAt added in v0.19.0

func (m *FeedbackChatHistoriesRecapsReactionsMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) AddedUserID added in v0.19.0

func (m *FeedbackChatHistoriesRecapsReactionsMutation) AddedUserID() (r int64, exists bool)

AddedUserID returns the value that was added to the "user_id" field in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ChatID added in v0.19.0

ChatID returns the value of the "chat_id" field in the mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ClearEdge added in v0.19.0

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ClearField added in v0.19.0

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ClearedEdges added in v0.19.0

ClearedEdges returns all edge names that were cleared in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ClearedFields added in v0.19.0

ClearedFields returns all nullable fields that were cleared during this mutation.

func (FeedbackChatHistoriesRecapsReactionsMutation) Client added in v0.19.0

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*FeedbackChatHistoriesRecapsReactionsMutation) CreatedAt added in v0.19.0

func (m *FeedbackChatHistoriesRecapsReactionsMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) EdgeCleared added in v0.19.0

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) Field added in v0.19.0

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*FeedbackChatHistoriesRecapsReactionsMutation) FieldCleared added in v0.19.0

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) Fields added in v0.19.0

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*FeedbackChatHistoriesRecapsReactionsMutation) GetType added in v0.19.0

GetType returns the value of the "type" field in the mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ID added in v0.19.0

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*FeedbackChatHistoriesRecapsReactionsMutation) IDs added in v0.19.0

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) LogID added in v0.19.0

LogID returns the value of the "log_id" field in the mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) OldChatID added in v0.19.0

OldChatID returns the old "chat_id" field's value of the FeedbackChatHistoriesRecapsReactions entity. If the FeedbackChatHistoriesRecapsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackChatHistoriesRecapsReactionsMutation) OldCreatedAt added in v0.19.0

OldCreatedAt returns the old "created_at" field's value of the FeedbackChatHistoriesRecapsReactions entity. If the FeedbackChatHistoriesRecapsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackChatHistoriesRecapsReactionsMutation) OldField added in v0.19.0

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*FeedbackChatHistoriesRecapsReactionsMutation) OldLogID added in v0.19.0

OldLogID returns the old "log_id" field's value of the FeedbackChatHistoriesRecapsReactions entity. If the FeedbackChatHistoriesRecapsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackChatHistoriesRecapsReactionsMutation) OldType added in v0.19.0

OldType returns the old "type" field's value of the FeedbackChatHistoriesRecapsReactions entity. If the FeedbackChatHistoriesRecapsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackChatHistoriesRecapsReactionsMutation) OldUpdatedAt added in v0.19.0

OldUpdatedAt returns the old "updated_at" field's value of the FeedbackChatHistoriesRecapsReactions entity. If the FeedbackChatHistoriesRecapsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackChatHistoriesRecapsReactionsMutation) OldUserID added in v0.19.0

OldUserID returns the old "user_id" field's value of the FeedbackChatHistoriesRecapsReactions entity. If the FeedbackChatHistoriesRecapsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackChatHistoriesRecapsReactionsMutation) Op added in v0.19.0

Op returns the operation name.

func (*FeedbackChatHistoriesRecapsReactionsMutation) RemovedEdges added in v0.19.0

RemovedEdges returns all edge names that were removed in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) RemovedIDs added in v0.19.0

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ResetChatID added in v0.19.0

ResetChatID resets all changes to the "chat_id" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ResetCreatedAt added in v0.19.0

ResetCreatedAt resets all changes to the "created_at" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ResetEdge added in v0.19.0

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ResetField added in v0.19.0

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ResetLogID added in v0.19.0

ResetLogID resets all changes to the "log_id" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ResetType added in v0.19.0

ResetType resets all changes to the "type" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ResetUpdatedAt added in v0.19.0

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) ResetUserID added in v0.19.0

ResetUserID resets all changes to the "user_id" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetChatID added in v0.19.0

SetChatID sets the "chat_id" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetCreatedAt added in v0.19.0

SetCreatedAt sets the "created_at" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetField added in v0.19.0

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetID added in v0.19.0

SetID sets the value of the id field. Note that this operation is only accepted on creation of FeedbackChatHistoriesRecapsReactions entities.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetLogID added in v0.19.0

SetLogID sets the "log_id" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetOp added in v0.19.0

SetOp allows setting the mutation operation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetType added in v0.19.0

SetType sets the "type" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetUpdatedAt added in v0.19.0

SetUpdatedAt sets the "updated_at" field.

func (*FeedbackChatHistoriesRecapsReactionsMutation) SetUserID added in v0.19.0

SetUserID sets the "user_id" field.

func (FeedbackChatHistoriesRecapsReactionsMutation) Tx added in v0.19.0

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*FeedbackChatHistoriesRecapsReactionsMutation) Type added in v0.19.0

Type returns the node type of this mutation (FeedbackChatHistoriesRecapsReactions).

func (*FeedbackChatHistoriesRecapsReactionsMutation) UpdatedAt added in v0.19.0

func (m *FeedbackChatHistoriesRecapsReactionsMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) UserID added in v0.19.0

UserID returns the value of the "user_id" field in the mutation.

func (*FeedbackChatHistoriesRecapsReactionsMutation) Where added in v0.19.0

Where appends a list predicates to the FeedbackChatHistoriesRecapsReactionsMutation builder.

func (*FeedbackChatHistoriesRecapsReactionsMutation) WhereP added in v0.19.0

WhereP appends storage-level predicates to the FeedbackChatHistoriesRecapsReactionsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type FeedbackChatHistoriesRecapsReactionsQuery added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsQuery struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsQuery is the builder for querying FeedbackChatHistoriesRecapsReactions entities.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Aggregate added in v0.19.0

Aggregate returns a FeedbackChatHistoriesRecapsReactionsSelect configured with the given aggregations.

func (*FeedbackChatHistoriesRecapsReactionsQuery) All added in v0.19.0

All executes the query and returns a list of FeedbackChatHistoriesRecapsReactionsSlice.

func (*FeedbackChatHistoriesRecapsReactionsQuery) AllX added in v0.19.0

AllX is like All, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Clone added in v0.19.0

Clone returns a duplicate of the FeedbackChatHistoriesRecapsReactionsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Count added in v0.19.0

Count returns the count of the given query.

func (*FeedbackChatHistoriesRecapsReactionsQuery) CountX added in v0.19.0

CountX is like Count, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Exist added in v0.19.0

Exist returns true if the query has elements in the graph.

func (*FeedbackChatHistoriesRecapsReactionsQuery) ExistX added in v0.19.0

ExistX is like Exist, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) First added in v0.19.0

First returns the first FeedbackChatHistoriesRecapsReactions entity from the query. Returns a *NotFoundError when no FeedbackChatHistoriesRecapsReactions was found.

func (*FeedbackChatHistoriesRecapsReactionsQuery) FirstID added in v0.19.0

FirstID returns the first FeedbackChatHistoriesRecapsReactions ID from the query. Returns a *NotFoundError when no FeedbackChatHistoriesRecapsReactions ID was found.

func (*FeedbackChatHistoriesRecapsReactionsQuery) FirstIDX added in v0.19.0

FirstIDX is like FirstID, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) FirstX added in v0.19.0

FirstX is like First, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) GroupBy added in v0.19.0

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.FeedbackChatHistoriesRecapsReactions.Query().
	GroupBy(feedbackchathistoriesrecapsreactions.FieldChatID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*FeedbackChatHistoriesRecapsReactionsQuery) IDs added in v0.19.0

IDs executes the query and returns a list of FeedbackChatHistoriesRecapsReactions IDs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) IDsX added in v0.19.0

IDsX is like IDs, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Limit added in v0.19.0

Limit the number of records to be returned by this query.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Offset added in v0.19.0

Offset to start from.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Only added in v0.19.0

Only returns a single FeedbackChatHistoriesRecapsReactions entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FeedbackChatHistoriesRecapsReactions entity is found. Returns a *NotFoundError when no FeedbackChatHistoriesRecapsReactions entities are found.

func (*FeedbackChatHistoriesRecapsReactionsQuery) OnlyID added in v0.19.0

OnlyID is like Only, but returns the only FeedbackChatHistoriesRecapsReactions ID in the query. Returns a *NotSingularError when more than one FeedbackChatHistoriesRecapsReactions ID is found. Returns a *NotFoundError when no entities are found.

func (*FeedbackChatHistoriesRecapsReactionsQuery) OnlyIDX added in v0.19.0

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) OnlyX added in v0.19.0

OnlyX is like Only, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Order added in v0.19.0

Order specifies how the records should be ordered.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Select added in v0.19.0

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
}

client.FeedbackChatHistoriesRecapsReactions.Query().
	Select(feedbackchathistoriesrecapsreactions.FieldChatID).
	Scan(ctx, &v)

func (*FeedbackChatHistoriesRecapsReactionsQuery) Unique added in v0.19.0

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*FeedbackChatHistoriesRecapsReactionsQuery) Where added in v0.19.0

Where adds a new predicate for the FeedbackChatHistoriesRecapsReactionsQuery builder.

type FeedbackChatHistoriesRecapsReactionsSelect added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsSelect struct {
	*FeedbackChatHistoriesRecapsReactionsQuery
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsSelect is the builder for selecting fields of FeedbackChatHistoriesRecapsReactions entities.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Aggregate added in v0.19.0

Aggregate adds the given aggregation functions to the selector query.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Bool added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsSelect) BoolX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Bools added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsSelect) BoolsX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Float64 added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Float64X added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Float64s added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Float64sX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Int added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsSelect) IntX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Ints added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsSelect) IntsX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Scan added in v0.19.0

Scan applies the selector query and scans the result into the given value.

func (*FeedbackChatHistoriesRecapsReactionsSelect) ScanX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsSelect) String added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsSelect) StringX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsSelect) Strings added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FeedbackChatHistoriesRecapsReactionsSelect) StringsX added in v0.19.0

func (s *FeedbackChatHistoriesRecapsReactionsSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type FeedbackChatHistoriesRecapsReactionsSlice added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsSlice []*FeedbackChatHistoriesRecapsReactions

FeedbackChatHistoriesRecapsReactionsSlice is a parsable slice of FeedbackChatHistoriesRecapsReactions.

type FeedbackChatHistoriesRecapsReactionsUpdate added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsUpdate struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsUpdate is the builder for updating FeedbackChatHistoriesRecapsReactions entities.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) AddChatID added in v0.19.0

AddChatID adds i to the "chat_id" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) AddCreatedAt added in v0.19.0

AddCreatedAt adds i to the "created_at" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) AddUpdatedAt added in v0.19.0

AddUpdatedAt adds i to the "updated_at" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) AddUserID added in v0.19.0

AddUserID adds i to the "user_id" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) Exec added in v0.19.0

Exec executes the query.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) Mutation added in v0.19.0

Mutation returns the FeedbackChatHistoriesRecapsReactionsMutation object of the builder.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) Save added in v0.19.0

Save executes the query and returns the number of nodes affected by the update operation.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SaveX added in v0.19.0

SaveX is like Save, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetChatID added in v0.19.0

SetChatID sets the "chat_id" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetCreatedAt added in v0.19.0

SetCreatedAt sets the "created_at" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetNillableChatID added in v0.19.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetNillableCreatedAt added in v0.19.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetNillableType added in v0.19.0

SetNillableType sets the "type" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetNillableUpdatedAt added in v0.19.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetNillableUserID added in v0.19.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetType added in v0.19.0

SetType sets the "type" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetUpdatedAt added in v0.19.0

SetUpdatedAt sets the "updated_at" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) SetUserID added in v0.19.0

SetUserID sets the "user_id" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdate) Where added in v0.19.0

Where appends a list predicates to the FeedbackChatHistoriesRecapsReactionsUpdate builder.

type FeedbackChatHistoriesRecapsReactionsUpdateOne added in v0.19.0

type FeedbackChatHistoriesRecapsReactionsUpdateOne struct {
	// contains filtered or unexported fields
}

FeedbackChatHistoriesRecapsReactionsUpdateOne is the builder for updating a single FeedbackChatHistoriesRecapsReactions entity.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) AddChatID added in v0.19.0

AddChatID adds i to the "chat_id" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) AddCreatedAt added in v0.19.0

AddCreatedAt adds i to the "created_at" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) AddUpdatedAt added in v0.19.0

AddUpdatedAt adds i to the "updated_at" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) AddUserID added in v0.19.0

AddUserID adds i to the "user_id" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) Exec added in v0.19.0

Exec executes the query on the entity.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) Mutation added in v0.19.0

Mutation returns the FeedbackChatHistoriesRecapsReactionsMutation object of the builder.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) Save added in v0.19.0

Save executes the query and returns the updated FeedbackChatHistoriesRecapsReactions entity.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SaveX added in v0.19.0

SaveX is like Save, but panics if an error occurs.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) Select added in v0.19.0

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetChatID added in v0.19.0

SetChatID sets the "chat_id" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetCreatedAt added in v0.19.0

SetCreatedAt sets the "created_at" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetNillableChatID added in v0.19.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetNillableCreatedAt added in v0.19.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetNillableType added in v0.19.0

SetNillableType sets the "type" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetNillableUpdatedAt added in v0.19.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetNillableUserID added in v0.19.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetType added in v0.19.0

SetType sets the "type" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetUpdatedAt added in v0.19.0

SetUpdatedAt sets the "updated_at" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) SetUserID added in v0.19.0

SetUserID sets the "user_id" field.

func (*FeedbackChatHistoriesRecapsReactionsUpdateOne) Where added in v0.19.0

Where appends a list predicates to the FeedbackChatHistoriesRecapsReactionsUpdate builder.

type FeedbackSummarizationsReactions added in v0.19.0

type FeedbackSummarizationsReactions struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// ChatID holds the value of the "chat_id" field.
	ChatID int64 `json:"chat_id,omitempty"`
	// LogID holds the value of the "log_id" field.
	LogID uuid.UUID `json:"log_id,omitempty"`
	// UserID holds the value of the "user_id" field.
	UserID int64 `json:"user_id,omitempty"`
	// Type holds the value of the "type" field.
	Type feedbacksummarizationsreactions.Type `json:"type,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactions is the model entity for the FeedbackSummarizationsReactions schema.

func (*FeedbackSummarizationsReactions) String added in v0.19.0

String implements the fmt.Stringer.

func (*FeedbackSummarizationsReactions) Unwrap added in v0.19.0

Unwrap unwraps the FeedbackSummarizationsReactions entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*FeedbackSummarizationsReactions) Update added in v0.19.0

Update returns a builder for updating this FeedbackSummarizationsReactions. Note that you need to call FeedbackSummarizationsReactions.Unwrap() before calling this method if this FeedbackSummarizationsReactions was returned from a transaction, and the transaction was committed or rolled back.

func (*FeedbackSummarizationsReactions) Value added in v0.19.0

Value returns the ent.Value that was dynamically selected and assigned to the FeedbackSummarizationsReactions. This includes values selected through modifiers, order, etc.

type FeedbackSummarizationsReactionsClient added in v0.19.0

type FeedbackSummarizationsReactionsClient struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsClient is a client for the FeedbackSummarizationsReactions schema.

func NewFeedbackSummarizationsReactionsClient added in v0.19.0

func NewFeedbackSummarizationsReactionsClient(c config) *FeedbackSummarizationsReactionsClient

NewFeedbackSummarizationsReactionsClient returns a client for the FeedbackSummarizationsReactions from the given config.

func (*FeedbackSummarizationsReactionsClient) Create added in v0.19.0

Create returns a builder for creating a FeedbackSummarizationsReactions entity.

func (*FeedbackSummarizationsReactionsClient) CreateBulk added in v0.19.0

CreateBulk returns a builder for creating a bulk of FeedbackSummarizationsReactions entities.

func (*FeedbackSummarizationsReactionsClient) Delete added in v0.19.0

Delete returns a delete builder for FeedbackSummarizationsReactions.

func (*FeedbackSummarizationsReactionsClient) DeleteOne added in v0.19.0

DeleteOne returns a builder for deleting the given entity.

func (*FeedbackSummarizationsReactionsClient) DeleteOneID added in v0.19.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*FeedbackSummarizationsReactionsClient) Get added in v0.19.0

Get returns a FeedbackSummarizationsReactions entity by its id.

func (*FeedbackSummarizationsReactionsClient) GetX added in v0.19.0

GetX is like Get, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsClient) Hooks added in v0.19.0

Hooks returns the client hooks.

func (*FeedbackSummarizationsReactionsClient) Intercept added in v0.19.0

func (c *FeedbackSummarizationsReactionsClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `feedbacksummarizationsreactions.Intercept(f(g(h())))`.

func (*FeedbackSummarizationsReactionsClient) Interceptors added in v0.19.0

Interceptors returns the client interceptors.

func (*FeedbackSummarizationsReactionsClient) MapCreateBulk added in v0.22.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*FeedbackSummarizationsReactionsClient) Query added in v0.19.0

Query returns a query builder for FeedbackSummarizationsReactions.

func (*FeedbackSummarizationsReactionsClient) Update added in v0.19.0

Update returns an update builder for FeedbackSummarizationsReactions.

func (*FeedbackSummarizationsReactionsClient) UpdateOne added in v0.19.0

UpdateOne returns an update builder for the given entity.

func (*FeedbackSummarizationsReactionsClient) UpdateOneID added in v0.19.0

UpdateOneID returns an update builder for the given id.

func (*FeedbackSummarizationsReactionsClient) Use added in v0.19.0

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `feedbacksummarizationsreactions.Hooks(f(g(h())))`.

type FeedbackSummarizationsReactionsCreate added in v0.19.0

type FeedbackSummarizationsReactionsCreate struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsCreate is the builder for creating a FeedbackSummarizationsReactions entity.

func (*FeedbackSummarizationsReactionsCreate) Exec added in v0.19.0

Exec executes the query.

func (*FeedbackSummarizationsReactionsCreate) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsCreate) Mutation added in v0.19.0

Mutation returns the FeedbackSummarizationsReactionsMutation object of the builder.

func (*FeedbackSummarizationsReactionsCreate) Save added in v0.19.0

Save creates the FeedbackSummarizationsReactions in the database.

func (*FeedbackSummarizationsReactionsCreate) SaveX added in v0.19.0

SaveX calls Save and panics if Save returns an error.

func (*FeedbackSummarizationsReactionsCreate) SetChatID added in v0.19.0

SetChatID sets the "chat_id" field.

func (*FeedbackSummarizationsReactionsCreate) SetCreatedAt added in v0.19.0

SetCreatedAt sets the "created_at" field.

func (*FeedbackSummarizationsReactionsCreate) SetID added in v0.19.0

SetID sets the "id" field.

func (*FeedbackSummarizationsReactionsCreate) SetLogID added in v0.19.0

SetLogID sets the "log_id" field.

func (*FeedbackSummarizationsReactionsCreate) SetNillableChatID added in v0.19.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsCreate) SetNillableCreatedAt added in v0.19.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsCreate) SetNillableID added in v0.19.0

SetNillableID sets the "id" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsCreate) SetNillableLogID added in v0.19.0

SetNillableLogID sets the "log_id" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsCreate) SetNillableType added in v0.19.0

SetNillableType sets the "type" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsCreate) SetNillableUpdatedAt added in v0.19.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsCreate) SetNillableUserID added in v0.19.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsCreate) SetType added in v0.19.0

SetType sets the "type" field.

func (*FeedbackSummarizationsReactionsCreate) SetUpdatedAt added in v0.19.0

SetUpdatedAt sets the "updated_at" field.

func (*FeedbackSummarizationsReactionsCreate) SetUserID added in v0.19.0

SetUserID sets the "user_id" field.

type FeedbackSummarizationsReactionsCreateBulk added in v0.19.0

type FeedbackSummarizationsReactionsCreateBulk struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsCreateBulk is the builder for creating many FeedbackSummarizationsReactions entities in bulk.

func (*FeedbackSummarizationsReactionsCreateBulk) Exec added in v0.19.0

Exec executes the query.

func (*FeedbackSummarizationsReactionsCreateBulk) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsCreateBulk) Save added in v0.19.0

Save creates the FeedbackSummarizationsReactions entities in the database.

func (*FeedbackSummarizationsReactionsCreateBulk) SaveX added in v0.19.0

SaveX is like Save, but panics if an error occurs.

type FeedbackSummarizationsReactionsDelete added in v0.19.0

type FeedbackSummarizationsReactionsDelete struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsDelete is the builder for deleting a FeedbackSummarizationsReactions entity.

func (*FeedbackSummarizationsReactionsDelete) Exec added in v0.19.0

Exec executes the deletion query and returns how many vertices were deleted.

func (*FeedbackSummarizationsReactionsDelete) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsDelete) Where added in v0.19.0

Where appends a list predicates to the FeedbackSummarizationsReactionsDelete builder.

type FeedbackSummarizationsReactionsDeleteOne added in v0.19.0

type FeedbackSummarizationsReactionsDeleteOne struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsDeleteOne is the builder for deleting a single FeedbackSummarizationsReactions entity.

func (*FeedbackSummarizationsReactionsDeleteOne) Exec added in v0.19.0

Exec executes the deletion query.

func (*FeedbackSummarizationsReactionsDeleteOne) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsDeleteOne) Where added in v0.19.0

Where appends a list predicates to the FeedbackSummarizationsReactionsDelete builder.

type FeedbackSummarizationsReactionsGroupBy added in v0.19.0

type FeedbackSummarizationsReactionsGroupBy struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsGroupBy is the group-by builder for FeedbackSummarizationsReactions entities.

func (*FeedbackSummarizationsReactionsGroupBy) Aggregate added in v0.19.0

Aggregate adds the given aggregation functions to the group-by query.

func (*FeedbackSummarizationsReactionsGroupBy) Bool added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsGroupBy) BoolX added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsGroupBy) Bools added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsGroupBy) BoolsX added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsGroupBy) Float64 added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsGroupBy) Float64X added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsGroupBy) Float64s added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsGroupBy) Float64sX added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsGroupBy) Int added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsGroupBy) IntX added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsGroupBy) Ints added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsGroupBy) IntsX added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsGroupBy) Scan added in v0.19.0

Scan applies the selector query and scans the result into the given value.

func (*FeedbackSummarizationsReactionsGroupBy) ScanX added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsGroupBy) String added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsGroupBy) StringX added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsGroupBy) Strings added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsGroupBy) StringsX added in v0.19.0

func (s *FeedbackSummarizationsReactionsGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type FeedbackSummarizationsReactionsMutation added in v0.19.0

type FeedbackSummarizationsReactionsMutation struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsMutation represents an operation that mutates the FeedbackSummarizationsReactions nodes in the graph.

func (*FeedbackSummarizationsReactionsMutation) AddChatID added in v0.19.0

AddChatID adds i to the "chat_id" field.

func (*FeedbackSummarizationsReactionsMutation) AddCreatedAt added in v0.19.0

AddCreatedAt adds i to the "created_at" field.

func (*FeedbackSummarizationsReactionsMutation) AddField added in v0.19.0

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*FeedbackSummarizationsReactionsMutation) AddUpdatedAt added in v0.19.0

AddUpdatedAt adds i to the "updated_at" field.

func (*FeedbackSummarizationsReactionsMutation) AddUserID added in v0.19.0

AddUserID adds i to the "user_id" field.

func (*FeedbackSummarizationsReactionsMutation) AddedChatID added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) AddedChatID() (r int64, exists bool)

AddedChatID returns the value that was added to the "chat_id" field in this mutation.

func (*FeedbackSummarizationsReactionsMutation) AddedCreatedAt added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*FeedbackSummarizationsReactionsMutation) AddedEdges added in v0.19.0

AddedEdges returns all edge names that were set/added in this mutation.

func (*FeedbackSummarizationsReactionsMutation) AddedField added in v0.19.0

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*FeedbackSummarizationsReactionsMutation) AddedFields added in v0.19.0

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*FeedbackSummarizationsReactionsMutation) AddedIDs added in v0.19.0

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*FeedbackSummarizationsReactionsMutation) AddedUpdatedAt added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*FeedbackSummarizationsReactionsMutation) AddedUserID added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) AddedUserID() (r int64, exists bool)

AddedUserID returns the value that was added to the "user_id" field in this mutation.

func (*FeedbackSummarizationsReactionsMutation) ChatID added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) ChatID() (r int64, exists bool)

ChatID returns the value of the "chat_id" field in the mutation.

func (*FeedbackSummarizationsReactionsMutation) ClearEdge added in v0.19.0

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*FeedbackSummarizationsReactionsMutation) ClearField added in v0.19.0

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*FeedbackSummarizationsReactionsMutation) ClearedEdges added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*FeedbackSummarizationsReactionsMutation) ClearedFields added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (FeedbackSummarizationsReactionsMutation) Client added in v0.19.0

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*FeedbackSummarizationsReactionsMutation) CreatedAt added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*FeedbackSummarizationsReactionsMutation) EdgeCleared added in v0.19.0

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*FeedbackSummarizationsReactionsMutation) Field added in v0.19.0

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*FeedbackSummarizationsReactionsMutation) FieldCleared added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*FeedbackSummarizationsReactionsMutation) Fields added in v0.19.0

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*FeedbackSummarizationsReactionsMutation) GetType added in v0.19.0

GetType returns the value of the "type" field in the mutation.

func (*FeedbackSummarizationsReactionsMutation) ID added in v0.19.0

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*FeedbackSummarizationsReactionsMutation) IDs added in v0.19.0

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*FeedbackSummarizationsReactionsMutation) LogID added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) LogID() (r uuid.UUID, exists bool)

LogID returns the value of the "log_id" field in the mutation.

func (*FeedbackSummarizationsReactionsMutation) OldChatID added in v0.19.0

OldChatID returns the old "chat_id" field's value of the FeedbackSummarizationsReactions entity. If the FeedbackSummarizationsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackSummarizationsReactionsMutation) OldCreatedAt added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)

OldCreatedAt returns the old "created_at" field's value of the FeedbackSummarizationsReactions entity. If the FeedbackSummarizationsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackSummarizationsReactionsMutation) OldField added in v0.19.0

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*FeedbackSummarizationsReactionsMutation) OldLogID added in v0.19.0

OldLogID returns the old "log_id" field's value of the FeedbackSummarizationsReactions entity. If the FeedbackSummarizationsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackSummarizationsReactionsMutation) OldType added in v0.19.0

OldType returns the old "type" field's value of the FeedbackSummarizationsReactions entity. If the FeedbackSummarizationsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackSummarizationsReactionsMutation) OldUpdatedAt added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)

OldUpdatedAt returns the old "updated_at" field's value of the FeedbackSummarizationsReactions entity. If the FeedbackSummarizationsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackSummarizationsReactionsMutation) OldUserID added in v0.19.0

OldUserID returns the old "user_id" field's value of the FeedbackSummarizationsReactions entity. If the FeedbackSummarizationsReactions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FeedbackSummarizationsReactionsMutation) Op added in v0.19.0

Op returns the operation name.

func (*FeedbackSummarizationsReactionsMutation) RemovedEdges added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*FeedbackSummarizationsReactionsMutation) RemovedIDs added in v0.19.0

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*FeedbackSummarizationsReactionsMutation) ResetChatID added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) ResetChatID()

ResetChatID resets all changes to the "chat_id" field.

func (*FeedbackSummarizationsReactionsMutation) ResetCreatedAt added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*FeedbackSummarizationsReactionsMutation) ResetEdge added in v0.19.0

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*FeedbackSummarizationsReactionsMutation) ResetField added in v0.19.0

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*FeedbackSummarizationsReactionsMutation) ResetLogID added in v0.19.0

ResetLogID resets all changes to the "log_id" field.

func (*FeedbackSummarizationsReactionsMutation) ResetType added in v0.19.0

ResetType resets all changes to the "type" field.

func (*FeedbackSummarizationsReactionsMutation) ResetUpdatedAt added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*FeedbackSummarizationsReactionsMutation) ResetUserID added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) ResetUserID()

ResetUserID resets all changes to the "user_id" field.

func (*FeedbackSummarizationsReactionsMutation) SetChatID added in v0.19.0

SetChatID sets the "chat_id" field.

func (*FeedbackSummarizationsReactionsMutation) SetCreatedAt added in v0.19.0

SetCreatedAt sets the "created_at" field.

func (*FeedbackSummarizationsReactionsMutation) SetField added in v0.19.0

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*FeedbackSummarizationsReactionsMutation) SetID added in v0.19.0

SetID sets the value of the id field. Note that this operation is only accepted on creation of FeedbackSummarizationsReactions entities.

func (*FeedbackSummarizationsReactionsMutation) SetLogID added in v0.19.0

SetLogID sets the "log_id" field.

func (*FeedbackSummarizationsReactionsMutation) SetOp added in v0.19.0

SetOp allows setting the mutation operation.

func (*FeedbackSummarizationsReactionsMutation) SetType added in v0.19.0

SetType sets the "type" field.

func (*FeedbackSummarizationsReactionsMutation) SetUpdatedAt added in v0.19.0

SetUpdatedAt sets the "updated_at" field.

func (*FeedbackSummarizationsReactionsMutation) SetUserID added in v0.19.0

SetUserID sets the "user_id" field.

func (FeedbackSummarizationsReactionsMutation) Tx added in v0.19.0

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*FeedbackSummarizationsReactionsMutation) Type added in v0.19.0

Type returns the node type of this mutation (FeedbackSummarizationsReactions).

func (*FeedbackSummarizationsReactionsMutation) UpdatedAt added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*FeedbackSummarizationsReactionsMutation) UserID added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) UserID() (r int64, exists bool)

UserID returns the value of the "user_id" field in the mutation.

func (*FeedbackSummarizationsReactionsMutation) Where added in v0.19.0

Where appends a list predicates to the FeedbackSummarizationsReactionsMutation builder.

func (*FeedbackSummarizationsReactionsMutation) WhereP added in v0.19.0

func (m *FeedbackSummarizationsReactionsMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the FeedbackSummarizationsReactionsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type FeedbackSummarizationsReactionsQuery added in v0.19.0

type FeedbackSummarizationsReactionsQuery struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsQuery is the builder for querying FeedbackSummarizationsReactions entities.

func (*FeedbackSummarizationsReactionsQuery) Aggregate added in v0.19.0

Aggregate returns a FeedbackSummarizationsReactionsSelect configured with the given aggregations.

func (*FeedbackSummarizationsReactionsQuery) All added in v0.19.0

All executes the query and returns a list of FeedbackSummarizationsReactionsSlice.

func (*FeedbackSummarizationsReactionsQuery) AllX added in v0.19.0

AllX is like All, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsQuery) Clone added in v0.19.0

Clone returns a duplicate of the FeedbackSummarizationsReactionsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*FeedbackSummarizationsReactionsQuery) Count added in v0.19.0

Count returns the count of the given query.

func (*FeedbackSummarizationsReactionsQuery) CountX added in v0.19.0

CountX is like Count, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsQuery) Exist added in v0.19.0

Exist returns true if the query has elements in the graph.

func (*FeedbackSummarizationsReactionsQuery) ExistX added in v0.19.0

ExistX is like Exist, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsQuery) First added in v0.19.0

First returns the first FeedbackSummarizationsReactions entity from the query. Returns a *NotFoundError when no FeedbackSummarizationsReactions was found.

func (*FeedbackSummarizationsReactionsQuery) FirstID added in v0.19.0

func (fsrq *FeedbackSummarizationsReactionsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first FeedbackSummarizationsReactions ID from the query. Returns a *NotFoundError when no FeedbackSummarizationsReactions ID was found.

func (*FeedbackSummarizationsReactionsQuery) FirstIDX added in v0.19.0

FirstIDX is like FirstID, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsQuery) FirstX added in v0.19.0

FirstX is like First, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsQuery) GroupBy added in v0.19.0

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.FeedbackSummarizationsReactions.Query().
	GroupBy(feedbacksummarizationsreactions.FieldChatID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*FeedbackSummarizationsReactionsQuery) IDs added in v0.19.0

func (fsrq *FeedbackSummarizationsReactionsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of FeedbackSummarizationsReactions IDs.

func (*FeedbackSummarizationsReactionsQuery) IDsX added in v0.19.0

IDsX is like IDs, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsQuery) Limit added in v0.19.0

Limit the number of records to be returned by this query.

func (*FeedbackSummarizationsReactionsQuery) Offset added in v0.19.0

Offset to start from.

func (*FeedbackSummarizationsReactionsQuery) Only added in v0.19.0

Only returns a single FeedbackSummarizationsReactions entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FeedbackSummarizationsReactions entity is found. Returns a *NotFoundError when no FeedbackSummarizationsReactions entities are found.

func (*FeedbackSummarizationsReactionsQuery) OnlyID added in v0.19.0

func (fsrq *FeedbackSummarizationsReactionsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only FeedbackSummarizationsReactions ID in the query. Returns a *NotSingularError when more than one FeedbackSummarizationsReactions ID is found. Returns a *NotFoundError when no entities are found.

func (*FeedbackSummarizationsReactionsQuery) OnlyIDX added in v0.19.0

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsQuery) OnlyX added in v0.19.0

OnlyX is like Only, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsQuery) Order added in v0.19.0

Order specifies how the records should be ordered.

func (*FeedbackSummarizationsReactionsQuery) Select added in v0.19.0

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
}

client.FeedbackSummarizationsReactions.Query().
	Select(feedbacksummarizationsreactions.FieldChatID).
	Scan(ctx, &v)

func (*FeedbackSummarizationsReactionsQuery) Unique added in v0.19.0

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*FeedbackSummarizationsReactionsQuery) Where added in v0.19.0

Where adds a new predicate for the FeedbackSummarizationsReactionsQuery builder.

type FeedbackSummarizationsReactionsSelect added in v0.19.0

type FeedbackSummarizationsReactionsSelect struct {
	*FeedbackSummarizationsReactionsQuery
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsSelect is the builder for selecting fields of FeedbackSummarizationsReactions entities.

func (*FeedbackSummarizationsReactionsSelect) Aggregate added in v0.19.0

Aggregate adds the given aggregation functions to the selector query.

func (*FeedbackSummarizationsReactionsSelect) Bool added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsSelect) BoolX added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsSelect) Bools added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsSelect) BoolsX added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsSelect) Float64 added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsSelect) Float64X added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsSelect) Float64s added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsSelect) Float64sX added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsSelect) Int added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsSelect) IntX added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsSelect) Ints added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsSelect) IntsX added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsSelect) Scan added in v0.19.0

Scan applies the selector query and scans the result into the given value.

func (*FeedbackSummarizationsReactionsSelect) ScanX added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsSelect) String added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsSelect) StringX added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsSelect) Strings added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FeedbackSummarizationsReactionsSelect) StringsX added in v0.19.0

func (s *FeedbackSummarizationsReactionsSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type FeedbackSummarizationsReactionsSlice added in v0.19.0

type FeedbackSummarizationsReactionsSlice []*FeedbackSummarizationsReactions

FeedbackSummarizationsReactionsSlice is a parsable slice of FeedbackSummarizationsReactions.

type FeedbackSummarizationsReactionsUpdate added in v0.19.0

type FeedbackSummarizationsReactionsUpdate struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsUpdate is the builder for updating FeedbackSummarizationsReactions entities.

func (*FeedbackSummarizationsReactionsUpdate) AddChatID added in v0.19.0

AddChatID adds i to the "chat_id" field.

func (*FeedbackSummarizationsReactionsUpdate) AddCreatedAt added in v0.19.0

AddCreatedAt adds i to the "created_at" field.

func (*FeedbackSummarizationsReactionsUpdate) AddUpdatedAt added in v0.19.0

AddUpdatedAt adds i to the "updated_at" field.

func (*FeedbackSummarizationsReactionsUpdate) AddUserID added in v0.19.0

AddUserID adds i to the "user_id" field.

func (*FeedbackSummarizationsReactionsUpdate) Exec added in v0.19.0

Exec executes the query.

func (*FeedbackSummarizationsReactionsUpdate) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsUpdate) Mutation added in v0.19.0

Mutation returns the FeedbackSummarizationsReactionsMutation object of the builder.

func (*FeedbackSummarizationsReactionsUpdate) Save added in v0.19.0

Save executes the query and returns the number of nodes affected by the update operation.

func (*FeedbackSummarizationsReactionsUpdate) SaveX added in v0.19.0

SaveX is like Save, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsUpdate) SetChatID added in v0.19.0

SetChatID sets the "chat_id" field.

func (*FeedbackSummarizationsReactionsUpdate) SetCreatedAt added in v0.19.0

SetCreatedAt sets the "created_at" field.

func (*FeedbackSummarizationsReactionsUpdate) SetNillableChatID added in v0.19.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdate) SetNillableCreatedAt added in v0.19.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdate) SetNillableType added in v0.19.0

SetNillableType sets the "type" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdate) SetNillableUpdatedAt added in v0.19.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdate) SetNillableUserID added in v0.19.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdate) SetType added in v0.19.0

SetType sets the "type" field.

func (*FeedbackSummarizationsReactionsUpdate) SetUpdatedAt added in v0.19.0

SetUpdatedAt sets the "updated_at" field.

func (*FeedbackSummarizationsReactionsUpdate) SetUserID added in v0.19.0

SetUserID sets the "user_id" field.

func (*FeedbackSummarizationsReactionsUpdate) Where added in v0.19.0

Where appends a list predicates to the FeedbackSummarizationsReactionsUpdate builder.

type FeedbackSummarizationsReactionsUpdateOne added in v0.19.0

type FeedbackSummarizationsReactionsUpdateOne struct {
	// contains filtered or unexported fields
}

FeedbackSummarizationsReactionsUpdateOne is the builder for updating a single FeedbackSummarizationsReactions entity.

func (*FeedbackSummarizationsReactionsUpdateOne) AddChatID added in v0.19.0

AddChatID adds i to the "chat_id" field.

func (*FeedbackSummarizationsReactionsUpdateOne) AddCreatedAt added in v0.19.0

AddCreatedAt adds i to the "created_at" field.

func (*FeedbackSummarizationsReactionsUpdateOne) AddUpdatedAt added in v0.19.0

AddUpdatedAt adds i to the "updated_at" field.

func (*FeedbackSummarizationsReactionsUpdateOne) AddUserID added in v0.19.0

AddUserID adds i to the "user_id" field.

func (*FeedbackSummarizationsReactionsUpdateOne) Exec added in v0.19.0

Exec executes the query on the entity.

func (*FeedbackSummarizationsReactionsUpdateOne) ExecX added in v0.19.0

ExecX is like Exec, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsUpdateOne) Mutation added in v0.19.0

Mutation returns the FeedbackSummarizationsReactionsMutation object of the builder.

func (*FeedbackSummarizationsReactionsUpdateOne) Save added in v0.19.0

Save executes the query and returns the updated FeedbackSummarizationsReactions entity.

func (*FeedbackSummarizationsReactionsUpdateOne) SaveX added in v0.19.0

SaveX is like Save, but panics if an error occurs.

func (*FeedbackSummarizationsReactionsUpdateOne) Select added in v0.19.0

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*FeedbackSummarizationsReactionsUpdateOne) SetChatID added in v0.19.0

SetChatID sets the "chat_id" field.

func (*FeedbackSummarizationsReactionsUpdateOne) SetCreatedAt added in v0.19.0

SetCreatedAt sets the "created_at" field.

func (*FeedbackSummarizationsReactionsUpdateOne) SetNillableChatID added in v0.19.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdateOne) SetNillableCreatedAt added in v0.19.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdateOne) SetNillableType added in v0.19.0

SetNillableType sets the "type" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdateOne) SetNillableUpdatedAt added in v0.19.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdateOne) SetNillableUserID added in v0.19.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*FeedbackSummarizationsReactionsUpdateOne) SetType added in v0.19.0

SetType sets the "type" field.

func (*FeedbackSummarizationsReactionsUpdateOne) SetUpdatedAt added in v0.19.0

SetUpdatedAt sets the "updated_at" field.

func (*FeedbackSummarizationsReactionsUpdateOne) SetUserID added in v0.19.0

SetUserID sets the "user_id" field.

func (*FeedbackSummarizationsReactionsUpdateOne) Where added in v0.19.0

Where appends a list predicates to the FeedbackSummarizationsReactionsUpdate builder.

type Hook

type Hook = ent.Hook

ent aliases to avoid import conflicts in user's code.

type InterceptFunc

type InterceptFunc = ent.InterceptFunc

ent aliases to avoid import conflicts in user's code.

type Interceptor

type Interceptor = ent.Interceptor

ent aliases to avoid import conflicts in user's code.

type LogChatHistoriesRecap

type LogChatHistoriesRecap struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// ChatID holds the value of the "chat_id" field.
	ChatID int64 `json:"chat_id,omitempty"`
	// RecapInputs holds the value of the "recap_inputs" field.
	RecapInputs string `json:"recap_inputs,omitempty"`
	// RecapOutputs holds the value of the "recap_outputs" field.
	RecapOutputs string `json:"recap_outputs,omitempty"`
	// FromPlatform holds the value of the "from_platform" field.
	FromPlatform int `json:"from_platform,omitempty"`
	// PromptTokenUsage holds the value of the "prompt_token_usage" field.
	PromptTokenUsage int `json:"prompt_token_usage,omitempty"`
	// CompletionTokenUsage holds the value of the "completion_token_usage" field.
	CompletionTokenUsage int `json:"completion_token_usage,omitempty"`
	// TotalTokenUsage holds the value of the "total_token_usage" field.
	TotalTokenUsage int `json:"total_token_usage,omitempty"`
	// RecapType holds the value of the "recap_type" field.
	RecapType int `json:"recap_type,omitempty"`
	// ModelName holds the value of the "model_name" field.
	ModelName string `json:"model_name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

LogChatHistoriesRecap is the model entity for the LogChatHistoriesRecap schema.

func (*LogChatHistoriesRecap) String

func (lchr *LogChatHistoriesRecap) String() string

String implements the fmt.Stringer.

func (*LogChatHistoriesRecap) Unwrap

Unwrap unwraps the LogChatHistoriesRecap entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*LogChatHistoriesRecap) Update

Update returns a builder for updating this LogChatHistoriesRecap. Note that you need to call LogChatHistoriesRecap.Unwrap() before calling this method if this LogChatHistoriesRecap was returned from a transaction, and the transaction was committed or rolled back.

func (*LogChatHistoriesRecap) Value

func (lchr *LogChatHistoriesRecap) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the LogChatHistoriesRecap. This includes values selected through modifiers, order, etc.

type LogChatHistoriesRecapClient

type LogChatHistoriesRecapClient struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapClient is a client for the LogChatHistoriesRecap schema.

func NewLogChatHistoriesRecapClient

func NewLogChatHistoriesRecapClient(c config) *LogChatHistoriesRecapClient

NewLogChatHistoriesRecapClient returns a client for the LogChatHistoriesRecap from the given config.

func (*LogChatHistoriesRecapClient) Create

Create returns a builder for creating a LogChatHistoriesRecap entity.

func (*LogChatHistoriesRecapClient) CreateBulk

CreateBulk returns a builder for creating a bulk of LogChatHistoriesRecap entities.

func (*LogChatHistoriesRecapClient) Delete

Delete returns a delete builder for LogChatHistoriesRecap.

func (*LogChatHistoriesRecapClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*LogChatHistoriesRecapClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*LogChatHistoriesRecapClient) Get

Get returns a LogChatHistoriesRecap entity by its id.

func (*LogChatHistoriesRecapClient) GetX

GetX is like Get, but panics if an error occurs.

func (*LogChatHistoriesRecapClient) Hooks

func (c *LogChatHistoriesRecapClient) Hooks() []Hook

Hooks returns the client hooks.

func (*LogChatHistoriesRecapClient) Intercept

func (c *LogChatHistoriesRecapClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `logchathistoriesrecap.Intercept(f(g(h())))`.

func (*LogChatHistoriesRecapClient) Interceptors

func (c *LogChatHistoriesRecapClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*LogChatHistoriesRecapClient) MapCreateBulk added in v0.22.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*LogChatHistoriesRecapClient) Query

Query returns a query builder for LogChatHistoriesRecap.

func (*LogChatHistoriesRecapClient) Update

Update returns an update builder for LogChatHistoriesRecap.

func (*LogChatHistoriesRecapClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*LogChatHistoriesRecapClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*LogChatHistoriesRecapClient) Use

func (c *LogChatHistoriesRecapClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `logchathistoriesrecap.Hooks(f(g(h())))`.

type LogChatHistoriesRecapCreate

type LogChatHistoriesRecapCreate struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapCreate is the builder for creating a LogChatHistoriesRecap entity.

func (*LogChatHistoriesRecapCreate) Exec

Exec executes the query.

func (*LogChatHistoriesRecapCreate) ExecX

func (lchrc *LogChatHistoriesRecapCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogChatHistoriesRecapCreate) Mutation

Mutation returns the LogChatHistoriesRecapMutation object of the builder.

func (*LogChatHistoriesRecapCreate) Save

Save creates the LogChatHistoriesRecap in the database.

func (*LogChatHistoriesRecapCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*LogChatHistoriesRecapCreate) SetChatID

SetChatID sets the "chat_id" field.

func (*LogChatHistoriesRecapCreate) SetCompletionTokenUsage

func (lchrc *LogChatHistoriesRecapCreate) SetCompletionTokenUsage(i int) *LogChatHistoriesRecapCreate

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*LogChatHistoriesRecapCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*LogChatHistoriesRecapCreate) SetFromPlatform

func (lchrc *LogChatHistoriesRecapCreate) SetFromPlatform(i int) *LogChatHistoriesRecapCreate

SetFromPlatform sets the "from_platform" field.

func (*LogChatHistoriesRecapCreate) SetID

SetID sets the "id" field.

func (*LogChatHistoriesRecapCreate) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*LogChatHistoriesRecapCreate) SetNillableChatID

func (lchrc *LogChatHistoriesRecapCreate) SetNillableChatID(i *int64) *LogChatHistoriesRecapCreate

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableCompletionTokenUsage

func (lchrc *LogChatHistoriesRecapCreate) SetNillableCompletionTokenUsage(i *int) *LogChatHistoriesRecapCreate

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableCreatedAt

func (lchrc *LogChatHistoriesRecapCreate) SetNillableCreatedAt(i *int64) *LogChatHistoriesRecapCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableFromPlatform

func (lchrc *LogChatHistoriesRecapCreate) SetNillableFromPlatform(i *int) *LogChatHistoriesRecapCreate

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableModelName added in v0.18.0

func (lchrc *LogChatHistoriesRecapCreate) SetNillableModelName(s *string) *LogChatHistoriesRecapCreate

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillablePromptTokenUsage

func (lchrc *LogChatHistoriesRecapCreate) SetNillablePromptTokenUsage(i *int) *LogChatHistoriesRecapCreate

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableRecapInputs

func (lchrc *LogChatHistoriesRecapCreate) SetNillableRecapInputs(s *string) *LogChatHistoriesRecapCreate

SetNillableRecapInputs sets the "recap_inputs" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableRecapOutputs

func (lchrc *LogChatHistoriesRecapCreate) SetNillableRecapOutputs(s *string) *LogChatHistoriesRecapCreate

SetNillableRecapOutputs sets the "recap_outputs" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableRecapType added in v0.14.0

func (lchrc *LogChatHistoriesRecapCreate) SetNillableRecapType(i *int) *LogChatHistoriesRecapCreate

SetNillableRecapType sets the "recap_type" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableTotalTokenUsage

func (lchrc *LogChatHistoriesRecapCreate) SetNillableTotalTokenUsage(i *int) *LogChatHistoriesRecapCreate

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetNillableUpdatedAt

func (lchrc *LogChatHistoriesRecapCreate) SetNillableUpdatedAt(i *int64) *LogChatHistoriesRecapCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LogChatHistoriesRecapCreate) SetPromptTokenUsage

func (lchrc *LogChatHistoriesRecapCreate) SetPromptTokenUsage(i int) *LogChatHistoriesRecapCreate

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*LogChatHistoriesRecapCreate) SetRecapInputs

SetRecapInputs sets the "recap_inputs" field.

func (*LogChatHistoriesRecapCreate) SetRecapOutputs

SetRecapOutputs sets the "recap_outputs" field.

func (*LogChatHistoriesRecapCreate) SetRecapType added in v0.14.0

SetRecapType sets the "recap_type" field.

func (*LogChatHistoriesRecapCreate) SetTotalTokenUsage

func (lchrc *LogChatHistoriesRecapCreate) SetTotalTokenUsage(i int) *LogChatHistoriesRecapCreate

SetTotalTokenUsage sets the "total_token_usage" field.

func (*LogChatHistoriesRecapCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type LogChatHistoriesRecapCreateBulk

type LogChatHistoriesRecapCreateBulk struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapCreateBulk is the builder for creating many LogChatHistoriesRecap entities in bulk.

func (*LogChatHistoriesRecapCreateBulk) Exec

Exec executes the query.

func (*LogChatHistoriesRecapCreateBulk) ExecX

func (lchrcb *LogChatHistoriesRecapCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogChatHistoriesRecapCreateBulk) Save

Save creates the LogChatHistoriesRecap entities in the database.

func (*LogChatHistoriesRecapCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type LogChatHistoriesRecapDelete

type LogChatHistoriesRecapDelete struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapDelete is the builder for deleting a LogChatHistoriesRecap entity.

func (*LogChatHistoriesRecapDelete) Exec

func (lchrd *LogChatHistoriesRecapDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*LogChatHistoriesRecapDelete) ExecX

func (lchrd *LogChatHistoriesRecapDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*LogChatHistoriesRecapDelete) Where

Where appends a list predicates to the LogChatHistoriesRecapDelete builder.

type LogChatHistoriesRecapDeleteOne

type LogChatHistoriesRecapDeleteOne struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapDeleteOne is the builder for deleting a single LogChatHistoriesRecap entity.

func (*LogChatHistoriesRecapDeleteOne) Exec

Exec executes the deletion query.

func (*LogChatHistoriesRecapDeleteOne) ExecX

func (lchrdo *LogChatHistoriesRecapDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogChatHistoriesRecapDeleteOne) Where

Where appends a list predicates to the LogChatHistoriesRecapDelete builder.

type LogChatHistoriesRecapGroupBy

type LogChatHistoriesRecapGroupBy struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapGroupBy is the group-by builder for LogChatHistoriesRecap entities.

func (*LogChatHistoriesRecapGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*LogChatHistoriesRecapGroupBy) Bool

func (s *LogChatHistoriesRecapGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapGroupBy) BoolX

func (s *LogChatHistoriesRecapGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LogChatHistoriesRecapGroupBy) Bools

func (s *LogChatHistoriesRecapGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapGroupBy) BoolsX

func (s *LogChatHistoriesRecapGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LogChatHistoriesRecapGroupBy) Float64

func (s *LogChatHistoriesRecapGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapGroupBy) Float64X

func (s *LogChatHistoriesRecapGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LogChatHistoriesRecapGroupBy) Float64s

func (s *LogChatHistoriesRecapGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapGroupBy) Float64sX

func (s *LogChatHistoriesRecapGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LogChatHistoriesRecapGroupBy) Int

func (s *LogChatHistoriesRecapGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapGroupBy) IntX

func (s *LogChatHistoriesRecapGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LogChatHistoriesRecapGroupBy) Ints

func (s *LogChatHistoriesRecapGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapGroupBy) IntsX

func (s *LogChatHistoriesRecapGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LogChatHistoriesRecapGroupBy) Scan

func (lchrgb *LogChatHistoriesRecapGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LogChatHistoriesRecapGroupBy) ScanX

func (s *LogChatHistoriesRecapGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LogChatHistoriesRecapGroupBy) String

func (s *LogChatHistoriesRecapGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapGroupBy) StringX

func (s *LogChatHistoriesRecapGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LogChatHistoriesRecapGroupBy) Strings

func (s *LogChatHistoriesRecapGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapGroupBy) StringsX

func (s *LogChatHistoriesRecapGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LogChatHistoriesRecapMutation

type LogChatHistoriesRecapMutation struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapMutation represents an operation that mutates the LogChatHistoriesRecap nodes in the graph.

func (*LogChatHistoriesRecapMutation) AddChatID

func (m *LogChatHistoriesRecapMutation) AddChatID(i int64)

AddChatID adds i to the "chat_id" field.

func (*LogChatHistoriesRecapMutation) AddCompletionTokenUsage

func (m *LogChatHistoriesRecapMutation) AddCompletionTokenUsage(i int)

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*LogChatHistoriesRecapMutation) AddCreatedAt

func (m *LogChatHistoriesRecapMutation) AddCreatedAt(i int64)

AddCreatedAt adds i to the "created_at" field.

func (*LogChatHistoriesRecapMutation) AddField

func (m *LogChatHistoriesRecapMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LogChatHistoriesRecapMutation) AddFromPlatform

func (m *LogChatHistoriesRecapMutation) AddFromPlatform(i int)

AddFromPlatform adds i to the "from_platform" field.

func (*LogChatHistoriesRecapMutation) AddPromptTokenUsage

func (m *LogChatHistoriesRecapMutation) AddPromptTokenUsage(i int)

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*LogChatHistoriesRecapMutation) AddRecapType added in v0.14.0

func (m *LogChatHistoriesRecapMutation) AddRecapType(i int)

AddRecapType adds i to the "recap_type" field.

func (*LogChatHistoriesRecapMutation) AddTotalTokenUsage

func (m *LogChatHistoriesRecapMutation) AddTotalTokenUsage(i int)

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*LogChatHistoriesRecapMutation) AddUpdatedAt

func (m *LogChatHistoriesRecapMutation) AddUpdatedAt(i int64)

AddUpdatedAt adds i to the "updated_at" field.

func (*LogChatHistoriesRecapMutation) AddedChatID

func (m *LogChatHistoriesRecapMutation) AddedChatID() (r int64, exists bool)

AddedChatID returns the value that was added to the "chat_id" field in this mutation.

func (*LogChatHistoriesRecapMutation) AddedCompletionTokenUsage

func (m *LogChatHistoriesRecapMutation) AddedCompletionTokenUsage() (r int, exists bool)

AddedCompletionTokenUsage returns the value that was added to the "completion_token_usage" field in this mutation.

func (*LogChatHistoriesRecapMutation) AddedCreatedAt

func (m *LogChatHistoriesRecapMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*LogChatHistoriesRecapMutation) AddedEdges

func (m *LogChatHistoriesRecapMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*LogChatHistoriesRecapMutation) AddedField

func (m *LogChatHistoriesRecapMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LogChatHistoriesRecapMutation) AddedFields

func (m *LogChatHistoriesRecapMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*LogChatHistoriesRecapMutation) AddedFromPlatform

func (m *LogChatHistoriesRecapMutation) AddedFromPlatform() (r int, exists bool)

AddedFromPlatform returns the value that was added to the "from_platform" field in this mutation.

func (*LogChatHistoriesRecapMutation) AddedIDs

func (m *LogChatHistoriesRecapMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*LogChatHistoriesRecapMutation) AddedPromptTokenUsage

func (m *LogChatHistoriesRecapMutation) AddedPromptTokenUsage() (r int, exists bool)

AddedPromptTokenUsage returns the value that was added to the "prompt_token_usage" field in this mutation.

func (*LogChatHistoriesRecapMutation) AddedRecapType added in v0.14.0

func (m *LogChatHistoriesRecapMutation) AddedRecapType() (r int, exists bool)

AddedRecapType returns the value that was added to the "recap_type" field in this mutation.

func (*LogChatHistoriesRecapMutation) AddedTotalTokenUsage

func (m *LogChatHistoriesRecapMutation) AddedTotalTokenUsage() (r int, exists bool)

AddedTotalTokenUsage returns the value that was added to the "total_token_usage" field in this mutation.

func (*LogChatHistoriesRecapMutation) AddedUpdatedAt

func (m *LogChatHistoriesRecapMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*LogChatHistoriesRecapMutation) ChatID

func (m *LogChatHistoriesRecapMutation) ChatID() (r int64, exists bool)

ChatID returns the value of the "chat_id" field in the mutation.

func (*LogChatHistoriesRecapMutation) ClearEdge

func (m *LogChatHistoriesRecapMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*LogChatHistoriesRecapMutation) ClearField

func (m *LogChatHistoriesRecapMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*LogChatHistoriesRecapMutation) ClearedEdges

func (m *LogChatHistoriesRecapMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*LogChatHistoriesRecapMutation) ClearedFields

func (m *LogChatHistoriesRecapMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (LogChatHistoriesRecapMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*LogChatHistoriesRecapMutation) CompletionTokenUsage

func (m *LogChatHistoriesRecapMutation) CompletionTokenUsage() (r int, exists bool)

CompletionTokenUsage returns the value of the "completion_token_usage" field in the mutation.

func (*LogChatHistoriesRecapMutation) CreatedAt

func (m *LogChatHistoriesRecapMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*LogChatHistoriesRecapMutation) EdgeCleared

func (m *LogChatHistoriesRecapMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*LogChatHistoriesRecapMutation) Field

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LogChatHistoriesRecapMutation) FieldCleared

func (m *LogChatHistoriesRecapMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*LogChatHistoriesRecapMutation) Fields

func (m *LogChatHistoriesRecapMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*LogChatHistoriesRecapMutation) FromPlatform

func (m *LogChatHistoriesRecapMutation) FromPlatform() (r int, exists bool)

FromPlatform returns the value of the "from_platform" field in the mutation.

func (*LogChatHistoriesRecapMutation) ID

func (m *LogChatHistoriesRecapMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*LogChatHistoriesRecapMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*LogChatHistoriesRecapMutation) ModelName added in v0.18.0

func (m *LogChatHistoriesRecapMutation) ModelName() (r string, exists bool)

ModelName returns the value of the "model_name" field in the mutation.

func (*LogChatHistoriesRecapMutation) OldChatID

func (m *LogChatHistoriesRecapMutation) OldChatID(ctx context.Context) (v int64, err error)

OldChatID returns the old "chat_id" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldCompletionTokenUsage

func (m *LogChatHistoriesRecapMutation) OldCompletionTokenUsage(ctx context.Context) (v int, err error)

OldCompletionTokenUsage returns the old "completion_token_usage" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldCreatedAt

func (m *LogChatHistoriesRecapMutation) OldCreatedAt(ctx context.Context) (v int64, err error)

OldCreatedAt returns the old "created_at" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*LogChatHistoriesRecapMutation) OldFromPlatform

func (m *LogChatHistoriesRecapMutation) OldFromPlatform(ctx context.Context) (v int, err error)

OldFromPlatform returns the old "from_platform" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldModelName added in v0.18.0

func (m *LogChatHistoriesRecapMutation) OldModelName(ctx context.Context) (v string, err error)

OldModelName returns the old "model_name" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldPromptTokenUsage

func (m *LogChatHistoriesRecapMutation) OldPromptTokenUsage(ctx context.Context) (v int, err error)

OldPromptTokenUsage returns the old "prompt_token_usage" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldRecapInputs

func (m *LogChatHistoriesRecapMutation) OldRecapInputs(ctx context.Context) (v string, err error)

OldRecapInputs returns the old "recap_inputs" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldRecapOutputs

func (m *LogChatHistoriesRecapMutation) OldRecapOutputs(ctx context.Context) (v string, err error)

OldRecapOutputs returns the old "recap_outputs" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldRecapType added in v0.14.0

func (m *LogChatHistoriesRecapMutation) OldRecapType(ctx context.Context) (v int, err error)

OldRecapType returns the old "recap_type" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldTotalTokenUsage

func (m *LogChatHistoriesRecapMutation) OldTotalTokenUsage(ctx context.Context) (v int, err error)

OldTotalTokenUsage returns the old "total_token_usage" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) OldUpdatedAt

func (m *LogChatHistoriesRecapMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)

OldUpdatedAt returns the old "updated_at" field's value of the LogChatHistoriesRecap entity. If the LogChatHistoriesRecap object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogChatHistoriesRecapMutation) Op

Op returns the operation name.

func (*LogChatHistoriesRecapMutation) PromptTokenUsage

func (m *LogChatHistoriesRecapMutation) PromptTokenUsage() (r int, exists bool)

PromptTokenUsage returns the value of the "prompt_token_usage" field in the mutation.

func (*LogChatHistoriesRecapMutation) RecapInputs

func (m *LogChatHistoriesRecapMutation) RecapInputs() (r string, exists bool)

RecapInputs returns the value of the "recap_inputs" field in the mutation.

func (*LogChatHistoriesRecapMutation) RecapOutputs

func (m *LogChatHistoriesRecapMutation) RecapOutputs() (r string, exists bool)

RecapOutputs returns the value of the "recap_outputs" field in the mutation.

func (*LogChatHistoriesRecapMutation) RecapType added in v0.14.0

func (m *LogChatHistoriesRecapMutation) RecapType() (r int, exists bool)

RecapType returns the value of the "recap_type" field in the mutation.

func (*LogChatHistoriesRecapMutation) RemovedEdges

func (m *LogChatHistoriesRecapMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*LogChatHistoriesRecapMutation) RemovedIDs

func (m *LogChatHistoriesRecapMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*LogChatHistoriesRecapMutation) ResetChatID

func (m *LogChatHistoriesRecapMutation) ResetChatID()

ResetChatID resets all changes to the "chat_id" field.

func (*LogChatHistoriesRecapMutation) ResetCompletionTokenUsage

func (m *LogChatHistoriesRecapMutation) ResetCompletionTokenUsage()

ResetCompletionTokenUsage resets all changes to the "completion_token_usage" field.

func (*LogChatHistoriesRecapMutation) ResetCreatedAt

func (m *LogChatHistoriesRecapMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*LogChatHistoriesRecapMutation) ResetEdge

func (m *LogChatHistoriesRecapMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*LogChatHistoriesRecapMutation) ResetField

func (m *LogChatHistoriesRecapMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*LogChatHistoriesRecapMutation) ResetFromPlatform

func (m *LogChatHistoriesRecapMutation) ResetFromPlatform()

ResetFromPlatform resets all changes to the "from_platform" field.

func (*LogChatHistoriesRecapMutation) ResetModelName added in v0.18.0

func (m *LogChatHistoriesRecapMutation) ResetModelName()

ResetModelName resets all changes to the "model_name" field.

func (*LogChatHistoriesRecapMutation) ResetPromptTokenUsage

func (m *LogChatHistoriesRecapMutation) ResetPromptTokenUsage()

ResetPromptTokenUsage resets all changes to the "prompt_token_usage" field.

func (*LogChatHistoriesRecapMutation) ResetRecapInputs

func (m *LogChatHistoriesRecapMutation) ResetRecapInputs()

ResetRecapInputs resets all changes to the "recap_inputs" field.

func (*LogChatHistoriesRecapMutation) ResetRecapOutputs

func (m *LogChatHistoriesRecapMutation) ResetRecapOutputs()

ResetRecapOutputs resets all changes to the "recap_outputs" field.

func (*LogChatHistoriesRecapMutation) ResetRecapType added in v0.14.0

func (m *LogChatHistoriesRecapMutation) ResetRecapType()

ResetRecapType resets all changes to the "recap_type" field.

func (*LogChatHistoriesRecapMutation) ResetTotalTokenUsage

func (m *LogChatHistoriesRecapMutation) ResetTotalTokenUsage()

ResetTotalTokenUsage resets all changes to the "total_token_usage" field.

func (*LogChatHistoriesRecapMutation) ResetUpdatedAt

func (m *LogChatHistoriesRecapMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*LogChatHistoriesRecapMutation) SetChatID

func (m *LogChatHistoriesRecapMutation) SetChatID(i int64)

SetChatID sets the "chat_id" field.

func (*LogChatHistoriesRecapMutation) SetCompletionTokenUsage

func (m *LogChatHistoriesRecapMutation) SetCompletionTokenUsage(i int)

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*LogChatHistoriesRecapMutation) SetCreatedAt

func (m *LogChatHistoriesRecapMutation) SetCreatedAt(i int64)

SetCreatedAt sets the "created_at" field.

func (*LogChatHistoriesRecapMutation) SetField

func (m *LogChatHistoriesRecapMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LogChatHistoriesRecapMutation) SetFromPlatform

func (m *LogChatHistoriesRecapMutation) SetFromPlatform(i int)

SetFromPlatform sets the "from_platform" field.

func (*LogChatHistoriesRecapMutation) SetID

SetID sets the value of the id field. Note that this operation is only accepted on creation of LogChatHistoriesRecap entities.

func (*LogChatHistoriesRecapMutation) SetModelName added in v0.18.0

func (m *LogChatHistoriesRecapMutation) SetModelName(s string)

SetModelName sets the "model_name" field.

func (*LogChatHistoriesRecapMutation) SetOp

func (m *LogChatHistoriesRecapMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*LogChatHistoriesRecapMutation) SetPromptTokenUsage

func (m *LogChatHistoriesRecapMutation) SetPromptTokenUsage(i int)

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*LogChatHistoriesRecapMutation) SetRecapInputs

func (m *LogChatHistoriesRecapMutation) SetRecapInputs(s string)

SetRecapInputs sets the "recap_inputs" field.

func (*LogChatHistoriesRecapMutation) SetRecapOutputs

func (m *LogChatHistoriesRecapMutation) SetRecapOutputs(s string)

SetRecapOutputs sets the "recap_outputs" field.

func (*LogChatHistoriesRecapMutation) SetRecapType added in v0.14.0

func (m *LogChatHistoriesRecapMutation) SetRecapType(i int)

SetRecapType sets the "recap_type" field.

func (*LogChatHistoriesRecapMutation) SetTotalTokenUsage

func (m *LogChatHistoriesRecapMutation) SetTotalTokenUsage(i int)

SetTotalTokenUsage sets the "total_token_usage" field.

func (*LogChatHistoriesRecapMutation) SetUpdatedAt

func (m *LogChatHistoriesRecapMutation) SetUpdatedAt(i int64)

SetUpdatedAt sets the "updated_at" field.

func (*LogChatHistoriesRecapMutation) TotalTokenUsage

func (m *LogChatHistoriesRecapMutation) TotalTokenUsage() (r int, exists bool)

TotalTokenUsage returns the value of the "total_token_usage" field in the mutation.

func (LogChatHistoriesRecapMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*LogChatHistoriesRecapMutation) Type

Type returns the node type of this mutation (LogChatHistoriesRecap).

func (*LogChatHistoriesRecapMutation) UpdatedAt

func (m *LogChatHistoriesRecapMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*LogChatHistoriesRecapMutation) Where

Where appends a list predicates to the LogChatHistoriesRecapMutation builder.

func (*LogChatHistoriesRecapMutation) WhereP

func (m *LogChatHistoriesRecapMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the LogChatHistoriesRecapMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type LogChatHistoriesRecapQuery

type LogChatHistoriesRecapQuery struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapQuery is the builder for querying LogChatHistoriesRecap entities.

func (*LogChatHistoriesRecapQuery) Aggregate

Aggregate returns a LogChatHistoriesRecapSelect configured with the given aggregations.

func (*LogChatHistoriesRecapQuery) All

All executes the query and returns a list of LogChatHistoriesRecaps.

func (*LogChatHistoriesRecapQuery) AllX

AllX is like All, but panics if an error occurs.

func (*LogChatHistoriesRecapQuery) Clone

Clone returns a duplicate of the LogChatHistoriesRecapQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*LogChatHistoriesRecapQuery) Count

func (lchrq *LogChatHistoriesRecapQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*LogChatHistoriesRecapQuery) CountX

func (lchrq *LogChatHistoriesRecapQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*LogChatHistoriesRecapQuery) Exist

func (lchrq *LogChatHistoriesRecapQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*LogChatHistoriesRecapQuery) ExistX

func (lchrq *LogChatHistoriesRecapQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*LogChatHistoriesRecapQuery) First

First returns the first LogChatHistoriesRecap entity from the query. Returns a *NotFoundError when no LogChatHistoriesRecap was found.

func (*LogChatHistoriesRecapQuery) FirstID

func (lchrq *LogChatHistoriesRecapQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first LogChatHistoriesRecap ID from the query. Returns a *NotFoundError when no LogChatHistoriesRecap ID was found.

func (*LogChatHistoriesRecapQuery) FirstIDX

func (lchrq *LogChatHistoriesRecapQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*LogChatHistoriesRecapQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*LogChatHistoriesRecapQuery) GroupBy

func (lchrq *LogChatHistoriesRecapQuery) GroupBy(field string, fields ...string) *LogChatHistoriesRecapGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.LogChatHistoriesRecap.Query().
	GroupBy(logchathistoriesrecap.FieldChatID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*LogChatHistoriesRecapQuery) IDs

func (lchrq *LogChatHistoriesRecapQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of LogChatHistoriesRecap IDs.

func (*LogChatHistoriesRecapQuery) IDsX

func (lchrq *LogChatHistoriesRecapQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*LogChatHistoriesRecapQuery) Limit

Limit the number of records to be returned by this query.

func (*LogChatHistoriesRecapQuery) Offset

Offset to start from.

func (*LogChatHistoriesRecapQuery) Only

Only returns a single LogChatHistoriesRecap entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one LogChatHistoriesRecap entity is found. Returns a *NotFoundError when no LogChatHistoriesRecap entities are found.

func (*LogChatHistoriesRecapQuery) OnlyID

func (lchrq *LogChatHistoriesRecapQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only LogChatHistoriesRecap ID in the query. Returns a *NotSingularError when more than one LogChatHistoriesRecap ID is found. Returns a *NotFoundError when no entities are found.

func (*LogChatHistoriesRecapQuery) OnlyIDX

func (lchrq *LogChatHistoriesRecapQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*LogChatHistoriesRecapQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*LogChatHistoriesRecapQuery) Order

Order specifies how the records should be ordered.

func (*LogChatHistoriesRecapQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
}

client.LogChatHistoriesRecap.Query().
	Select(logchathistoriesrecap.FieldChatID).
	Scan(ctx, &v)

func (*LogChatHistoriesRecapQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*LogChatHistoriesRecapQuery) Where

Where adds a new predicate for the LogChatHistoriesRecapQuery builder.

type LogChatHistoriesRecapSelect

type LogChatHistoriesRecapSelect struct {
	*LogChatHistoriesRecapQuery
	// contains filtered or unexported fields
}

LogChatHistoriesRecapSelect is the builder for selecting fields of LogChatHistoriesRecap entities.

func (*LogChatHistoriesRecapSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*LogChatHistoriesRecapSelect) Bool

func (s *LogChatHistoriesRecapSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapSelect) BoolX

func (s *LogChatHistoriesRecapSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LogChatHistoriesRecapSelect) Bools

func (s *LogChatHistoriesRecapSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapSelect) BoolsX

func (s *LogChatHistoriesRecapSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LogChatHistoriesRecapSelect) Float64

func (s *LogChatHistoriesRecapSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapSelect) Float64X

func (s *LogChatHistoriesRecapSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LogChatHistoriesRecapSelect) Float64s

func (s *LogChatHistoriesRecapSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapSelect) Float64sX

func (s *LogChatHistoriesRecapSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LogChatHistoriesRecapSelect) Int

func (s *LogChatHistoriesRecapSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapSelect) IntX

func (s *LogChatHistoriesRecapSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LogChatHistoriesRecapSelect) Ints

func (s *LogChatHistoriesRecapSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapSelect) IntsX

func (s *LogChatHistoriesRecapSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LogChatHistoriesRecapSelect) Scan

func (lchrs *LogChatHistoriesRecapSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LogChatHistoriesRecapSelect) ScanX

func (s *LogChatHistoriesRecapSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LogChatHistoriesRecapSelect) String

func (s *LogChatHistoriesRecapSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapSelect) StringX

func (s *LogChatHistoriesRecapSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LogChatHistoriesRecapSelect) Strings

func (s *LogChatHistoriesRecapSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LogChatHistoriesRecapSelect) StringsX

func (s *LogChatHistoriesRecapSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LogChatHistoriesRecapUpdate

type LogChatHistoriesRecapUpdate struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapUpdate is the builder for updating LogChatHistoriesRecap entities.

func (*LogChatHistoriesRecapUpdate) AddChatID

AddChatID adds i to the "chat_id" field.

func (*LogChatHistoriesRecapUpdate) AddCompletionTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) AddCompletionTokenUsage(i int) *LogChatHistoriesRecapUpdate

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*LogChatHistoriesRecapUpdate) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*LogChatHistoriesRecapUpdate) AddFromPlatform

func (lchru *LogChatHistoriesRecapUpdate) AddFromPlatform(i int) *LogChatHistoriesRecapUpdate

AddFromPlatform adds i to the "from_platform" field.

func (*LogChatHistoriesRecapUpdate) AddPromptTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) AddPromptTokenUsage(i int) *LogChatHistoriesRecapUpdate

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*LogChatHistoriesRecapUpdate) AddRecapType added in v0.14.0

AddRecapType adds i to the "recap_type" field.

func (*LogChatHistoriesRecapUpdate) AddTotalTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) AddTotalTokenUsage(i int) *LogChatHistoriesRecapUpdate

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*LogChatHistoriesRecapUpdate) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*LogChatHistoriesRecapUpdate) Exec

Exec executes the query.

func (*LogChatHistoriesRecapUpdate) ExecX

func (lchru *LogChatHistoriesRecapUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogChatHistoriesRecapUpdate) Mutation

Mutation returns the LogChatHistoriesRecapMutation object of the builder.

func (*LogChatHistoriesRecapUpdate) Save

func (lchru *LogChatHistoriesRecapUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*LogChatHistoriesRecapUpdate) SaveX

func (lchru *LogChatHistoriesRecapUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*LogChatHistoriesRecapUpdate) SetChatID

SetChatID sets the "chat_id" field.

func (*LogChatHistoriesRecapUpdate) SetCompletionTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) SetCompletionTokenUsage(i int) *LogChatHistoriesRecapUpdate

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*LogChatHistoriesRecapUpdate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*LogChatHistoriesRecapUpdate) SetFromPlatform

func (lchru *LogChatHistoriesRecapUpdate) SetFromPlatform(i int) *LogChatHistoriesRecapUpdate

SetFromPlatform sets the "from_platform" field.

func (*LogChatHistoriesRecapUpdate) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*LogChatHistoriesRecapUpdate) SetNillableChatID

func (lchru *LogChatHistoriesRecapUpdate) SetNillableChatID(i *int64) *LogChatHistoriesRecapUpdate

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableCompletionTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) SetNillableCompletionTokenUsage(i *int) *LogChatHistoriesRecapUpdate

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableCreatedAt

func (lchru *LogChatHistoriesRecapUpdate) SetNillableCreatedAt(i *int64) *LogChatHistoriesRecapUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableFromPlatform

func (lchru *LogChatHistoriesRecapUpdate) SetNillableFromPlatform(i *int) *LogChatHistoriesRecapUpdate

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableModelName added in v0.18.0

func (lchru *LogChatHistoriesRecapUpdate) SetNillableModelName(s *string) *LogChatHistoriesRecapUpdate

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillablePromptTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) SetNillablePromptTokenUsage(i *int) *LogChatHistoriesRecapUpdate

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableRecapInputs

func (lchru *LogChatHistoriesRecapUpdate) SetNillableRecapInputs(s *string) *LogChatHistoriesRecapUpdate

SetNillableRecapInputs sets the "recap_inputs" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableRecapOutputs

func (lchru *LogChatHistoriesRecapUpdate) SetNillableRecapOutputs(s *string) *LogChatHistoriesRecapUpdate

SetNillableRecapOutputs sets the "recap_outputs" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableRecapType added in v0.14.0

func (lchru *LogChatHistoriesRecapUpdate) SetNillableRecapType(i *int) *LogChatHistoriesRecapUpdate

SetNillableRecapType sets the "recap_type" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableTotalTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) SetNillableTotalTokenUsage(i *int) *LogChatHistoriesRecapUpdate

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetNillableUpdatedAt

func (lchru *LogChatHistoriesRecapUpdate) SetNillableUpdatedAt(i *int64) *LogChatHistoriesRecapUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdate) SetPromptTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) SetPromptTokenUsage(i int) *LogChatHistoriesRecapUpdate

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*LogChatHistoriesRecapUpdate) SetRecapInputs

SetRecapInputs sets the "recap_inputs" field.

func (*LogChatHistoriesRecapUpdate) SetRecapOutputs

SetRecapOutputs sets the "recap_outputs" field.

func (*LogChatHistoriesRecapUpdate) SetRecapType added in v0.14.0

SetRecapType sets the "recap_type" field.

func (*LogChatHistoriesRecapUpdate) SetTotalTokenUsage

func (lchru *LogChatHistoriesRecapUpdate) SetTotalTokenUsage(i int) *LogChatHistoriesRecapUpdate

SetTotalTokenUsage sets the "total_token_usage" field.

func (*LogChatHistoriesRecapUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LogChatHistoriesRecapUpdate) Where

Where appends a list predicates to the LogChatHistoriesRecapUpdate builder.

type LogChatHistoriesRecapUpdateOne

type LogChatHistoriesRecapUpdateOne struct {
	// contains filtered or unexported fields
}

LogChatHistoriesRecapUpdateOne is the builder for updating a single LogChatHistoriesRecap entity.

func (*LogChatHistoriesRecapUpdateOne) AddChatID

AddChatID adds i to the "chat_id" field.

func (*LogChatHistoriesRecapUpdateOne) AddCompletionTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) AddCompletionTokenUsage(i int) *LogChatHistoriesRecapUpdateOne

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*LogChatHistoriesRecapUpdateOne) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*LogChatHistoriesRecapUpdateOne) AddFromPlatform

AddFromPlatform adds i to the "from_platform" field.

func (*LogChatHistoriesRecapUpdateOne) AddPromptTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) AddPromptTokenUsage(i int) *LogChatHistoriesRecapUpdateOne

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*LogChatHistoriesRecapUpdateOne) AddRecapType added in v0.14.0

AddRecapType adds i to the "recap_type" field.

func (*LogChatHistoriesRecapUpdateOne) AddTotalTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) AddTotalTokenUsage(i int) *LogChatHistoriesRecapUpdateOne

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*LogChatHistoriesRecapUpdateOne) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*LogChatHistoriesRecapUpdateOne) Exec

Exec executes the query on the entity.

func (*LogChatHistoriesRecapUpdateOne) ExecX

func (lchruo *LogChatHistoriesRecapUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogChatHistoriesRecapUpdateOne) Mutation

Mutation returns the LogChatHistoriesRecapMutation object of the builder.

func (*LogChatHistoriesRecapUpdateOne) Save

Save executes the query and returns the updated LogChatHistoriesRecap entity.

func (*LogChatHistoriesRecapUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*LogChatHistoriesRecapUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*LogChatHistoriesRecapUpdateOne) SetChatID

SetChatID sets the "chat_id" field.

func (*LogChatHistoriesRecapUpdateOne) SetCompletionTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) SetCompletionTokenUsage(i int) *LogChatHistoriesRecapUpdateOne

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*LogChatHistoriesRecapUpdateOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*LogChatHistoriesRecapUpdateOne) SetFromPlatform

SetFromPlatform sets the "from_platform" field.

func (*LogChatHistoriesRecapUpdateOne) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*LogChatHistoriesRecapUpdateOne) SetNillableChatID

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableCompletionTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableCompletionTokenUsage(i *int) *LogChatHistoriesRecapUpdateOne

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableCreatedAt

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableCreatedAt(i *int64) *LogChatHistoriesRecapUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableFromPlatform

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableFromPlatform(i *int) *LogChatHistoriesRecapUpdateOne

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableModelName added in v0.18.0

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableModelName(s *string) *LogChatHistoriesRecapUpdateOne

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillablePromptTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillablePromptTokenUsage(i *int) *LogChatHistoriesRecapUpdateOne

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableRecapInputs

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableRecapInputs(s *string) *LogChatHistoriesRecapUpdateOne

SetNillableRecapInputs sets the "recap_inputs" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableRecapOutputs

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableRecapOutputs(s *string) *LogChatHistoriesRecapUpdateOne

SetNillableRecapOutputs sets the "recap_outputs" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableRecapType added in v0.14.0

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableRecapType(i *int) *LogChatHistoriesRecapUpdateOne

SetNillableRecapType sets the "recap_type" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableTotalTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableTotalTokenUsage(i *int) *LogChatHistoriesRecapUpdateOne

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetNillableUpdatedAt

func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableUpdatedAt(i *int64) *LogChatHistoriesRecapUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LogChatHistoriesRecapUpdateOne) SetPromptTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) SetPromptTokenUsage(i int) *LogChatHistoriesRecapUpdateOne

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*LogChatHistoriesRecapUpdateOne) SetRecapInputs

SetRecapInputs sets the "recap_inputs" field.

func (*LogChatHistoriesRecapUpdateOne) SetRecapOutputs

SetRecapOutputs sets the "recap_outputs" field.

func (*LogChatHistoriesRecapUpdateOne) SetRecapType added in v0.14.0

SetRecapType sets the "recap_type" field.

func (*LogChatHistoriesRecapUpdateOne) SetTotalTokenUsage

func (lchruo *LogChatHistoriesRecapUpdateOne) SetTotalTokenUsage(i int) *LogChatHistoriesRecapUpdateOne

SetTotalTokenUsage sets the "total_token_usage" field.

func (*LogChatHistoriesRecapUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LogChatHistoriesRecapUpdateOne) Where

Where appends a list predicates to the LogChatHistoriesRecapUpdate builder.

type LogChatHistoriesRecaps

type LogChatHistoriesRecaps []*LogChatHistoriesRecap

LogChatHistoriesRecaps is a parsable slice of LogChatHistoriesRecap.

type LogSummarizations

type LogSummarizations struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// ContentURL holds the value of the "content_url" field.
	ContentURL string `json:"content_url,omitempty"`
	// ContentTitle holds the value of the "content_title" field.
	ContentTitle string `json:"content_title,omitempty"`
	// ContentAuthor holds the value of the "content_author" field.
	ContentAuthor string `json:"content_author,omitempty"`
	// ContentText holds the value of the "content_text" field.
	ContentText string `json:"content_text,omitempty"`
	// ContentSummarizedOutputs holds the value of the "content_summarized_outputs" field.
	ContentSummarizedOutputs string `json:"content_summarized_outputs,omitempty"`
	// FromPlatform holds the value of the "from_platform" field.
	FromPlatform int `json:"from_platform,omitempty"`
	// PromptTokenUsage holds the value of the "prompt_token_usage" field.
	PromptTokenUsage int `json:"prompt_token_usage,omitempty"`
	// CompletionTokenUsage holds the value of the "completion_token_usage" field.
	CompletionTokenUsage int `json:"completion_token_usage,omitempty"`
	// TotalTokenUsage holds the value of the "total_token_usage" field.
	TotalTokenUsage int `json:"total_token_usage,omitempty"`
	// ModelName holds the value of the "model_name" field.
	ModelName string `json:"model_name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

LogSummarizations is the model entity for the LogSummarizations schema.

func (*LogSummarizations) String

func (ls *LogSummarizations) String() string

String implements the fmt.Stringer.

func (*LogSummarizations) Unwrap

func (ls *LogSummarizations) Unwrap() *LogSummarizations

Unwrap unwraps the LogSummarizations entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*LogSummarizations) Update

Update returns a builder for updating this LogSummarizations. Note that you need to call LogSummarizations.Unwrap() before calling this method if this LogSummarizations was returned from a transaction, and the transaction was committed or rolled back.

func (*LogSummarizations) Value

func (ls *LogSummarizations) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the LogSummarizations. This includes values selected through modifiers, order, etc.

type LogSummarizationsClient

type LogSummarizationsClient struct {
	// contains filtered or unexported fields
}

LogSummarizationsClient is a client for the LogSummarizations schema.

func NewLogSummarizationsClient

func NewLogSummarizationsClient(c config) *LogSummarizationsClient

NewLogSummarizationsClient returns a client for the LogSummarizations from the given config.

func (*LogSummarizationsClient) Create

Create returns a builder for creating a LogSummarizations entity.

func (*LogSummarizationsClient) CreateBulk

CreateBulk returns a builder for creating a bulk of LogSummarizations entities.

func (*LogSummarizationsClient) Delete

Delete returns a delete builder for LogSummarizations.

func (*LogSummarizationsClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*LogSummarizationsClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*LogSummarizationsClient) Get

Get returns a LogSummarizations entity by its id.

func (*LogSummarizationsClient) GetX

GetX is like Get, but panics if an error occurs.

func (*LogSummarizationsClient) Hooks

func (c *LogSummarizationsClient) Hooks() []Hook

Hooks returns the client hooks.

func (*LogSummarizationsClient) Intercept

func (c *LogSummarizationsClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `logsummarizations.Intercept(f(g(h())))`.

func (*LogSummarizationsClient) Interceptors

func (c *LogSummarizationsClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*LogSummarizationsClient) MapCreateBulk added in v0.22.0

func (c *LogSummarizationsClient) MapCreateBulk(slice any, setFunc func(*LogSummarizationsCreate, int)) *LogSummarizationsCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*LogSummarizationsClient) Query

Query returns a query builder for LogSummarizations.

func (*LogSummarizationsClient) Update

Update returns an update builder for LogSummarizations.

func (*LogSummarizationsClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*LogSummarizationsClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*LogSummarizationsClient) Use

func (c *LogSummarizationsClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `logsummarizations.Hooks(f(g(h())))`.

type LogSummarizationsCreate

type LogSummarizationsCreate struct {
	// contains filtered or unexported fields
}

LogSummarizationsCreate is the builder for creating a LogSummarizations entity.

func (*LogSummarizationsCreate) Exec

Exec executes the query.

func (*LogSummarizationsCreate) ExecX

func (lsc *LogSummarizationsCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogSummarizationsCreate) Mutation

Mutation returns the LogSummarizationsMutation object of the builder.

func (*LogSummarizationsCreate) Save

Save creates the LogSummarizations in the database.

func (*LogSummarizationsCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*LogSummarizationsCreate) SetCompletionTokenUsage

func (lsc *LogSummarizationsCreate) SetCompletionTokenUsage(i int) *LogSummarizationsCreate

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*LogSummarizationsCreate) SetContentAuthor

func (lsc *LogSummarizationsCreate) SetContentAuthor(s string) *LogSummarizationsCreate

SetContentAuthor sets the "content_author" field.

func (*LogSummarizationsCreate) SetContentSummarizedOutputs

func (lsc *LogSummarizationsCreate) SetContentSummarizedOutputs(s string) *LogSummarizationsCreate

SetContentSummarizedOutputs sets the "content_summarized_outputs" field.

func (*LogSummarizationsCreate) SetContentText

func (lsc *LogSummarizationsCreate) SetContentText(s string) *LogSummarizationsCreate

SetContentText sets the "content_text" field.

func (*LogSummarizationsCreate) SetContentTitle

func (lsc *LogSummarizationsCreate) SetContentTitle(s string) *LogSummarizationsCreate

SetContentTitle sets the "content_title" field.

func (*LogSummarizationsCreate) SetContentURL

SetContentURL sets the "content_url" field.

func (*LogSummarizationsCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*LogSummarizationsCreate) SetFromPlatform

func (lsc *LogSummarizationsCreate) SetFromPlatform(i int) *LogSummarizationsCreate

SetFromPlatform sets the "from_platform" field.

func (*LogSummarizationsCreate) SetID

SetID sets the "id" field.

func (*LogSummarizationsCreate) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*LogSummarizationsCreate) SetNillableCompletionTokenUsage

func (lsc *LogSummarizationsCreate) SetNillableCompletionTokenUsage(i *int) *LogSummarizationsCreate

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableContentAuthor

func (lsc *LogSummarizationsCreate) SetNillableContentAuthor(s *string) *LogSummarizationsCreate

SetNillableContentAuthor sets the "content_author" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableContentSummarizedOutputs

func (lsc *LogSummarizationsCreate) SetNillableContentSummarizedOutputs(s *string) *LogSummarizationsCreate

SetNillableContentSummarizedOutputs sets the "content_summarized_outputs" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableContentText

func (lsc *LogSummarizationsCreate) SetNillableContentText(s *string) *LogSummarizationsCreate

SetNillableContentText sets the "content_text" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableContentTitle

func (lsc *LogSummarizationsCreate) SetNillableContentTitle(s *string) *LogSummarizationsCreate

SetNillableContentTitle sets the "content_title" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableContentURL

func (lsc *LogSummarizationsCreate) SetNillableContentURL(s *string) *LogSummarizationsCreate

SetNillableContentURL sets the "content_url" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableCreatedAt

func (lsc *LogSummarizationsCreate) SetNillableCreatedAt(i *int64) *LogSummarizationsCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableFromPlatform

func (lsc *LogSummarizationsCreate) SetNillableFromPlatform(i *int) *LogSummarizationsCreate

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableID

func (lsc *LogSummarizationsCreate) SetNillableID(u *uuid.UUID) *LogSummarizationsCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableModelName added in v0.18.0

func (lsc *LogSummarizationsCreate) SetNillableModelName(s *string) *LogSummarizationsCreate

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillablePromptTokenUsage

func (lsc *LogSummarizationsCreate) SetNillablePromptTokenUsage(i *int) *LogSummarizationsCreate

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableTotalTokenUsage

func (lsc *LogSummarizationsCreate) SetNillableTotalTokenUsage(i *int) *LogSummarizationsCreate

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*LogSummarizationsCreate) SetNillableUpdatedAt

func (lsc *LogSummarizationsCreate) SetNillableUpdatedAt(i *int64) *LogSummarizationsCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LogSummarizationsCreate) SetPromptTokenUsage

func (lsc *LogSummarizationsCreate) SetPromptTokenUsage(i int) *LogSummarizationsCreate

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*LogSummarizationsCreate) SetTotalTokenUsage

func (lsc *LogSummarizationsCreate) SetTotalTokenUsage(i int) *LogSummarizationsCreate

SetTotalTokenUsage sets the "total_token_usage" field.

func (*LogSummarizationsCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type LogSummarizationsCreateBulk

type LogSummarizationsCreateBulk struct {
	// contains filtered or unexported fields
}

LogSummarizationsCreateBulk is the builder for creating many LogSummarizations entities in bulk.

func (*LogSummarizationsCreateBulk) Exec

Exec executes the query.

func (*LogSummarizationsCreateBulk) ExecX

func (lscb *LogSummarizationsCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogSummarizationsCreateBulk) Save

Save creates the LogSummarizations entities in the database.

func (*LogSummarizationsCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type LogSummarizationsDelete

type LogSummarizationsDelete struct {
	// contains filtered or unexported fields
}

LogSummarizationsDelete is the builder for deleting a LogSummarizations entity.

func (*LogSummarizationsDelete) Exec

func (lsd *LogSummarizationsDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*LogSummarizationsDelete) ExecX

func (lsd *LogSummarizationsDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*LogSummarizationsDelete) Where

Where appends a list predicates to the LogSummarizationsDelete builder.

type LogSummarizationsDeleteOne

type LogSummarizationsDeleteOne struct {
	// contains filtered or unexported fields
}

LogSummarizationsDeleteOne is the builder for deleting a single LogSummarizations entity.

func (*LogSummarizationsDeleteOne) Exec

Exec executes the deletion query.

func (*LogSummarizationsDeleteOne) ExecX

func (lsdo *LogSummarizationsDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogSummarizationsDeleteOne) Where

Where appends a list predicates to the LogSummarizationsDelete builder.

type LogSummarizationsGroupBy

type LogSummarizationsGroupBy struct {
	// contains filtered or unexported fields
}

LogSummarizationsGroupBy is the group-by builder for LogSummarizations entities.

func (*LogSummarizationsGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*LogSummarizationsGroupBy) Bool

func (s *LogSummarizationsGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsGroupBy) BoolX

func (s *LogSummarizationsGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LogSummarizationsGroupBy) Bools

func (s *LogSummarizationsGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsGroupBy) BoolsX

func (s *LogSummarizationsGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LogSummarizationsGroupBy) Float64

func (s *LogSummarizationsGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsGroupBy) Float64X

func (s *LogSummarizationsGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LogSummarizationsGroupBy) Float64s

func (s *LogSummarizationsGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsGroupBy) Float64sX

func (s *LogSummarizationsGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LogSummarizationsGroupBy) Int

func (s *LogSummarizationsGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsGroupBy) IntX

func (s *LogSummarizationsGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LogSummarizationsGroupBy) Ints

func (s *LogSummarizationsGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsGroupBy) IntsX

func (s *LogSummarizationsGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LogSummarizationsGroupBy) Scan

func (lsgb *LogSummarizationsGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LogSummarizationsGroupBy) ScanX

func (s *LogSummarizationsGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LogSummarizationsGroupBy) String

func (s *LogSummarizationsGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsGroupBy) StringX

func (s *LogSummarizationsGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LogSummarizationsGroupBy) Strings

func (s *LogSummarizationsGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsGroupBy) StringsX

func (s *LogSummarizationsGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LogSummarizationsMutation

type LogSummarizationsMutation struct {
	// contains filtered or unexported fields
}

LogSummarizationsMutation represents an operation that mutates the LogSummarizations nodes in the graph.

func (*LogSummarizationsMutation) AddCompletionTokenUsage

func (m *LogSummarizationsMutation) AddCompletionTokenUsage(i int)

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*LogSummarizationsMutation) AddCreatedAt

func (m *LogSummarizationsMutation) AddCreatedAt(i int64)

AddCreatedAt adds i to the "created_at" field.

func (*LogSummarizationsMutation) AddField

func (m *LogSummarizationsMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LogSummarizationsMutation) AddFromPlatform

func (m *LogSummarizationsMutation) AddFromPlatform(i int)

AddFromPlatform adds i to the "from_platform" field.

func (*LogSummarizationsMutation) AddPromptTokenUsage

func (m *LogSummarizationsMutation) AddPromptTokenUsage(i int)

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*LogSummarizationsMutation) AddTotalTokenUsage

func (m *LogSummarizationsMutation) AddTotalTokenUsage(i int)

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*LogSummarizationsMutation) AddUpdatedAt

func (m *LogSummarizationsMutation) AddUpdatedAt(i int64)

AddUpdatedAt adds i to the "updated_at" field.

func (*LogSummarizationsMutation) AddedCompletionTokenUsage

func (m *LogSummarizationsMutation) AddedCompletionTokenUsage() (r int, exists bool)

AddedCompletionTokenUsage returns the value that was added to the "completion_token_usage" field in this mutation.

func (*LogSummarizationsMutation) AddedCreatedAt

func (m *LogSummarizationsMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*LogSummarizationsMutation) AddedEdges

func (m *LogSummarizationsMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*LogSummarizationsMutation) AddedField

func (m *LogSummarizationsMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LogSummarizationsMutation) AddedFields

func (m *LogSummarizationsMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*LogSummarizationsMutation) AddedFromPlatform

func (m *LogSummarizationsMutation) AddedFromPlatform() (r int, exists bool)

AddedFromPlatform returns the value that was added to the "from_platform" field in this mutation.

func (*LogSummarizationsMutation) AddedIDs

func (m *LogSummarizationsMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*LogSummarizationsMutation) AddedPromptTokenUsage

func (m *LogSummarizationsMutation) AddedPromptTokenUsage() (r int, exists bool)

AddedPromptTokenUsage returns the value that was added to the "prompt_token_usage" field in this mutation.

func (*LogSummarizationsMutation) AddedTotalTokenUsage

func (m *LogSummarizationsMutation) AddedTotalTokenUsage() (r int, exists bool)

AddedTotalTokenUsage returns the value that was added to the "total_token_usage" field in this mutation.

func (*LogSummarizationsMutation) AddedUpdatedAt

func (m *LogSummarizationsMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*LogSummarizationsMutation) ClearEdge

func (m *LogSummarizationsMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*LogSummarizationsMutation) ClearField

func (m *LogSummarizationsMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*LogSummarizationsMutation) ClearedEdges

func (m *LogSummarizationsMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*LogSummarizationsMutation) ClearedFields

func (m *LogSummarizationsMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (LogSummarizationsMutation) Client

func (m LogSummarizationsMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*LogSummarizationsMutation) CompletionTokenUsage

func (m *LogSummarizationsMutation) CompletionTokenUsage() (r int, exists bool)

CompletionTokenUsage returns the value of the "completion_token_usage" field in the mutation.

func (*LogSummarizationsMutation) ContentAuthor

func (m *LogSummarizationsMutation) ContentAuthor() (r string, exists bool)

ContentAuthor returns the value of the "content_author" field in the mutation.

func (*LogSummarizationsMutation) ContentSummarizedOutputs

func (m *LogSummarizationsMutation) ContentSummarizedOutputs() (r string, exists bool)

ContentSummarizedOutputs returns the value of the "content_summarized_outputs" field in the mutation.

func (*LogSummarizationsMutation) ContentText

func (m *LogSummarizationsMutation) ContentText() (r string, exists bool)

ContentText returns the value of the "content_text" field in the mutation.

func (*LogSummarizationsMutation) ContentTitle

func (m *LogSummarizationsMutation) ContentTitle() (r string, exists bool)

ContentTitle returns the value of the "content_title" field in the mutation.

func (*LogSummarizationsMutation) ContentURL

func (m *LogSummarizationsMutation) ContentURL() (r string, exists bool)

ContentURL returns the value of the "content_url" field in the mutation.

func (*LogSummarizationsMutation) CreatedAt

func (m *LogSummarizationsMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*LogSummarizationsMutation) EdgeCleared

func (m *LogSummarizationsMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*LogSummarizationsMutation) Field

func (m *LogSummarizationsMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LogSummarizationsMutation) FieldCleared

func (m *LogSummarizationsMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*LogSummarizationsMutation) Fields

func (m *LogSummarizationsMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*LogSummarizationsMutation) FromPlatform

func (m *LogSummarizationsMutation) FromPlatform() (r int, exists bool)

FromPlatform returns the value of the "from_platform" field in the mutation.

func (*LogSummarizationsMutation) ID

func (m *LogSummarizationsMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*LogSummarizationsMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*LogSummarizationsMutation) ModelName added in v0.18.0

func (m *LogSummarizationsMutation) ModelName() (r string, exists bool)

ModelName returns the value of the "model_name" field in the mutation.

func (*LogSummarizationsMutation) OldCompletionTokenUsage

func (m *LogSummarizationsMutation) OldCompletionTokenUsage(ctx context.Context) (v int, err error)

OldCompletionTokenUsage returns the old "completion_token_usage" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldContentAuthor

func (m *LogSummarizationsMutation) OldContentAuthor(ctx context.Context) (v string, err error)

OldContentAuthor returns the old "content_author" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldContentSummarizedOutputs

func (m *LogSummarizationsMutation) OldContentSummarizedOutputs(ctx context.Context) (v string, err error)

OldContentSummarizedOutputs returns the old "content_summarized_outputs" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldContentText

func (m *LogSummarizationsMutation) OldContentText(ctx context.Context) (v string, err error)

OldContentText returns the old "content_text" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldContentTitle

func (m *LogSummarizationsMutation) OldContentTitle(ctx context.Context) (v string, err error)

OldContentTitle returns the old "content_title" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldContentURL

func (m *LogSummarizationsMutation) OldContentURL(ctx context.Context) (v string, err error)

OldContentURL returns the old "content_url" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldCreatedAt

func (m *LogSummarizationsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)

OldCreatedAt returns the old "created_at" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldField

func (m *LogSummarizationsMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*LogSummarizationsMutation) OldFromPlatform

func (m *LogSummarizationsMutation) OldFromPlatform(ctx context.Context) (v int, err error)

OldFromPlatform returns the old "from_platform" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldModelName added in v0.18.0

func (m *LogSummarizationsMutation) OldModelName(ctx context.Context) (v string, err error)

OldModelName returns the old "model_name" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldPromptTokenUsage

func (m *LogSummarizationsMutation) OldPromptTokenUsage(ctx context.Context) (v int, err error)

OldPromptTokenUsage returns the old "prompt_token_usage" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldTotalTokenUsage

func (m *LogSummarizationsMutation) OldTotalTokenUsage(ctx context.Context) (v int, err error)

OldTotalTokenUsage returns the old "total_token_usage" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) OldUpdatedAt

func (m *LogSummarizationsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)

OldUpdatedAt returns the old "updated_at" field's value of the LogSummarizations entity. If the LogSummarizations object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LogSummarizationsMutation) Op

func (m *LogSummarizationsMutation) Op() Op

Op returns the operation name.

func (*LogSummarizationsMutation) PromptTokenUsage

func (m *LogSummarizationsMutation) PromptTokenUsage() (r int, exists bool)

PromptTokenUsage returns the value of the "prompt_token_usage" field in the mutation.

func (*LogSummarizationsMutation) RemovedEdges

func (m *LogSummarizationsMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*LogSummarizationsMutation) RemovedIDs

func (m *LogSummarizationsMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*LogSummarizationsMutation) ResetCompletionTokenUsage

func (m *LogSummarizationsMutation) ResetCompletionTokenUsage()

ResetCompletionTokenUsage resets all changes to the "completion_token_usage" field.

func (*LogSummarizationsMutation) ResetContentAuthor

func (m *LogSummarizationsMutation) ResetContentAuthor()

ResetContentAuthor resets all changes to the "content_author" field.

func (*LogSummarizationsMutation) ResetContentSummarizedOutputs

func (m *LogSummarizationsMutation) ResetContentSummarizedOutputs()

ResetContentSummarizedOutputs resets all changes to the "content_summarized_outputs" field.

func (*LogSummarizationsMutation) ResetContentText

func (m *LogSummarizationsMutation) ResetContentText()

ResetContentText resets all changes to the "content_text" field.

func (*LogSummarizationsMutation) ResetContentTitle

func (m *LogSummarizationsMutation) ResetContentTitle()

ResetContentTitle resets all changes to the "content_title" field.

func (*LogSummarizationsMutation) ResetContentURL

func (m *LogSummarizationsMutation) ResetContentURL()

ResetContentURL resets all changes to the "content_url" field.

func (*LogSummarizationsMutation) ResetCreatedAt

func (m *LogSummarizationsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*LogSummarizationsMutation) ResetEdge

func (m *LogSummarizationsMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*LogSummarizationsMutation) ResetField

func (m *LogSummarizationsMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*LogSummarizationsMutation) ResetFromPlatform

func (m *LogSummarizationsMutation) ResetFromPlatform()

ResetFromPlatform resets all changes to the "from_platform" field.

func (*LogSummarizationsMutation) ResetModelName added in v0.18.0

func (m *LogSummarizationsMutation) ResetModelName()

ResetModelName resets all changes to the "model_name" field.

func (*LogSummarizationsMutation) ResetPromptTokenUsage

func (m *LogSummarizationsMutation) ResetPromptTokenUsage()

ResetPromptTokenUsage resets all changes to the "prompt_token_usage" field.

func (*LogSummarizationsMutation) ResetTotalTokenUsage

func (m *LogSummarizationsMutation) ResetTotalTokenUsage()

ResetTotalTokenUsage resets all changes to the "total_token_usage" field.

func (*LogSummarizationsMutation) ResetUpdatedAt

func (m *LogSummarizationsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*LogSummarizationsMutation) SetCompletionTokenUsage

func (m *LogSummarizationsMutation) SetCompletionTokenUsage(i int)

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*LogSummarizationsMutation) SetContentAuthor

func (m *LogSummarizationsMutation) SetContentAuthor(s string)

SetContentAuthor sets the "content_author" field.

func (*LogSummarizationsMutation) SetContentSummarizedOutputs

func (m *LogSummarizationsMutation) SetContentSummarizedOutputs(s string)

SetContentSummarizedOutputs sets the "content_summarized_outputs" field.

func (*LogSummarizationsMutation) SetContentText

func (m *LogSummarizationsMutation) SetContentText(s string)

SetContentText sets the "content_text" field.

func (*LogSummarizationsMutation) SetContentTitle

func (m *LogSummarizationsMutation) SetContentTitle(s string)

SetContentTitle sets the "content_title" field.

func (*LogSummarizationsMutation) SetContentURL

func (m *LogSummarizationsMutation) SetContentURL(s string)

SetContentURL sets the "content_url" field.

func (*LogSummarizationsMutation) SetCreatedAt

func (m *LogSummarizationsMutation) SetCreatedAt(i int64)

SetCreatedAt sets the "created_at" field.

func (*LogSummarizationsMutation) SetField

func (m *LogSummarizationsMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LogSummarizationsMutation) SetFromPlatform

func (m *LogSummarizationsMutation) SetFromPlatform(i int)

SetFromPlatform sets the "from_platform" field.

func (*LogSummarizationsMutation) SetID

func (m *LogSummarizationsMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of LogSummarizations entities.

func (*LogSummarizationsMutation) SetModelName added in v0.18.0

func (m *LogSummarizationsMutation) SetModelName(s string)

SetModelName sets the "model_name" field.

func (*LogSummarizationsMutation) SetOp

func (m *LogSummarizationsMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*LogSummarizationsMutation) SetPromptTokenUsage

func (m *LogSummarizationsMutation) SetPromptTokenUsage(i int)

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*LogSummarizationsMutation) SetTotalTokenUsage

func (m *LogSummarizationsMutation) SetTotalTokenUsage(i int)

SetTotalTokenUsage sets the "total_token_usage" field.

func (*LogSummarizationsMutation) SetUpdatedAt

func (m *LogSummarizationsMutation) SetUpdatedAt(i int64)

SetUpdatedAt sets the "updated_at" field.

func (*LogSummarizationsMutation) TotalTokenUsage

func (m *LogSummarizationsMutation) TotalTokenUsage() (r int, exists bool)

TotalTokenUsage returns the value of the "total_token_usage" field in the mutation.

func (LogSummarizationsMutation) Tx

func (m LogSummarizationsMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*LogSummarizationsMutation) Type

Type returns the node type of this mutation (LogSummarizations).

func (*LogSummarizationsMutation) UpdatedAt

func (m *LogSummarizationsMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*LogSummarizationsMutation) Where

Where appends a list predicates to the LogSummarizationsMutation builder.

func (*LogSummarizationsMutation) WhereP

func (m *LogSummarizationsMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the LogSummarizationsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type LogSummarizationsQuery

type LogSummarizationsQuery struct {
	// contains filtered or unexported fields
}

LogSummarizationsQuery is the builder for querying LogSummarizations entities.

func (*LogSummarizationsQuery) Aggregate

Aggregate returns a LogSummarizationsSelect configured with the given aggregations.

func (*LogSummarizationsQuery) All

All executes the query and returns a list of LogSummarizationsSlice.

func (*LogSummarizationsQuery) AllX

AllX is like All, but panics if an error occurs.

func (*LogSummarizationsQuery) Clone

Clone returns a duplicate of the LogSummarizationsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*LogSummarizationsQuery) Count

func (lsq *LogSummarizationsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*LogSummarizationsQuery) CountX

func (lsq *LogSummarizationsQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*LogSummarizationsQuery) Exist

func (lsq *LogSummarizationsQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*LogSummarizationsQuery) ExistX

func (lsq *LogSummarizationsQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*LogSummarizationsQuery) First

First returns the first LogSummarizations entity from the query. Returns a *NotFoundError when no LogSummarizations was found.

func (*LogSummarizationsQuery) FirstID

func (lsq *LogSummarizationsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first LogSummarizations ID from the query. Returns a *NotFoundError when no LogSummarizations ID was found.

func (*LogSummarizationsQuery) FirstIDX

func (lsq *LogSummarizationsQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*LogSummarizationsQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*LogSummarizationsQuery) GroupBy

func (lsq *LogSummarizationsQuery) GroupBy(field string, fields ...string) *LogSummarizationsGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ContentURL string `json:"content_url,omitempty"`
	Count int `json:"count,omitempty"`
}

client.LogSummarizations.Query().
	GroupBy(logsummarizations.FieldContentURL).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*LogSummarizationsQuery) IDs

func (lsq *LogSummarizationsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of LogSummarizations IDs.

func (*LogSummarizationsQuery) IDsX

func (lsq *LogSummarizationsQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*LogSummarizationsQuery) Limit

Limit the number of records to be returned by this query.

func (*LogSummarizationsQuery) Offset

func (lsq *LogSummarizationsQuery) Offset(offset int) *LogSummarizationsQuery

Offset to start from.

func (*LogSummarizationsQuery) Only

Only returns a single LogSummarizations entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one LogSummarizations entity is found. Returns a *NotFoundError when no LogSummarizations entities are found.

func (*LogSummarizationsQuery) OnlyID

func (lsq *LogSummarizationsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only LogSummarizations ID in the query. Returns a *NotSingularError when more than one LogSummarizations ID is found. Returns a *NotFoundError when no entities are found.

func (*LogSummarizationsQuery) OnlyIDX

func (lsq *LogSummarizationsQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*LogSummarizationsQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*LogSummarizationsQuery) Order

Order specifies how the records should be ordered.

func (*LogSummarizationsQuery) Select

func (lsq *LogSummarizationsQuery) Select(fields ...string) *LogSummarizationsSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ContentURL string `json:"content_url,omitempty"`
}

client.LogSummarizations.Query().
	Select(logsummarizations.FieldContentURL).
	Scan(ctx, &v)

func (*LogSummarizationsQuery) Unique

func (lsq *LogSummarizationsQuery) Unique(unique bool) *LogSummarizationsQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*LogSummarizationsQuery) Where

Where adds a new predicate for the LogSummarizationsQuery builder.

type LogSummarizationsSelect

type LogSummarizationsSelect struct {
	*LogSummarizationsQuery
	// contains filtered or unexported fields
}

LogSummarizationsSelect is the builder for selecting fields of LogSummarizations entities.

func (*LogSummarizationsSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*LogSummarizationsSelect) Bool

func (s *LogSummarizationsSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsSelect) BoolX

func (s *LogSummarizationsSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LogSummarizationsSelect) Bools

func (s *LogSummarizationsSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsSelect) BoolsX

func (s *LogSummarizationsSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LogSummarizationsSelect) Float64

func (s *LogSummarizationsSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsSelect) Float64X

func (s *LogSummarizationsSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LogSummarizationsSelect) Float64s

func (s *LogSummarizationsSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsSelect) Float64sX

func (s *LogSummarizationsSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LogSummarizationsSelect) Int

func (s *LogSummarizationsSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsSelect) IntX

func (s *LogSummarizationsSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LogSummarizationsSelect) Ints

func (s *LogSummarizationsSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsSelect) IntsX

func (s *LogSummarizationsSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LogSummarizationsSelect) Scan

func (lss *LogSummarizationsSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LogSummarizationsSelect) ScanX

func (s *LogSummarizationsSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LogSummarizationsSelect) String

func (s *LogSummarizationsSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsSelect) StringX

func (s *LogSummarizationsSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LogSummarizationsSelect) Strings

func (s *LogSummarizationsSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LogSummarizationsSelect) StringsX

func (s *LogSummarizationsSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LogSummarizationsSlice

type LogSummarizationsSlice []*LogSummarizations

LogSummarizationsSlice is a parsable slice of LogSummarizations.

type LogSummarizationsUpdate

type LogSummarizationsUpdate struct {
	// contains filtered or unexported fields
}

LogSummarizationsUpdate is the builder for updating LogSummarizations entities.

func (*LogSummarizationsUpdate) AddCompletionTokenUsage

func (lsu *LogSummarizationsUpdate) AddCompletionTokenUsage(i int) *LogSummarizationsUpdate

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*LogSummarizationsUpdate) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*LogSummarizationsUpdate) AddFromPlatform

func (lsu *LogSummarizationsUpdate) AddFromPlatform(i int) *LogSummarizationsUpdate

AddFromPlatform adds i to the "from_platform" field.

func (*LogSummarizationsUpdate) AddPromptTokenUsage

func (lsu *LogSummarizationsUpdate) AddPromptTokenUsage(i int) *LogSummarizationsUpdate

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*LogSummarizationsUpdate) AddTotalTokenUsage

func (lsu *LogSummarizationsUpdate) AddTotalTokenUsage(i int) *LogSummarizationsUpdate

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*LogSummarizationsUpdate) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*LogSummarizationsUpdate) Exec

Exec executes the query.

func (*LogSummarizationsUpdate) ExecX

func (lsu *LogSummarizationsUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogSummarizationsUpdate) Mutation

Mutation returns the LogSummarizationsMutation object of the builder.

func (*LogSummarizationsUpdate) Save

func (lsu *LogSummarizationsUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*LogSummarizationsUpdate) SaveX

func (lsu *LogSummarizationsUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*LogSummarizationsUpdate) SetCompletionTokenUsage

func (lsu *LogSummarizationsUpdate) SetCompletionTokenUsage(i int) *LogSummarizationsUpdate

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*LogSummarizationsUpdate) SetContentAuthor

func (lsu *LogSummarizationsUpdate) SetContentAuthor(s string) *LogSummarizationsUpdate

SetContentAuthor sets the "content_author" field.

func (*LogSummarizationsUpdate) SetContentSummarizedOutputs

func (lsu *LogSummarizationsUpdate) SetContentSummarizedOutputs(s string) *LogSummarizationsUpdate

SetContentSummarizedOutputs sets the "content_summarized_outputs" field.

func (*LogSummarizationsUpdate) SetContentText

func (lsu *LogSummarizationsUpdate) SetContentText(s string) *LogSummarizationsUpdate

SetContentText sets the "content_text" field.

func (*LogSummarizationsUpdate) SetContentTitle

func (lsu *LogSummarizationsUpdate) SetContentTitle(s string) *LogSummarizationsUpdate

SetContentTitle sets the "content_title" field.

func (*LogSummarizationsUpdate) SetContentURL

SetContentURL sets the "content_url" field.

func (*LogSummarizationsUpdate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*LogSummarizationsUpdate) SetFromPlatform

func (lsu *LogSummarizationsUpdate) SetFromPlatform(i int) *LogSummarizationsUpdate

SetFromPlatform sets the "from_platform" field.

func (*LogSummarizationsUpdate) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*LogSummarizationsUpdate) SetNillableCompletionTokenUsage

func (lsu *LogSummarizationsUpdate) SetNillableCompletionTokenUsage(i *int) *LogSummarizationsUpdate

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableContentAuthor

func (lsu *LogSummarizationsUpdate) SetNillableContentAuthor(s *string) *LogSummarizationsUpdate

SetNillableContentAuthor sets the "content_author" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableContentSummarizedOutputs

func (lsu *LogSummarizationsUpdate) SetNillableContentSummarizedOutputs(s *string) *LogSummarizationsUpdate

SetNillableContentSummarizedOutputs sets the "content_summarized_outputs" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableContentText

func (lsu *LogSummarizationsUpdate) SetNillableContentText(s *string) *LogSummarizationsUpdate

SetNillableContentText sets the "content_text" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableContentTitle

func (lsu *LogSummarizationsUpdate) SetNillableContentTitle(s *string) *LogSummarizationsUpdate

SetNillableContentTitle sets the "content_title" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableContentURL

func (lsu *LogSummarizationsUpdate) SetNillableContentURL(s *string) *LogSummarizationsUpdate

SetNillableContentURL sets the "content_url" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableCreatedAt

func (lsu *LogSummarizationsUpdate) SetNillableCreatedAt(i *int64) *LogSummarizationsUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableFromPlatform

func (lsu *LogSummarizationsUpdate) SetNillableFromPlatform(i *int) *LogSummarizationsUpdate

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableModelName added in v0.18.0

func (lsu *LogSummarizationsUpdate) SetNillableModelName(s *string) *LogSummarizationsUpdate

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillablePromptTokenUsage

func (lsu *LogSummarizationsUpdate) SetNillablePromptTokenUsage(i *int) *LogSummarizationsUpdate

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableTotalTokenUsage

func (lsu *LogSummarizationsUpdate) SetNillableTotalTokenUsage(i *int) *LogSummarizationsUpdate

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetNillableUpdatedAt

func (lsu *LogSummarizationsUpdate) SetNillableUpdatedAt(i *int64) *LogSummarizationsUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LogSummarizationsUpdate) SetPromptTokenUsage

func (lsu *LogSummarizationsUpdate) SetPromptTokenUsage(i int) *LogSummarizationsUpdate

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*LogSummarizationsUpdate) SetTotalTokenUsage

func (lsu *LogSummarizationsUpdate) SetTotalTokenUsage(i int) *LogSummarizationsUpdate

SetTotalTokenUsage sets the "total_token_usage" field.

func (*LogSummarizationsUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LogSummarizationsUpdate) Where

Where appends a list predicates to the LogSummarizationsUpdate builder.

type LogSummarizationsUpdateOne

type LogSummarizationsUpdateOne struct {
	// contains filtered or unexported fields
}

LogSummarizationsUpdateOne is the builder for updating a single LogSummarizations entity.

func (*LogSummarizationsUpdateOne) AddCompletionTokenUsage

func (lsuo *LogSummarizationsUpdateOne) AddCompletionTokenUsage(i int) *LogSummarizationsUpdateOne

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*LogSummarizationsUpdateOne) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*LogSummarizationsUpdateOne) AddFromPlatform

func (lsuo *LogSummarizationsUpdateOne) AddFromPlatform(i int) *LogSummarizationsUpdateOne

AddFromPlatform adds i to the "from_platform" field.

func (*LogSummarizationsUpdateOne) AddPromptTokenUsage

func (lsuo *LogSummarizationsUpdateOne) AddPromptTokenUsage(i int) *LogSummarizationsUpdateOne

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*LogSummarizationsUpdateOne) AddTotalTokenUsage

func (lsuo *LogSummarizationsUpdateOne) AddTotalTokenUsage(i int) *LogSummarizationsUpdateOne

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*LogSummarizationsUpdateOne) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*LogSummarizationsUpdateOne) Exec

Exec executes the query on the entity.

func (*LogSummarizationsUpdateOne) ExecX

func (lsuo *LogSummarizationsUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LogSummarizationsUpdateOne) Mutation

Mutation returns the LogSummarizationsMutation object of the builder.

func (*LogSummarizationsUpdateOne) Save

Save executes the query and returns the updated LogSummarizations entity.

func (*LogSummarizationsUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*LogSummarizationsUpdateOne) Select

func (lsuo *LogSummarizationsUpdateOne) Select(field string, fields ...string) *LogSummarizationsUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*LogSummarizationsUpdateOne) SetCompletionTokenUsage

func (lsuo *LogSummarizationsUpdateOne) SetCompletionTokenUsage(i int) *LogSummarizationsUpdateOne

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*LogSummarizationsUpdateOne) SetContentAuthor

SetContentAuthor sets the "content_author" field.

func (*LogSummarizationsUpdateOne) SetContentSummarizedOutputs

func (lsuo *LogSummarizationsUpdateOne) SetContentSummarizedOutputs(s string) *LogSummarizationsUpdateOne

SetContentSummarizedOutputs sets the "content_summarized_outputs" field.

func (*LogSummarizationsUpdateOne) SetContentText

SetContentText sets the "content_text" field.

func (*LogSummarizationsUpdateOne) SetContentTitle

SetContentTitle sets the "content_title" field.

func (*LogSummarizationsUpdateOne) SetContentURL

SetContentURL sets the "content_url" field.

func (*LogSummarizationsUpdateOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*LogSummarizationsUpdateOne) SetFromPlatform

func (lsuo *LogSummarizationsUpdateOne) SetFromPlatform(i int) *LogSummarizationsUpdateOne

SetFromPlatform sets the "from_platform" field.

func (*LogSummarizationsUpdateOne) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*LogSummarizationsUpdateOne) SetNillableCompletionTokenUsage

func (lsuo *LogSummarizationsUpdateOne) SetNillableCompletionTokenUsage(i *int) *LogSummarizationsUpdateOne

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableContentAuthor

func (lsuo *LogSummarizationsUpdateOne) SetNillableContentAuthor(s *string) *LogSummarizationsUpdateOne

SetNillableContentAuthor sets the "content_author" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableContentSummarizedOutputs

func (lsuo *LogSummarizationsUpdateOne) SetNillableContentSummarizedOutputs(s *string) *LogSummarizationsUpdateOne

SetNillableContentSummarizedOutputs sets the "content_summarized_outputs" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableContentText

func (lsuo *LogSummarizationsUpdateOne) SetNillableContentText(s *string) *LogSummarizationsUpdateOne

SetNillableContentText sets the "content_text" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableContentTitle

func (lsuo *LogSummarizationsUpdateOne) SetNillableContentTitle(s *string) *LogSummarizationsUpdateOne

SetNillableContentTitle sets the "content_title" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableContentURL

func (lsuo *LogSummarizationsUpdateOne) SetNillableContentURL(s *string) *LogSummarizationsUpdateOne

SetNillableContentURL sets the "content_url" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableCreatedAt

func (lsuo *LogSummarizationsUpdateOne) SetNillableCreatedAt(i *int64) *LogSummarizationsUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableFromPlatform

func (lsuo *LogSummarizationsUpdateOne) SetNillableFromPlatform(i *int) *LogSummarizationsUpdateOne

SetNillableFromPlatform sets the "from_platform" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableModelName added in v0.18.0

func (lsuo *LogSummarizationsUpdateOne) SetNillableModelName(s *string) *LogSummarizationsUpdateOne

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillablePromptTokenUsage

func (lsuo *LogSummarizationsUpdateOne) SetNillablePromptTokenUsage(i *int) *LogSummarizationsUpdateOne

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableTotalTokenUsage

func (lsuo *LogSummarizationsUpdateOne) SetNillableTotalTokenUsage(i *int) *LogSummarizationsUpdateOne

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetNillableUpdatedAt

func (lsuo *LogSummarizationsUpdateOne) SetNillableUpdatedAt(i *int64) *LogSummarizationsUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LogSummarizationsUpdateOne) SetPromptTokenUsage

func (lsuo *LogSummarizationsUpdateOne) SetPromptTokenUsage(i int) *LogSummarizationsUpdateOne

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*LogSummarizationsUpdateOne) SetTotalTokenUsage

func (lsuo *LogSummarizationsUpdateOne) SetTotalTokenUsage(i int) *LogSummarizationsUpdateOne

SetTotalTokenUsage sets the "total_token_usage" field.

func (*LogSummarizationsUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LogSummarizationsUpdateOne) Where

Where appends a list predicates to the LogSummarizationsUpdate builder.

type MetricOpenAIChatCompletionTokenUsage

type MetricOpenAIChatCompletionTokenUsage struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// PromptOperation holds the value of the "prompt_operation" field.
	PromptOperation string `json:"prompt_operation,omitempty"`
	// PromptCharacterLength holds the value of the "prompt_character_length" field.
	PromptCharacterLength int `json:"prompt_character_length,omitempty"`
	// PromptTokenUsage holds the value of the "prompt_token_usage" field.
	PromptTokenUsage int `json:"prompt_token_usage,omitempty"`
	// CompletionCharacterLength holds the value of the "completion_character_length" field.
	CompletionCharacterLength int `json:"completion_character_length,omitempty"`
	// CompletionTokenUsage holds the value of the "completion_token_usage" field.
	CompletionTokenUsage int `json:"completion_token_usage,omitempty"`
	// TotalTokenUsage holds the value of the "total_token_usage" field.
	TotalTokenUsage int `json:"total_token_usage,omitempty"`
	// ModelName holds the value of the "model_name" field.
	ModelName string `json:"model_name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsage is the model entity for the MetricOpenAIChatCompletionTokenUsage schema.

func (*MetricOpenAIChatCompletionTokenUsage) String

func (moacctu *MetricOpenAIChatCompletionTokenUsage) String() string

String implements the fmt.Stringer.

func (*MetricOpenAIChatCompletionTokenUsage) Unwrap

Unwrap unwraps the MetricOpenAIChatCompletionTokenUsage entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*MetricOpenAIChatCompletionTokenUsage) Update

Update returns a builder for updating this MetricOpenAIChatCompletionTokenUsage. Note that you need to call MetricOpenAIChatCompletionTokenUsage.Unwrap() before calling this method if this MetricOpenAIChatCompletionTokenUsage was returned from a transaction, and the transaction was committed or rolled back.

func (*MetricOpenAIChatCompletionTokenUsage) Value

func (moacctu *MetricOpenAIChatCompletionTokenUsage) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the MetricOpenAIChatCompletionTokenUsage. This includes values selected through modifiers, order, etc.

type MetricOpenAIChatCompletionTokenUsageClient

type MetricOpenAIChatCompletionTokenUsageClient struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageClient is a client for the MetricOpenAIChatCompletionTokenUsage schema.

func NewMetricOpenAIChatCompletionTokenUsageClient

func NewMetricOpenAIChatCompletionTokenUsageClient(c config) *MetricOpenAIChatCompletionTokenUsageClient

NewMetricOpenAIChatCompletionTokenUsageClient returns a client for the MetricOpenAIChatCompletionTokenUsage from the given config.

func (*MetricOpenAIChatCompletionTokenUsageClient) Create

Create returns a builder for creating a MetricOpenAIChatCompletionTokenUsage entity.

func (*MetricOpenAIChatCompletionTokenUsageClient) CreateBulk

CreateBulk returns a builder for creating a bulk of MetricOpenAIChatCompletionTokenUsage entities.

func (*MetricOpenAIChatCompletionTokenUsageClient) Delete

Delete returns a delete builder for MetricOpenAIChatCompletionTokenUsage.

func (*MetricOpenAIChatCompletionTokenUsageClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*MetricOpenAIChatCompletionTokenUsageClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*MetricOpenAIChatCompletionTokenUsageClient) Get

Get returns a MetricOpenAIChatCompletionTokenUsage entity by its id.

func (*MetricOpenAIChatCompletionTokenUsageClient) GetX

GetX is like Get, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageClient) Hooks

Hooks returns the client hooks.

func (*MetricOpenAIChatCompletionTokenUsageClient) Intercept

func (c *MetricOpenAIChatCompletionTokenUsageClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `metricopenaichatcompletiontokenusage.Intercept(f(g(h())))`.

func (*MetricOpenAIChatCompletionTokenUsageClient) Interceptors

Interceptors returns the client interceptors.

func (*MetricOpenAIChatCompletionTokenUsageClient) MapCreateBulk added in v0.22.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*MetricOpenAIChatCompletionTokenUsageClient) Query

Query returns a query builder for MetricOpenAIChatCompletionTokenUsage.

func (*MetricOpenAIChatCompletionTokenUsageClient) Update

Update returns an update builder for MetricOpenAIChatCompletionTokenUsage.

func (*MetricOpenAIChatCompletionTokenUsageClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*MetricOpenAIChatCompletionTokenUsageClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*MetricOpenAIChatCompletionTokenUsageClient) Use

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `metricopenaichatcompletiontokenusage.Hooks(f(g(h())))`.

type MetricOpenAIChatCompletionTokenUsageCreate

type MetricOpenAIChatCompletionTokenUsageCreate struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageCreate is the builder for creating a MetricOpenAIChatCompletionTokenUsage entity.

func (*MetricOpenAIChatCompletionTokenUsageCreate) Exec

Exec executes the query.

func (*MetricOpenAIChatCompletionTokenUsageCreate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageCreate) Mutation

Mutation returns the MetricOpenAIChatCompletionTokenUsageMutation object of the builder.

func (*MetricOpenAIChatCompletionTokenUsageCreate) Save

Save creates the MetricOpenAIChatCompletionTokenUsage in the database.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetCompletionCharacterLength

SetCompletionCharacterLength sets the "completion_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetCompletionTokenUsage

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetID

SetID sets the "id" field.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCompletionCharacterLength

func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCompletionCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageCreate

SetNillableCompletionCharacterLength sets the "completion_character_length" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCompletionTokenUsage

func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCompletionTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageCreate

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCreatedAt

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillableModelName added in v0.18.0

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptCharacterLength

func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageCreate

SetNillablePromptCharacterLength sets the "prompt_character_length" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptOperation

SetNillablePromptOperation sets the "prompt_operation" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptTokenUsage

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillableTotalTokenUsage

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetPromptCharacterLength

SetPromptCharacterLength sets the "prompt_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetPromptOperation

SetPromptOperation sets the "prompt_operation" field.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetPromptTokenUsage

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageCreate) SetTotalTokenUsage

SetTotalTokenUsage sets the "total_token_usage" field.

type MetricOpenAIChatCompletionTokenUsageCreateBulk

type MetricOpenAIChatCompletionTokenUsageCreateBulk struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageCreateBulk is the builder for creating many MetricOpenAIChatCompletionTokenUsage entities in bulk.

func (*MetricOpenAIChatCompletionTokenUsageCreateBulk) Exec

Exec executes the query.

func (*MetricOpenAIChatCompletionTokenUsageCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageCreateBulk) Save

Save creates the MetricOpenAIChatCompletionTokenUsage entities in the database.

func (*MetricOpenAIChatCompletionTokenUsageCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type MetricOpenAIChatCompletionTokenUsageDelete

type MetricOpenAIChatCompletionTokenUsageDelete struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageDelete is the builder for deleting a MetricOpenAIChatCompletionTokenUsage entity.

func (*MetricOpenAIChatCompletionTokenUsageDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*MetricOpenAIChatCompletionTokenUsageDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageDelete) Where

Where appends a list predicates to the MetricOpenAIChatCompletionTokenUsageDelete builder.

type MetricOpenAIChatCompletionTokenUsageDeleteOne

type MetricOpenAIChatCompletionTokenUsageDeleteOne struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageDeleteOne is the builder for deleting a single MetricOpenAIChatCompletionTokenUsage entity.

func (*MetricOpenAIChatCompletionTokenUsageDeleteOne) Exec

Exec executes the deletion query.

func (*MetricOpenAIChatCompletionTokenUsageDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageDeleteOne) Where

Where appends a list predicates to the MetricOpenAIChatCompletionTokenUsageDelete builder.

type MetricOpenAIChatCompletionTokenUsageGroupBy

type MetricOpenAIChatCompletionTokenUsageGroupBy struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageGroupBy is the group-by builder for MetricOpenAIChatCompletionTokenUsage entities.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Bool

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) BoolX

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Bools

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) BoolsX

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Float64

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Float64X

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Float64s

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Float64sX

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Int

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) IntX

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Ints

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) IntsX

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) ScanX

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) String

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) StringX

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Strings

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageGroupBy) StringsX

func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type MetricOpenAIChatCompletionTokenUsageMutation

type MetricOpenAIChatCompletionTokenUsageMutation struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageMutation represents an operation that mutates the MetricOpenAIChatCompletionTokenUsage nodes in the graph.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddCompletionCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddCompletionCharacterLength(i int)

AddCompletionCharacterLength adds i to the "completion_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddCompletionTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddCompletionTokenUsage(i int)

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddField

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddPromptCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddPromptCharacterLength(i int)

AddPromptCharacterLength adds i to the "prompt_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddPromptTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddPromptTokenUsage(i int)

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddTotalTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddTotalTokenUsage(i int)

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedCompletionCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedCompletionCharacterLength() (r int, exists bool)

AddedCompletionCharacterLength returns the value that was added to the "completion_character_length" field in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedCompletionTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedCompletionTokenUsage() (r int, exists bool)

AddedCompletionTokenUsage returns the value that was added to the "completion_token_usage" field in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedCreatedAt

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedEdges

AddedEdges returns all edge names that were set/added in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedField

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedFields

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedIDs

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedPromptCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedPromptCharacterLength() (r int, exists bool)

AddedPromptCharacterLength returns the value that was added to the "prompt_character_length" field in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedPromptTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedPromptTokenUsage() (r int, exists bool)

AddedPromptTokenUsage returns the value that was added to the "prompt_token_usage" field in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedTotalTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedTotalTokenUsage() (r int, exists bool)

AddedTotalTokenUsage returns the value that was added to the "total_token_usage" field in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ClearEdge

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ClearField

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ClearedEdges

ClearedEdges returns all edge names that were cleared in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ClearedFields

ClearedFields returns all nullable fields that were cleared during this mutation.

func (MetricOpenAIChatCompletionTokenUsageMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*MetricOpenAIChatCompletionTokenUsageMutation) CompletionCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) CompletionCharacterLength() (r int, exists bool)

CompletionCharacterLength returns the value of the "completion_character_length" field in the mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) CompletionTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) CompletionTokenUsage() (r int, exists bool)

CompletionTokenUsage returns the value of the "completion_token_usage" field in the mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) CreatedAt

func (m *MetricOpenAIChatCompletionTokenUsageMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) EdgeCleared

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) Field

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*MetricOpenAIChatCompletionTokenUsageMutation) FieldCleared

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) Fields

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*MetricOpenAIChatCompletionTokenUsageMutation) ID

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*MetricOpenAIChatCompletionTokenUsageMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ModelName added in v0.18.0

func (m *MetricOpenAIChatCompletionTokenUsageMutation) ModelName() (r string, exists bool)

ModelName returns the value of the "model_name" field in the mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldCompletionCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldCompletionCharacterLength(ctx context.Context) (v int, err error)

OldCompletionCharacterLength returns the old "completion_character_length" field's value of the MetricOpenAIChatCompletionTokenUsage entity. If the MetricOpenAIChatCompletionTokenUsage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldCompletionTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldCompletionTokenUsage(ctx context.Context) (v int, err error)

OldCompletionTokenUsage returns the old "completion_token_usage" field's value of the MetricOpenAIChatCompletionTokenUsage entity. If the MetricOpenAIChatCompletionTokenUsage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldCreatedAt

OldCreatedAt returns the old "created_at" field's value of the MetricOpenAIChatCompletionTokenUsage entity. If the MetricOpenAIChatCompletionTokenUsage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldModelName added in v0.18.0

OldModelName returns the old "model_name" field's value of the MetricOpenAIChatCompletionTokenUsage entity. If the MetricOpenAIChatCompletionTokenUsage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldPromptCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldPromptCharacterLength(ctx context.Context) (v int, err error)

OldPromptCharacterLength returns the old "prompt_character_length" field's value of the MetricOpenAIChatCompletionTokenUsage entity. If the MetricOpenAIChatCompletionTokenUsage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldPromptOperation

func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldPromptOperation(ctx context.Context) (v string, err error)

OldPromptOperation returns the old "prompt_operation" field's value of the MetricOpenAIChatCompletionTokenUsage entity. If the MetricOpenAIChatCompletionTokenUsage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldPromptTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldPromptTokenUsage(ctx context.Context) (v int, err error)

OldPromptTokenUsage returns the old "prompt_token_usage" field's value of the MetricOpenAIChatCompletionTokenUsage entity. If the MetricOpenAIChatCompletionTokenUsage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*MetricOpenAIChatCompletionTokenUsageMutation) OldTotalTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldTotalTokenUsage(ctx context.Context) (v int, err error)

OldTotalTokenUsage returns the old "total_token_usage" field's value of the MetricOpenAIChatCompletionTokenUsage entity. If the MetricOpenAIChatCompletionTokenUsage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*MetricOpenAIChatCompletionTokenUsageMutation) Op

Op returns the operation name.

func (*MetricOpenAIChatCompletionTokenUsageMutation) PromptCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) PromptCharacterLength() (r int, exists bool)

PromptCharacterLength returns the value of the "prompt_character_length" field in the mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) PromptOperation

func (m *MetricOpenAIChatCompletionTokenUsageMutation) PromptOperation() (r string, exists bool)

PromptOperation returns the value of the "prompt_operation" field in the mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) PromptTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) PromptTokenUsage() (r int, exists bool)

PromptTokenUsage returns the value of the "prompt_token_usage" field in the mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) RemovedEdges

RemovedEdges returns all edge names that were removed in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) RemovedIDs

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetCompletionCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetCompletionCharacterLength()

ResetCompletionCharacterLength resets all changes to the "completion_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetCompletionTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetCompletionTokenUsage()

ResetCompletionTokenUsage resets all changes to the "completion_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetCreatedAt

ResetCreatedAt resets all changes to the "created_at" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetEdge

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetField

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetModelName added in v0.18.0

ResetModelName resets all changes to the "model_name" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptCharacterLength()

ResetPromptCharacterLength resets all changes to the "prompt_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptOperation

func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptOperation()

ResetPromptOperation resets all changes to the "prompt_operation" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptTokenUsage()

ResetPromptTokenUsage resets all changes to the "prompt_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetTotalTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetTotalTokenUsage()

ResetTotalTokenUsage resets all changes to the "total_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetCompletionCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetCompletionCharacterLength(i int)

SetCompletionCharacterLength sets the "completion_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetCompletionTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetCompletionTokenUsage(i int)

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetField

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetID

SetID sets the value of the id field. Note that this operation is only accepted on creation of MetricOpenAIChatCompletionTokenUsage entities.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetOp

SetOp allows setting the mutation operation.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetPromptCharacterLength

func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetPromptCharacterLength(i int)

SetPromptCharacterLength sets the "prompt_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetPromptOperation

func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetPromptOperation(s string)

SetPromptOperation sets the "prompt_operation" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetPromptTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetPromptTokenUsage(i int)

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) SetTotalTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetTotalTokenUsage(i int)

SetTotalTokenUsage sets the "total_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageMutation) TotalTokenUsage

func (m *MetricOpenAIChatCompletionTokenUsageMutation) TotalTokenUsage() (r int, exists bool)

TotalTokenUsage returns the value of the "total_token_usage" field in the mutation.

func (MetricOpenAIChatCompletionTokenUsageMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*MetricOpenAIChatCompletionTokenUsageMutation) Type

Type returns the node type of this mutation (MetricOpenAIChatCompletionTokenUsage).

func (*MetricOpenAIChatCompletionTokenUsageMutation) Where

Where appends a list predicates to the MetricOpenAIChatCompletionTokenUsageMutation builder.

func (*MetricOpenAIChatCompletionTokenUsageMutation) WhereP

WhereP appends storage-level predicates to the MetricOpenAIChatCompletionTokenUsageMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type MetricOpenAIChatCompletionTokenUsageQuery

type MetricOpenAIChatCompletionTokenUsageQuery struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageQuery is the builder for querying MetricOpenAIChatCompletionTokenUsage entities.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Aggregate

Aggregate returns a MetricOpenAIChatCompletionTokenUsageSelect configured with the given aggregations.

func (*MetricOpenAIChatCompletionTokenUsageQuery) All

All executes the query and returns a list of MetricOpenAIChatCompletionTokenUsages.

func (*MetricOpenAIChatCompletionTokenUsageQuery) AllX

AllX is like All, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Clone

Clone returns a duplicate of the MetricOpenAIChatCompletionTokenUsageQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Count

Count returns the count of the given query.

func (*MetricOpenAIChatCompletionTokenUsageQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Exist

Exist returns true if the query has elements in the graph.

func (*MetricOpenAIChatCompletionTokenUsageQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) First

First returns the first MetricOpenAIChatCompletionTokenUsage entity from the query. Returns a *NotFoundError when no MetricOpenAIChatCompletionTokenUsage was found.

func (*MetricOpenAIChatCompletionTokenUsageQuery) FirstID

func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first MetricOpenAIChatCompletionTokenUsage ID from the query. Returns a *NotFoundError when no MetricOpenAIChatCompletionTokenUsage ID was found.

func (*MetricOpenAIChatCompletionTokenUsageQuery) FirstIDX

FirstIDX is like FirstID, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) GroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	PromptOperation string `json:"prompt_operation,omitempty"`
	Count int `json:"count,omitempty"`
}

client.MetricOpenAIChatCompletionTokenUsage.Query().
	GroupBy(metricopenaichatcompletiontokenusage.FieldPromptOperation).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*MetricOpenAIChatCompletionTokenUsageQuery) IDs

func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of MetricOpenAIChatCompletionTokenUsage IDs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Limit

Limit the number of records to be returned by this query.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Offset

Offset to start from.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Only

Only returns a single MetricOpenAIChatCompletionTokenUsage entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one MetricOpenAIChatCompletionTokenUsage entity is found. Returns a *NotFoundError when no MetricOpenAIChatCompletionTokenUsage entities are found.

func (*MetricOpenAIChatCompletionTokenUsageQuery) OnlyID

func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only MetricOpenAIChatCompletionTokenUsage ID in the query. Returns a *NotSingularError when more than one MetricOpenAIChatCompletionTokenUsage ID is found. Returns a *NotFoundError when no entities are found.

func (*MetricOpenAIChatCompletionTokenUsageQuery) OnlyIDX

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Order

Order specifies how the records should be ordered.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	PromptOperation string `json:"prompt_operation,omitempty"`
}

client.MetricOpenAIChatCompletionTokenUsage.Query().
	Select(metricopenaichatcompletiontokenusage.FieldPromptOperation).
	Scan(ctx, &v)

func (*MetricOpenAIChatCompletionTokenUsageQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*MetricOpenAIChatCompletionTokenUsageQuery) Where

Where adds a new predicate for the MetricOpenAIChatCompletionTokenUsageQuery builder.

type MetricOpenAIChatCompletionTokenUsageSelect

type MetricOpenAIChatCompletionTokenUsageSelect struct {
	*MetricOpenAIChatCompletionTokenUsageQuery
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageSelect is the builder for selecting fields of MetricOpenAIChatCompletionTokenUsage entities.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Bool

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageSelect) BoolX

func (s *MetricOpenAIChatCompletionTokenUsageSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Bools

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageSelect) BoolsX

func (s *MetricOpenAIChatCompletionTokenUsageSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Float64

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Float64X

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Float64s

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Float64sX

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Int

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageSelect) IntX

func (s *MetricOpenAIChatCompletionTokenUsageSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Ints

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageSelect) IntsX

func (s *MetricOpenAIChatCompletionTokenUsageSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*MetricOpenAIChatCompletionTokenUsageSelect) ScanX

func (s *MetricOpenAIChatCompletionTokenUsageSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageSelect) String

func (s *MetricOpenAIChatCompletionTokenUsageSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageSelect) StringX

func (s *MetricOpenAIChatCompletionTokenUsageSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageSelect) Strings

func (s *MetricOpenAIChatCompletionTokenUsageSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*MetricOpenAIChatCompletionTokenUsageSelect) StringsX

func (s *MetricOpenAIChatCompletionTokenUsageSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type MetricOpenAIChatCompletionTokenUsageUpdate

type MetricOpenAIChatCompletionTokenUsageUpdate struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageUpdate is the builder for updating MetricOpenAIChatCompletionTokenUsage entities.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddCompletionCharacterLength

AddCompletionCharacterLength adds i to the "completion_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddCompletionTokenUsage

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddPromptCharacterLength

AddPromptCharacterLength adds i to the "prompt_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddPromptTokenUsage

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddTotalTokenUsage

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) Exec

Exec executes the query.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) Mutation

Mutation returns the MetricOpenAIChatCompletionTokenUsageMutation object of the builder.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetCompletionCharacterLength

SetCompletionCharacterLength sets the "completion_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetCompletionTokenUsage

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCompletionCharacterLength

func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCompletionCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate

SetNillableCompletionCharacterLength sets the "completion_character_length" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCompletionTokenUsage

func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCompletionTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCreatedAt

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableModelName added in v0.18.0

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptCharacterLength

func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate

SetNillablePromptCharacterLength sets the "prompt_character_length" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptOperation

SetNillablePromptOperation sets the "prompt_operation" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptTokenUsage

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableTotalTokenUsage

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptCharacterLength

SetPromptCharacterLength sets the "prompt_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptOperation

SetPromptOperation sets the "prompt_operation" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptTokenUsage

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetTotalTokenUsage

SetTotalTokenUsage sets the "total_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdate) Where

Where appends a list predicates to the MetricOpenAIChatCompletionTokenUsageUpdate builder.

type MetricOpenAIChatCompletionTokenUsageUpdateOne

type MetricOpenAIChatCompletionTokenUsageUpdateOne struct {
	// contains filtered or unexported fields
}

MetricOpenAIChatCompletionTokenUsageUpdateOne is the builder for updating a single MetricOpenAIChatCompletionTokenUsage entity.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCompletionCharacterLength

AddCompletionCharacterLength adds i to the "completion_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCompletionTokenUsage

AddCompletionTokenUsage adds i to the "completion_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddPromptCharacterLength

AddPromptCharacterLength adds i to the "prompt_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddPromptTokenUsage

AddPromptTokenUsage adds i to the "prompt_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddTotalTokenUsage

AddTotalTokenUsage adds i to the "total_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Exec

Exec executes the query on the entity.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Mutation

Mutation returns the MetricOpenAIChatCompletionTokenUsageMutation object of the builder.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Save

Save executes the query and returns the updated MetricOpenAIChatCompletionTokenUsage entity.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCompletionCharacterLength

SetCompletionCharacterLength sets the "completion_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCompletionTokenUsage

SetCompletionTokenUsage sets the "completion_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetModelName added in v0.18.0

SetModelName sets the "model_name" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCompletionCharacterLength

func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCompletionCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne

SetNillableCompletionCharacterLength sets the "completion_character_length" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCompletionTokenUsage

SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCreatedAt

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableModelName added in v0.18.0

SetNillableModelName sets the "model_name" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptCharacterLength

SetNillablePromptCharacterLength sets the "prompt_character_length" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptOperation

SetNillablePromptOperation sets the "prompt_operation" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptTokenUsage

SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableTotalTokenUsage

SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptCharacterLength

SetPromptCharacterLength sets the "prompt_character_length" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptOperation

SetPromptOperation sets the "prompt_operation" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptTokenUsage

SetPromptTokenUsage sets the "prompt_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetTotalTokenUsage

SetTotalTokenUsage sets the "total_token_usage" field.

func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Where

Where appends a list predicates to the MetricOpenAIChatCompletionTokenUsageUpdate builder.

type MetricOpenAIChatCompletionTokenUsages

type MetricOpenAIChatCompletionTokenUsages []*MetricOpenAIChatCompletionTokenUsage

MetricOpenAIChatCompletionTokenUsages is a parsable slice of MetricOpenAIChatCompletionTokenUsage.

type MutateFunc

type MutateFunc = ent.MutateFunc

ent aliases to avoid import conflicts in user's code.

type Mutation

type Mutation = ent.Mutation

ent aliases to avoid import conflicts in user's code.

type Mutator

type Mutator = ent.Mutator

ent aliases to avoid import conflicts in user's code.

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

NotFoundError returns when trying to fetch a specific entity and it was not found in the database.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Error implements the error interface.

type NotLoadedError

type NotLoadedError struct {
	// contains filtered or unexported fields
}

NotLoadedError returns when trying to get a node that was not loaded by the query.

func (*NotLoadedError) Error

func (e *NotLoadedError) Error() string

Error implements the error interface.

type NotSingularError

type NotSingularError struct {
	// contains filtered or unexported fields
}

NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.

func (*NotSingularError) Error

func (e *NotSingularError) Error() string

Error implements the error interface.

type Op

type Op = ent.Op

ent aliases to avoid import conflicts in user's code.

type Option

type Option func(*config)

Option function to configure the client.

func AlternateSchema

func AlternateSchema(schemaConfig SchemaConfig) Option

AlternateSchemas allows alternate schema names to be passed into ent operations.

func Debug

func Debug() Option

Debug enables debug logging on the ent.Driver.

func Driver

func Driver(driver dialect.Driver) Option

Driver configures the client driver.

func Log

func Log(fn func(...any)) Option

Log sets the logging function for debug mode.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.

type Policy

type Policy = ent.Policy

ent aliases to avoid import conflicts in user's code.

type Querier

type Querier = ent.Querier

ent aliases to avoid import conflicts in user's code.

type QuerierFunc

type QuerierFunc = ent.QuerierFunc

ent aliases to avoid import conflicts in user's code.

type Query

type Query = ent.Query

ent aliases to avoid import conflicts in user's code.

type QueryContext

type QueryContext = ent.QueryContext

ent aliases to avoid import conflicts in user's code.

type RollbackFunc

type RollbackFunc func(context.Context, *Tx) error

The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

type RollbackHook

type RollbackHook func(Rollbacker) Rollbacker

RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:

hook := func(next ent.Rollbacker) ent.Rollbacker {
	return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Rollback(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Rollbacker

type Rollbacker interface {
	Rollback(context.Context, *Tx) error
}

Rollbacker is the interface that wraps the Rollback method.

type SchemaConfig

type SchemaConfig = internal.SchemaConfig

SchemaConfig represents alternative schema names for all tables that can be passed at runtime.

type SlackOAuthCredentials

type SlackOAuthCredentials struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// TeamID holds the value of the "team_id" field.
	TeamID string `json:"team_id,omitempty"`
	// RefreshToken holds the value of the "refresh_token" field.
	RefreshToken string `json:"refresh_token,omitempty"`
	// AccessToken holds the value of the "access_token" field.
	AccessToken string `json:"access_token,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

SlackOAuthCredentials is the model entity for the SlackOAuthCredentials schema.

func (*SlackOAuthCredentials) String

func (soc *SlackOAuthCredentials) String() string

String implements the fmt.Stringer.

func (*SlackOAuthCredentials) Unwrap

Unwrap unwraps the SlackOAuthCredentials entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*SlackOAuthCredentials) Update

Update returns a builder for updating this SlackOAuthCredentials. Note that you need to call SlackOAuthCredentials.Unwrap() before calling this method if this SlackOAuthCredentials was returned from a transaction, and the transaction was committed or rolled back.

func (*SlackOAuthCredentials) Value

func (soc *SlackOAuthCredentials) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the SlackOAuthCredentials. This includes values selected through modifiers, order, etc.

type SlackOAuthCredentialsClient

type SlackOAuthCredentialsClient struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsClient is a client for the SlackOAuthCredentials schema.

func NewSlackOAuthCredentialsClient

func NewSlackOAuthCredentialsClient(c config) *SlackOAuthCredentialsClient

NewSlackOAuthCredentialsClient returns a client for the SlackOAuthCredentials from the given config.

func (*SlackOAuthCredentialsClient) Create

Create returns a builder for creating a SlackOAuthCredentials entity.

func (*SlackOAuthCredentialsClient) CreateBulk

CreateBulk returns a builder for creating a bulk of SlackOAuthCredentials entities.

func (*SlackOAuthCredentialsClient) Delete

Delete returns a delete builder for SlackOAuthCredentials.

func (*SlackOAuthCredentialsClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*SlackOAuthCredentialsClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*SlackOAuthCredentialsClient) Get

Get returns a SlackOAuthCredentials entity by its id.

func (*SlackOAuthCredentialsClient) GetX

GetX is like Get, but panics if an error occurs.

func (*SlackOAuthCredentialsClient) Hooks

func (c *SlackOAuthCredentialsClient) Hooks() []Hook

Hooks returns the client hooks.

func (*SlackOAuthCredentialsClient) Intercept

func (c *SlackOAuthCredentialsClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `slackoauthcredentials.Intercept(f(g(h())))`.

func (*SlackOAuthCredentialsClient) Interceptors

func (c *SlackOAuthCredentialsClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*SlackOAuthCredentialsClient) MapCreateBulk added in v0.22.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*SlackOAuthCredentialsClient) Query

Query returns a query builder for SlackOAuthCredentials.

func (*SlackOAuthCredentialsClient) Update

Update returns an update builder for SlackOAuthCredentials.

func (*SlackOAuthCredentialsClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*SlackOAuthCredentialsClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*SlackOAuthCredentialsClient) Use

func (c *SlackOAuthCredentialsClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `slackoauthcredentials.Hooks(f(g(h())))`.

type SlackOAuthCredentialsCreate

type SlackOAuthCredentialsCreate struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsCreate is the builder for creating a SlackOAuthCredentials entity.

func (*SlackOAuthCredentialsCreate) Exec

Exec executes the query.

func (*SlackOAuthCredentialsCreate) ExecX

func (socc *SlackOAuthCredentialsCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SlackOAuthCredentialsCreate) Mutation

Mutation returns the SlackOAuthCredentialsMutation object of the builder.

func (*SlackOAuthCredentialsCreate) Save

Save creates the SlackOAuthCredentials in the database.

func (*SlackOAuthCredentialsCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*SlackOAuthCredentialsCreate) SetAccessToken

SetAccessToken sets the "access_token" field.

func (*SlackOAuthCredentialsCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*SlackOAuthCredentialsCreate) SetID

SetID sets the "id" field.

func (*SlackOAuthCredentialsCreate) SetNillableCreatedAt

func (socc *SlackOAuthCredentialsCreate) SetNillableCreatedAt(i *int64) *SlackOAuthCredentialsCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*SlackOAuthCredentialsCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*SlackOAuthCredentialsCreate) SetNillableRefreshToken

func (socc *SlackOAuthCredentialsCreate) SetNillableRefreshToken(s *string) *SlackOAuthCredentialsCreate

SetNillableRefreshToken sets the "refresh_token" field if the given value is not nil.

func (*SlackOAuthCredentialsCreate) SetNillableUpdatedAt

func (socc *SlackOAuthCredentialsCreate) SetNillableUpdatedAt(i *int64) *SlackOAuthCredentialsCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*SlackOAuthCredentialsCreate) SetRefreshToken

SetRefreshToken sets the "refresh_token" field.

func (*SlackOAuthCredentialsCreate) SetTeamID

SetTeamID sets the "team_id" field.

func (*SlackOAuthCredentialsCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type SlackOAuthCredentialsCreateBulk

type SlackOAuthCredentialsCreateBulk struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsCreateBulk is the builder for creating many SlackOAuthCredentials entities in bulk.

func (*SlackOAuthCredentialsCreateBulk) Exec

Exec executes the query.

func (*SlackOAuthCredentialsCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*SlackOAuthCredentialsCreateBulk) Save

Save creates the SlackOAuthCredentials entities in the database.

func (*SlackOAuthCredentialsCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type SlackOAuthCredentialsDelete

type SlackOAuthCredentialsDelete struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsDelete is the builder for deleting a SlackOAuthCredentials entity.

func (*SlackOAuthCredentialsDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*SlackOAuthCredentialsDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*SlackOAuthCredentialsDelete) Where

Where appends a list predicates to the SlackOAuthCredentialsDelete builder.

type SlackOAuthCredentialsDeleteOne

type SlackOAuthCredentialsDeleteOne struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsDeleteOne is the builder for deleting a single SlackOAuthCredentials entity.

func (*SlackOAuthCredentialsDeleteOne) Exec

Exec executes the deletion query.

func (*SlackOAuthCredentialsDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*SlackOAuthCredentialsDeleteOne) Where

Where appends a list predicates to the SlackOAuthCredentialsDelete builder.

type SlackOAuthCredentialsGroupBy

type SlackOAuthCredentialsGroupBy struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsGroupBy is the group-by builder for SlackOAuthCredentials entities.

func (*SlackOAuthCredentialsGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*SlackOAuthCredentialsGroupBy) Bool

func (s *SlackOAuthCredentialsGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsGroupBy) BoolX

func (s *SlackOAuthCredentialsGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SlackOAuthCredentialsGroupBy) Bools

func (s *SlackOAuthCredentialsGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsGroupBy) BoolsX

func (s *SlackOAuthCredentialsGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SlackOAuthCredentialsGroupBy) Float64

func (s *SlackOAuthCredentialsGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsGroupBy) Float64X

func (s *SlackOAuthCredentialsGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SlackOAuthCredentialsGroupBy) Float64s

func (s *SlackOAuthCredentialsGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsGroupBy) Float64sX

func (s *SlackOAuthCredentialsGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SlackOAuthCredentialsGroupBy) Int

func (s *SlackOAuthCredentialsGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsGroupBy) IntX

func (s *SlackOAuthCredentialsGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SlackOAuthCredentialsGroupBy) Ints

func (s *SlackOAuthCredentialsGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsGroupBy) IntsX

func (s *SlackOAuthCredentialsGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SlackOAuthCredentialsGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*SlackOAuthCredentialsGroupBy) ScanX

func (s *SlackOAuthCredentialsGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*SlackOAuthCredentialsGroupBy) String

func (s *SlackOAuthCredentialsGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsGroupBy) StringX

func (s *SlackOAuthCredentialsGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SlackOAuthCredentialsGroupBy) Strings

func (s *SlackOAuthCredentialsGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsGroupBy) StringsX

func (s *SlackOAuthCredentialsGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SlackOAuthCredentialsMutation

type SlackOAuthCredentialsMutation struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsMutation represents an operation that mutates the SlackOAuthCredentials nodes in the graph.

func (*SlackOAuthCredentialsMutation) AccessToken

func (m *SlackOAuthCredentialsMutation) AccessToken() (r string, exists bool)

AccessToken returns the value of the "access_token" field in the mutation.

func (*SlackOAuthCredentialsMutation) AddCreatedAt

func (m *SlackOAuthCredentialsMutation) AddCreatedAt(i int64)

AddCreatedAt adds i to the "created_at" field.

func (*SlackOAuthCredentialsMutation) AddField

func (m *SlackOAuthCredentialsMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SlackOAuthCredentialsMutation) AddUpdatedAt

func (m *SlackOAuthCredentialsMutation) AddUpdatedAt(i int64)

AddUpdatedAt adds i to the "updated_at" field.

func (*SlackOAuthCredentialsMutation) AddedCreatedAt

func (m *SlackOAuthCredentialsMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*SlackOAuthCredentialsMutation) AddedEdges

func (m *SlackOAuthCredentialsMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*SlackOAuthCredentialsMutation) AddedField

func (m *SlackOAuthCredentialsMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SlackOAuthCredentialsMutation) AddedFields

func (m *SlackOAuthCredentialsMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*SlackOAuthCredentialsMutation) AddedIDs

func (m *SlackOAuthCredentialsMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*SlackOAuthCredentialsMutation) AddedUpdatedAt

func (m *SlackOAuthCredentialsMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*SlackOAuthCredentialsMutation) ClearEdge

func (m *SlackOAuthCredentialsMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*SlackOAuthCredentialsMutation) ClearField

func (m *SlackOAuthCredentialsMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*SlackOAuthCredentialsMutation) ClearedEdges

func (m *SlackOAuthCredentialsMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*SlackOAuthCredentialsMutation) ClearedFields

func (m *SlackOAuthCredentialsMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (SlackOAuthCredentialsMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*SlackOAuthCredentialsMutation) CreatedAt

func (m *SlackOAuthCredentialsMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*SlackOAuthCredentialsMutation) EdgeCleared

func (m *SlackOAuthCredentialsMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*SlackOAuthCredentialsMutation) Field

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SlackOAuthCredentialsMutation) FieldCleared

func (m *SlackOAuthCredentialsMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*SlackOAuthCredentialsMutation) Fields

func (m *SlackOAuthCredentialsMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*SlackOAuthCredentialsMutation) ID

func (m *SlackOAuthCredentialsMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*SlackOAuthCredentialsMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*SlackOAuthCredentialsMutation) OldAccessToken

func (m *SlackOAuthCredentialsMutation) OldAccessToken(ctx context.Context) (v string, err error)

OldAccessToken returns the old "access_token" field's value of the SlackOAuthCredentials entity. If the SlackOAuthCredentials object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SlackOAuthCredentialsMutation) OldCreatedAt

func (m *SlackOAuthCredentialsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)

OldCreatedAt returns the old "created_at" field's value of the SlackOAuthCredentials entity. If the SlackOAuthCredentials object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SlackOAuthCredentialsMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*SlackOAuthCredentialsMutation) OldRefreshToken

func (m *SlackOAuthCredentialsMutation) OldRefreshToken(ctx context.Context) (v string, err error)

OldRefreshToken returns the old "refresh_token" field's value of the SlackOAuthCredentials entity. If the SlackOAuthCredentials object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SlackOAuthCredentialsMutation) OldTeamID

func (m *SlackOAuthCredentialsMutation) OldTeamID(ctx context.Context) (v string, err error)

OldTeamID returns the old "team_id" field's value of the SlackOAuthCredentials entity. If the SlackOAuthCredentials object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SlackOAuthCredentialsMutation) OldUpdatedAt

func (m *SlackOAuthCredentialsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)

OldUpdatedAt returns the old "updated_at" field's value of the SlackOAuthCredentials entity. If the SlackOAuthCredentials object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SlackOAuthCredentialsMutation) Op

Op returns the operation name.

func (*SlackOAuthCredentialsMutation) RefreshToken

func (m *SlackOAuthCredentialsMutation) RefreshToken() (r string, exists bool)

RefreshToken returns the value of the "refresh_token" field in the mutation.

func (*SlackOAuthCredentialsMutation) RemovedEdges

func (m *SlackOAuthCredentialsMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*SlackOAuthCredentialsMutation) RemovedIDs

func (m *SlackOAuthCredentialsMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*SlackOAuthCredentialsMutation) ResetAccessToken

func (m *SlackOAuthCredentialsMutation) ResetAccessToken()

ResetAccessToken resets all changes to the "access_token" field.

func (*SlackOAuthCredentialsMutation) ResetCreatedAt

func (m *SlackOAuthCredentialsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*SlackOAuthCredentialsMutation) ResetEdge

func (m *SlackOAuthCredentialsMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*SlackOAuthCredentialsMutation) ResetField

func (m *SlackOAuthCredentialsMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*SlackOAuthCredentialsMutation) ResetRefreshToken

func (m *SlackOAuthCredentialsMutation) ResetRefreshToken()

ResetRefreshToken resets all changes to the "refresh_token" field.

func (*SlackOAuthCredentialsMutation) ResetTeamID

func (m *SlackOAuthCredentialsMutation) ResetTeamID()

ResetTeamID resets all changes to the "team_id" field.

func (*SlackOAuthCredentialsMutation) ResetUpdatedAt

func (m *SlackOAuthCredentialsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*SlackOAuthCredentialsMutation) SetAccessToken

func (m *SlackOAuthCredentialsMutation) SetAccessToken(s string)

SetAccessToken sets the "access_token" field.

func (*SlackOAuthCredentialsMutation) SetCreatedAt

func (m *SlackOAuthCredentialsMutation) SetCreatedAt(i int64)

SetCreatedAt sets the "created_at" field.

func (*SlackOAuthCredentialsMutation) SetField

func (m *SlackOAuthCredentialsMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SlackOAuthCredentialsMutation) SetID

SetID sets the value of the id field. Note that this operation is only accepted on creation of SlackOAuthCredentials entities.

func (*SlackOAuthCredentialsMutation) SetOp

func (m *SlackOAuthCredentialsMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*SlackOAuthCredentialsMutation) SetRefreshToken

func (m *SlackOAuthCredentialsMutation) SetRefreshToken(s string)

SetRefreshToken sets the "refresh_token" field.

func (*SlackOAuthCredentialsMutation) SetTeamID

func (m *SlackOAuthCredentialsMutation) SetTeamID(s string)

SetTeamID sets the "team_id" field.

func (*SlackOAuthCredentialsMutation) SetUpdatedAt

func (m *SlackOAuthCredentialsMutation) SetUpdatedAt(i int64)

SetUpdatedAt sets the "updated_at" field.

func (*SlackOAuthCredentialsMutation) TeamID

func (m *SlackOAuthCredentialsMutation) TeamID() (r string, exists bool)

TeamID returns the value of the "team_id" field in the mutation.

func (SlackOAuthCredentialsMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*SlackOAuthCredentialsMutation) Type

Type returns the node type of this mutation (SlackOAuthCredentials).

func (*SlackOAuthCredentialsMutation) UpdatedAt

func (m *SlackOAuthCredentialsMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*SlackOAuthCredentialsMutation) Where

Where appends a list predicates to the SlackOAuthCredentialsMutation builder.

func (*SlackOAuthCredentialsMutation) WhereP

func (m *SlackOAuthCredentialsMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the SlackOAuthCredentialsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type SlackOAuthCredentialsQuery

type SlackOAuthCredentialsQuery struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsQuery is the builder for querying SlackOAuthCredentials entities.

func (*SlackOAuthCredentialsQuery) Aggregate

Aggregate returns a SlackOAuthCredentialsSelect configured with the given aggregations.

func (*SlackOAuthCredentialsQuery) All

All executes the query and returns a list of SlackOAuthCredentialsSlice.

func (*SlackOAuthCredentialsQuery) AllX

AllX is like All, but panics if an error occurs.

func (*SlackOAuthCredentialsQuery) Clone

Clone returns a duplicate of the SlackOAuthCredentialsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*SlackOAuthCredentialsQuery) Count

func (socq *SlackOAuthCredentialsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*SlackOAuthCredentialsQuery) CountX

func (socq *SlackOAuthCredentialsQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*SlackOAuthCredentialsQuery) Exist

func (socq *SlackOAuthCredentialsQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*SlackOAuthCredentialsQuery) ExistX

func (socq *SlackOAuthCredentialsQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*SlackOAuthCredentialsQuery) First

First returns the first SlackOAuthCredentials entity from the query. Returns a *NotFoundError when no SlackOAuthCredentials was found.

func (*SlackOAuthCredentialsQuery) FirstID

func (socq *SlackOAuthCredentialsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first SlackOAuthCredentials ID from the query. Returns a *NotFoundError when no SlackOAuthCredentials ID was found.

func (*SlackOAuthCredentialsQuery) FirstIDX

func (socq *SlackOAuthCredentialsQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*SlackOAuthCredentialsQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*SlackOAuthCredentialsQuery) GroupBy

func (socq *SlackOAuthCredentialsQuery) GroupBy(field string, fields ...string) *SlackOAuthCredentialsGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	TeamID string `json:"team_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.SlackOAuthCredentials.Query().
	GroupBy(slackoauthcredentials.FieldTeamID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*SlackOAuthCredentialsQuery) IDs

func (socq *SlackOAuthCredentialsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of SlackOAuthCredentials IDs.

func (*SlackOAuthCredentialsQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*SlackOAuthCredentialsQuery) Limit

Limit the number of records to be returned by this query.

func (*SlackOAuthCredentialsQuery) Offset

Offset to start from.

func (*SlackOAuthCredentialsQuery) Only

Only returns a single SlackOAuthCredentials entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one SlackOAuthCredentials entity is found. Returns a *NotFoundError when no SlackOAuthCredentials entities are found.

func (*SlackOAuthCredentialsQuery) OnlyID

func (socq *SlackOAuthCredentialsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only SlackOAuthCredentials ID in the query. Returns a *NotSingularError when more than one SlackOAuthCredentials ID is found. Returns a *NotFoundError when no entities are found.

func (*SlackOAuthCredentialsQuery) OnlyIDX

func (socq *SlackOAuthCredentialsQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*SlackOAuthCredentialsQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*SlackOAuthCredentialsQuery) Order

Order specifies how the records should be ordered.

func (*SlackOAuthCredentialsQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	TeamID string `json:"team_id,omitempty"`
}

client.SlackOAuthCredentials.Query().
	Select(slackoauthcredentials.FieldTeamID).
	Scan(ctx, &v)

func (*SlackOAuthCredentialsQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*SlackOAuthCredentialsQuery) Where

Where adds a new predicate for the SlackOAuthCredentialsQuery builder.

type SlackOAuthCredentialsSelect

type SlackOAuthCredentialsSelect struct {
	*SlackOAuthCredentialsQuery
	// contains filtered or unexported fields
}

SlackOAuthCredentialsSelect is the builder for selecting fields of SlackOAuthCredentials entities.

func (*SlackOAuthCredentialsSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*SlackOAuthCredentialsSelect) Bool

func (s *SlackOAuthCredentialsSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsSelect) BoolX

func (s *SlackOAuthCredentialsSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SlackOAuthCredentialsSelect) Bools

func (s *SlackOAuthCredentialsSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsSelect) BoolsX

func (s *SlackOAuthCredentialsSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SlackOAuthCredentialsSelect) Float64

func (s *SlackOAuthCredentialsSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsSelect) Float64X

func (s *SlackOAuthCredentialsSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SlackOAuthCredentialsSelect) Float64s

func (s *SlackOAuthCredentialsSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsSelect) Float64sX

func (s *SlackOAuthCredentialsSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SlackOAuthCredentialsSelect) Int

func (s *SlackOAuthCredentialsSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsSelect) IntX

func (s *SlackOAuthCredentialsSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SlackOAuthCredentialsSelect) Ints

func (s *SlackOAuthCredentialsSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsSelect) IntsX

func (s *SlackOAuthCredentialsSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SlackOAuthCredentialsSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*SlackOAuthCredentialsSelect) ScanX

func (s *SlackOAuthCredentialsSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*SlackOAuthCredentialsSelect) String

func (s *SlackOAuthCredentialsSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsSelect) StringX

func (s *SlackOAuthCredentialsSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SlackOAuthCredentialsSelect) Strings

func (s *SlackOAuthCredentialsSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SlackOAuthCredentialsSelect) StringsX

func (s *SlackOAuthCredentialsSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SlackOAuthCredentialsSlice

type SlackOAuthCredentialsSlice []*SlackOAuthCredentials

SlackOAuthCredentialsSlice is a parsable slice of SlackOAuthCredentials.

type SlackOAuthCredentialsUpdate

type SlackOAuthCredentialsUpdate struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsUpdate is the builder for updating SlackOAuthCredentials entities.

func (*SlackOAuthCredentialsUpdate) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*SlackOAuthCredentialsUpdate) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*SlackOAuthCredentialsUpdate) Exec

Exec executes the query.

func (*SlackOAuthCredentialsUpdate) ExecX

func (socu *SlackOAuthCredentialsUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SlackOAuthCredentialsUpdate) Mutation

Mutation returns the SlackOAuthCredentialsMutation object of the builder.

func (*SlackOAuthCredentialsUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*SlackOAuthCredentialsUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*SlackOAuthCredentialsUpdate) SetAccessToken

SetAccessToken sets the "access_token" field.

func (*SlackOAuthCredentialsUpdate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*SlackOAuthCredentialsUpdate) SetNillableAccessToken added in v0.23.0

func (socu *SlackOAuthCredentialsUpdate) SetNillableAccessToken(s *string) *SlackOAuthCredentialsUpdate

SetNillableAccessToken sets the "access_token" field if the given value is not nil.

func (*SlackOAuthCredentialsUpdate) SetNillableCreatedAt

func (socu *SlackOAuthCredentialsUpdate) SetNillableCreatedAt(i *int64) *SlackOAuthCredentialsUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*SlackOAuthCredentialsUpdate) SetNillableRefreshToken

func (socu *SlackOAuthCredentialsUpdate) SetNillableRefreshToken(s *string) *SlackOAuthCredentialsUpdate

SetNillableRefreshToken sets the "refresh_token" field if the given value is not nil.

func (*SlackOAuthCredentialsUpdate) SetNillableUpdatedAt

func (socu *SlackOAuthCredentialsUpdate) SetNillableUpdatedAt(i *int64) *SlackOAuthCredentialsUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*SlackOAuthCredentialsUpdate) SetRefreshToken

SetRefreshToken sets the "refresh_token" field.

func (*SlackOAuthCredentialsUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*SlackOAuthCredentialsUpdate) Where

Where appends a list predicates to the SlackOAuthCredentialsUpdate builder.

type SlackOAuthCredentialsUpdateOne

type SlackOAuthCredentialsUpdateOne struct {
	// contains filtered or unexported fields
}

SlackOAuthCredentialsUpdateOne is the builder for updating a single SlackOAuthCredentials entity.

func (*SlackOAuthCredentialsUpdateOne) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*SlackOAuthCredentialsUpdateOne) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*SlackOAuthCredentialsUpdateOne) Exec

Exec executes the query on the entity.

func (*SlackOAuthCredentialsUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*SlackOAuthCredentialsUpdateOne) Mutation

Mutation returns the SlackOAuthCredentialsMutation object of the builder.

func (*SlackOAuthCredentialsUpdateOne) Save

Save executes the query and returns the updated SlackOAuthCredentials entity.

func (*SlackOAuthCredentialsUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*SlackOAuthCredentialsUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*SlackOAuthCredentialsUpdateOne) SetAccessToken

SetAccessToken sets the "access_token" field.

func (*SlackOAuthCredentialsUpdateOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*SlackOAuthCredentialsUpdateOne) SetNillableAccessToken added in v0.23.0

func (socuo *SlackOAuthCredentialsUpdateOne) SetNillableAccessToken(s *string) *SlackOAuthCredentialsUpdateOne

SetNillableAccessToken sets the "access_token" field if the given value is not nil.

func (*SlackOAuthCredentialsUpdateOne) SetNillableCreatedAt

func (socuo *SlackOAuthCredentialsUpdateOne) SetNillableCreatedAt(i *int64) *SlackOAuthCredentialsUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*SlackOAuthCredentialsUpdateOne) SetNillableRefreshToken

func (socuo *SlackOAuthCredentialsUpdateOne) SetNillableRefreshToken(s *string) *SlackOAuthCredentialsUpdateOne

SetNillableRefreshToken sets the "refresh_token" field if the given value is not nil.

func (*SlackOAuthCredentialsUpdateOne) SetNillableUpdatedAt

func (socuo *SlackOAuthCredentialsUpdateOne) SetNillableUpdatedAt(i *int64) *SlackOAuthCredentialsUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*SlackOAuthCredentialsUpdateOne) SetRefreshToken

SetRefreshToken sets the "refresh_token" field.

func (*SlackOAuthCredentialsUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*SlackOAuthCredentialsUpdateOne) Where

Where appends a list predicates to the SlackOAuthCredentialsUpdate builder.

type TelegramChatAutoRecapsSubscribers added in v0.14.0

type TelegramChatAutoRecapsSubscribers struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// ChatID holds the value of the "chat_id" field.
	ChatID int64 `json:"chat_id,omitempty"`
	// UserID holds the value of the "user_id" field.
	UserID int64 `json:"user_id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribers is the model entity for the TelegramChatAutoRecapsSubscribers schema.

func (*TelegramChatAutoRecapsSubscribers) String added in v0.14.0

func (tcars *TelegramChatAutoRecapsSubscribers) String() string

String implements the fmt.Stringer.

func (*TelegramChatAutoRecapsSubscribers) Unwrap added in v0.14.0

Unwrap unwraps the TelegramChatAutoRecapsSubscribers entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*TelegramChatAutoRecapsSubscribers) Update added in v0.14.0

Update returns a builder for updating this TelegramChatAutoRecapsSubscribers. Note that you need to call TelegramChatAutoRecapsSubscribers.Unwrap() before calling this method if this TelegramChatAutoRecapsSubscribers was returned from a transaction, and the transaction was committed or rolled back.

func (*TelegramChatAutoRecapsSubscribers) Value added in v0.14.0

func (tcars *TelegramChatAutoRecapsSubscribers) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the TelegramChatAutoRecapsSubscribers. This includes values selected through modifiers, order, etc.

type TelegramChatAutoRecapsSubscribersClient added in v0.14.0

type TelegramChatAutoRecapsSubscribersClient struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersClient is a client for the TelegramChatAutoRecapsSubscribers schema.

func NewTelegramChatAutoRecapsSubscribersClient added in v0.14.0

func NewTelegramChatAutoRecapsSubscribersClient(c config) *TelegramChatAutoRecapsSubscribersClient

NewTelegramChatAutoRecapsSubscribersClient returns a client for the TelegramChatAutoRecapsSubscribers from the given config.

func (*TelegramChatAutoRecapsSubscribersClient) Create added in v0.14.0

Create returns a builder for creating a TelegramChatAutoRecapsSubscribers entity.

func (*TelegramChatAutoRecapsSubscribersClient) CreateBulk added in v0.14.0

CreateBulk returns a builder for creating a bulk of TelegramChatAutoRecapsSubscribers entities.

func (*TelegramChatAutoRecapsSubscribersClient) Delete added in v0.14.0

Delete returns a delete builder for TelegramChatAutoRecapsSubscribers.

func (*TelegramChatAutoRecapsSubscribersClient) DeleteOne added in v0.14.0

DeleteOne returns a builder for deleting the given entity.

func (*TelegramChatAutoRecapsSubscribersClient) DeleteOneID added in v0.14.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*TelegramChatAutoRecapsSubscribersClient) Get added in v0.14.0

Get returns a TelegramChatAutoRecapsSubscribers entity by its id.

func (*TelegramChatAutoRecapsSubscribersClient) GetX added in v0.14.0

GetX is like Get, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersClient) Hooks added in v0.14.0

Hooks returns the client hooks.

func (*TelegramChatAutoRecapsSubscribersClient) Intercept added in v0.14.0

func (c *TelegramChatAutoRecapsSubscribersClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `telegramchatautorecapssubscribers.Intercept(f(g(h())))`.

func (*TelegramChatAutoRecapsSubscribersClient) Interceptors added in v0.14.0

Interceptors returns the client interceptors.

func (*TelegramChatAutoRecapsSubscribersClient) MapCreateBulk added in v0.22.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*TelegramChatAutoRecapsSubscribersClient) Query added in v0.14.0

Query returns a query builder for TelegramChatAutoRecapsSubscribers.

func (*TelegramChatAutoRecapsSubscribersClient) Update added in v0.14.0

Update returns an update builder for TelegramChatAutoRecapsSubscribers.

func (*TelegramChatAutoRecapsSubscribersClient) UpdateOne added in v0.14.0

UpdateOne returns an update builder for the given entity.

func (*TelegramChatAutoRecapsSubscribersClient) UpdateOneID added in v0.14.0

UpdateOneID returns an update builder for the given id.

func (*TelegramChatAutoRecapsSubscribersClient) Use added in v0.14.0

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `telegramchatautorecapssubscribers.Hooks(f(g(h())))`.

type TelegramChatAutoRecapsSubscribersCreate added in v0.14.0

type TelegramChatAutoRecapsSubscribersCreate struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersCreate is the builder for creating a TelegramChatAutoRecapsSubscribers entity.

func (*TelegramChatAutoRecapsSubscribersCreate) Exec added in v0.14.0

Exec executes the query.

func (*TelegramChatAutoRecapsSubscribersCreate) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersCreate) Mutation added in v0.14.0

Mutation returns the TelegramChatAutoRecapsSubscribersMutation object of the builder.

func (*TelegramChatAutoRecapsSubscribersCreate) Save added in v0.14.0

Save creates the TelegramChatAutoRecapsSubscribers in the database.

func (*TelegramChatAutoRecapsSubscribersCreate) SaveX added in v0.14.0

SaveX calls Save and panics if Save returns an error.

func (*TelegramChatAutoRecapsSubscribersCreate) SetChatID added in v0.14.0

SetChatID sets the "chat_id" field.

func (*TelegramChatAutoRecapsSubscribersCreate) SetCreatedAt added in v0.14.0

SetCreatedAt sets the "created_at" field.

func (*TelegramChatAutoRecapsSubscribersCreate) SetID added in v0.14.0

SetID sets the "id" field.

func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableChatID added in v0.14.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableCreatedAt added in v0.14.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableID added in v0.14.0

SetNillableID sets the "id" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableUpdatedAt added in v0.14.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableUserID added in v0.14.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersCreate) SetUpdatedAt added in v0.14.0

SetUpdatedAt sets the "updated_at" field.

func (*TelegramChatAutoRecapsSubscribersCreate) SetUserID added in v0.14.0

SetUserID sets the "user_id" field.

type TelegramChatAutoRecapsSubscribersCreateBulk added in v0.14.0

type TelegramChatAutoRecapsSubscribersCreateBulk struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersCreateBulk is the builder for creating many TelegramChatAutoRecapsSubscribers entities in bulk.

func (*TelegramChatAutoRecapsSubscribersCreateBulk) Exec added in v0.14.0

Exec executes the query.

func (*TelegramChatAutoRecapsSubscribersCreateBulk) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersCreateBulk) Save added in v0.14.0

Save creates the TelegramChatAutoRecapsSubscribers entities in the database.

func (*TelegramChatAutoRecapsSubscribersCreateBulk) SaveX added in v0.14.0

SaveX is like Save, but panics if an error occurs.

type TelegramChatAutoRecapsSubscribersDelete added in v0.14.0

type TelegramChatAutoRecapsSubscribersDelete struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersDelete is the builder for deleting a TelegramChatAutoRecapsSubscribers entity.

func (*TelegramChatAutoRecapsSubscribersDelete) Exec added in v0.14.0

Exec executes the deletion query and returns how many vertices were deleted.

func (*TelegramChatAutoRecapsSubscribersDelete) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersDelete) Where added in v0.14.0

Where appends a list predicates to the TelegramChatAutoRecapsSubscribersDelete builder.

type TelegramChatAutoRecapsSubscribersDeleteOne added in v0.14.0

type TelegramChatAutoRecapsSubscribersDeleteOne struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersDeleteOne is the builder for deleting a single TelegramChatAutoRecapsSubscribers entity.

func (*TelegramChatAutoRecapsSubscribersDeleteOne) Exec added in v0.14.0

Exec executes the deletion query.

func (*TelegramChatAutoRecapsSubscribersDeleteOne) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersDeleteOne) Where added in v0.14.0

Where appends a list predicates to the TelegramChatAutoRecapsSubscribersDelete builder.

type TelegramChatAutoRecapsSubscribersGroupBy added in v0.14.0

type TelegramChatAutoRecapsSubscribersGroupBy struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersGroupBy is the group-by builder for TelegramChatAutoRecapsSubscribers entities.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Aggregate added in v0.14.0

Aggregate adds the given aggregation functions to the group-by query.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Bool added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersGroupBy) BoolX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Bools added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersGroupBy) BoolsX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Float64 added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Float64X added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Float64s added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Float64sX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Int added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersGroupBy) IntX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Ints added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersGroupBy) IntsX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Scan added in v0.14.0

Scan applies the selector query and scans the result into the given value.

func (*TelegramChatAutoRecapsSubscribersGroupBy) ScanX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersGroupBy) String added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersGroupBy) StringX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersGroupBy) Strings added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersGroupBy) StringsX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TelegramChatAutoRecapsSubscribersMutation added in v0.14.0

type TelegramChatAutoRecapsSubscribersMutation struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersMutation represents an operation that mutates the TelegramChatAutoRecapsSubscribers nodes in the graph.

func (*TelegramChatAutoRecapsSubscribersMutation) AddChatID added in v0.14.0

AddChatID adds i to the "chat_id" field.

func (*TelegramChatAutoRecapsSubscribersMutation) AddCreatedAt added in v0.14.0

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatAutoRecapsSubscribersMutation) AddField added in v0.14.0

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TelegramChatAutoRecapsSubscribersMutation) AddUpdatedAt added in v0.14.0

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatAutoRecapsSubscribersMutation) AddUserID added in v0.14.0

AddUserID adds i to the "user_id" field.

func (*TelegramChatAutoRecapsSubscribersMutation) AddedChatID added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) AddedChatID() (r int64, exists bool)

AddedChatID returns the value that was added to the "chat_id" field in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) AddedCreatedAt added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) AddedEdges added in v0.14.0

AddedEdges returns all edge names that were set/added in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) AddedField added in v0.14.0

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TelegramChatAutoRecapsSubscribersMutation) AddedFields added in v0.14.0

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) AddedIDs added in v0.14.0

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) AddedUpdatedAt added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) AddedUserID added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) AddedUserID() (r int64, exists bool)

AddedUserID returns the value that was added to the "user_id" field in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) ChatID added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) ChatID() (r int64, exists bool)

ChatID returns the value of the "chat_id" field in the mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) ClearEdge added in v0.14.0

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*TelegramChatAutoRecapsSubscribersMutation) ClearField added in v0.14.0

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*TelegramChatAutoRecapsSubscribersMutation) ClearedEdges added in v0.14.0

ClearedEdges returns all edge names that were cleared in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) ClearedFields added in v0.14.0

ClearedFields returns all nullable fields that were cleared during this mutation.

func (TelegramChatAutoRecapsSubscribersMutation) Client added in v0.14.0

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*TelegramChatAutoRecapsSubscribersMutation) CreatedAt added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) EdgeCleared added in v0.14.0

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) Field added in v0.14.0

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TelegramChatAutoRecapsSubscribersMutation) FieldCleared added in v0.14.0

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) Fields added in v0.14.0

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*TelegramChatAutoRecapsSubscribersMutation) ID added in v0.14.0

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*TelegramChatAutoRecapsSubscribersMutation) IDs added in v0.14.0

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) OldChatID added in v0.14.0

OldChatID returns the old "chat_id" field's value of the TelegramChatAutoRecapsSubscribers entity. If the TelegramChatAutoRecapsSubscribers object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatAutoRecapsSubscribersMutation) OldCreatedAt added in v0.14.0

OldCreatedAt returns the old "created_at" field's value of the TelegramChatAutoRecapsSubscribers entity. If the TelegramChatAutoRecapsSubscribers object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatAutoRecapsSubscribersMutation) OldField added in v0.14.0

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*TelegramChatAutoRecapsSubscribersMutation) OldUpdatedAt added in v0.14.0

OldUpdatedAt returns the old "updated_at" field's value of the TelegramChatAutoRecapsSubscribers entity. If the TelegramChatAutoRecapsSubscribers object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatAutoRecapsSubscribersMutation) OldUserID added in v0.14.0

OldUserID returns the old "user_id" field's value of the TelegramChatAutoRecapsSubscribers entity. If the TelegramChatAutoRecapsSubscribers object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatAutoRecapsSubscribersMutation) Op added in v0.14.0

Op returns the operation name.

func (*TelegramChatAutoRecapsSubscribersMutation) RemovedEdges added in v0.14.0

RemovedEdges returns all edge names that were removed in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) RemovedIDs added in v0.14.0

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) ResetChatID added in v0.14.0

ResetChatID resets all changes to the "chat_id" field.

func (*TelegramChatAutoRecapsSubscribersMutation) ResetCreatedAt added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*TelegramChatAutoRecapsSubscribersMutation) ResetEdge added in v0.14.0

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*TelegramChatAutoRecapsSubscribersMutation) ResetField added in v0.14.0

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*TelegramChatAutoRecapsSubscribersMutation) ResetUpdatedAt added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*TelegramChatAutoRecapsSubscribersMutation) ResetUserID added in v0.14.0

ResetUserID resets all changes to the "user_id" field.

func (*TelegramChatAutoRecapsSubscribersMutation) SetChatID added in v0.14.0

SetChatID sets the "chat_id" field.

func (*TelegramChatAutoRecapsSubscribersMutation) SetCreatedAt added in v0.14.0

SetCreatedAt sets the "created_at" field.

func (*TelegramChatAutoRecapsSubscribersMutation) SetField added in v0.14.0

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TelegramChatAutoRecapsSubscribersMutation) SetID added in v0.14.0

SetID sets the value of the id field. Note that this operation is only accepted on creation of TelegramChatAutoRecapsSubscribers entities.

func (*TelegramChatAutoRecapsSubscribersMutation) SetOp added in v0.14.0

SetOp allows setting the mutation operation.

func (*TelegramChatAutoRecapsSubscribersMutation) SetUpdatedAt added in v0.14.0

SetUpdatedAt sets the "updated_at" field.

func (*TelegramChatAutoRecapsSubscribersMutation) SetUserID added in v0.14.0

SetUserID sets the "user_id" field.

func (TelegramChatAutoRecapsSubscribersMutation) Tx added in v0.14.0

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*TelegramChatAutoRecapsSubscribersMutation) Type added in v0.14.0

Type returns the node type of this mutation (TelegramChatAutoRecapsSubscribers).

func (*TelegramChatAutoRecapsSubscribersMutation) UpdatedAt added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) UserID added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) UserID() (r int64, exists bool)

UserID returns the value of the "user_id" field in the mutation.

func (*TelegramChatAutoRecapsSubscribersMutation) Where added in v0.14.0

Where appends a list predicates to the TelegramChatAutoRecapsSubscribersMutation builder.

func (*TelegramChatAutoRecapsSubscribersMutation) WhereP added in v0.14.0

func (m *TelegramChatAutoRecapsSubscribersMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the TelegramChatAutoRecapsSubscribersMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type TelegramChatAutoRecapsSubscribersQuery added in v0.14.0

type TelegramChatAutoRecapsSubscribersQuery struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersQuery is the builder for querying TelegramChatAutoRecapsSubscribers entities.

func (*TelegramChatAutoRecapsSubscribersQuery) Aggregate added in v0.14.0

Aggregate returns a TelegramChatAutoRecapsSubscribersSelect configured with the given aggregations.

func (*TelegramChatAutoRecapsSubscribersQuery) All added in v0.14.0

All executes the query and returns a list of TelegramChatAutoRecapsSubscribersSlice.

func (*TelegramChatAutoRecapsSubscribersQuery) AllX added in v0.14.0

AllX is like All, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersQuery) Clone added in v0.14.0

Clone returns a duplicate of the TelegramChatAutoRecapsSubscribersQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*TelegramChatAutoRecapsSubscribersQuery) Count added in v0.14.0

Count returns the count of the given query.

func (*TelegramChatAutoRecapsSubscribersQuery) CountX added in v0.14.0

CountX is like Count, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersQuery) Exist added in v0.14.0

Exist returns true if the query has elements in the graph.

func (*TelegramChatAutoRecapsSubscribersQuery) ExistX added in v0.14.0

ExistX is like Exist, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersQuery) First added in v0.14.0

First returns the first TelegramChatAutoRecapsSubscribers entity from the query. Returns a *NotFoundError when no TelegramChatAutoRecapsSubscribers was found.

func (*TelegramChatAutoRecapsSubscribersQuery) FirstID added in v0.14.0

func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first TelegramChatAutoRecapsSubscribers ID from the query. Returns a *NotFoundError when no TelegramChatAutoRecapsSubscribers ID was found.

func (*TelegramChatAutoRecapsSubscribersQuery) FirstIDX added in v0.14.0

FirstIDX is like FirstID, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersQuery) FirstX added in v0.14.0

FirstX is like First, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersQuery) GroupBy added in v0.14.0

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.TelegramChatAutoRecapsSubscribers.Query().
	GroupBy(telegramchatautorecapssubscribers.FieldChatID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*TelegramChatAutoRecapsSubscribersQuery) IDs added in v0.14.0

func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of TelegramChatAutoRecapsSubscribers IDs.

func (*TelegramChatAutoRecapsSubscribersQuery) IDsX added in v0.14.0

IDsX is like IDs, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersQuery) Limit added in v0.14.0

Limit the number of records to be returned by this query.

func (*TelegramChatAutoRecapsSubscribersQuery) Offset added in v0.14.0

Offset to start from.

func (*TelegramChatAutoRecapsSubscribersQuery) Only added in v0.14.0

Only returns a single TelegramChatAutoRecapsSubscribers entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one TelegramChatAutoRecapsSubscribers entity is found. Returns a *NotFoundError when no TelegramChatAutoRecapsSubscribers entities are found.

func (*TelegramChatAutoRecapsSubscribersQuery) OnlyID added in v0.14.0

func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only TelegramChatAutoRecapsSubscribers ID in the query. Returns a *NotSingularError when more than one TelegramChatAutoRecapsSubscribers ID is found. Returns a *NotFoundError when no entities are found.

func (*TelegramChatAutoRecapsSubscribersQuery) OnlyIDX added in v0.14.0

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersQuery) OnlyX added in v0.14.0

OnlyX is like Only, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersQuery) Order added in v0.14.0

Order specifies how the records should be ordered.

func (*TelegramChatAutoRecapsSubscribersQuery) Select added in v0.14.0

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
}

client.TelegramChatAutoRecapsSubscribers.Query().
	Select(telegramchatautorecapssubscribers.FieldChatID).
	Scan(ctx, &v)

func (*TelegramChatAutoRecapsSubscribersQuery) Unique added in v0.14.0

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*TelegramChatAutoRecapsSubscribersQuery) Where added in v0.14.0

Where adds a new predicate for the TelegramChatAutoRecapsSubscribersQuery builder.

type TelegramChatAutoRecapsSubscribersSelect added in v0.14.0

type TelegramChatAutoRecapsSubscribersSelect struct {
	*TelegramChatAutoRecapsSubscribersQuery
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersSelect is the builder for selecting fields of TelegramChatAutoRecapsSubscribers entities.

func (*TelegramChatAutoRecapsSubscribersSelect) Aggregate added in v0.14.0

Aggregate adds the given aggregation functions to the selector query.

func (*TelegramChatAutoRecapsSubscribersSelect) Bool added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersSelect) BoolX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersSelect) Bools added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersSelect) BoolsX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersSelect) Float64 added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersSelect) Float64X added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersSelect) Float64s added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersSelect) Float64sX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersSelect) Int added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersSelect) IntX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersSelect) Ints added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersSelect) IntsX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersSelect) Scan added in v0.14.0

Scan applies the selector query and scans the result into the given value.

func (*TelegramChatAutoRecapsSubscribersSelect) ScanX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersSelect) String added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersSelect) StringX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersSelect) Strings added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TelegramChatAutoRecapsSubscribersSelect) StringsX added in v0.14.0

func (s *TelegramChatAutoRecapsSubscribersSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TelegramChatAutoRecapsSubscribersSlice added in v0.14.0

type TelegramChatAutoRecapsSubscribersSlice []*TelegramChatAutoRecapsSubscribers

TelegramChatAutoRecapsSubscribersSlice is a parsable slice of TelegramChatAutoRecapsSubscribers.

type TelegramChatAutoRecapsSubscribersUpdate added in v0.14.0

type TelegramChatAutoRecapsSubscribersUpdate struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersUpdate is the builder for updating TelegramChatAutoRecapsSubscribers entities.

func (*TelegramChatAutoRecapsSubscribersUpdate) AddChatID added in v0.14.0

AddChatID adds i to the "chat_id" field.

func (*TelegramChatAutoRecapsSubscribersUpdate) AddCreatedAt added in v0.14.0

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatAutoRecapsSubscribersUpdate) AddUpdatedAt added in v0.14.0

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatAutoRecapsSubscribersUpdate) AddUserID added in v0.14.0

AddUserID adds i to the "user_id" field.

func (*TelegramChatAutoRecapsSubscribersUpdate) Exec added in v0.14.0

Exec executes the query.

func (*TelegramChatAutoRecapsSubscribersUpdate) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersUpdate) Mutation added in v0.14.0

Mutation returns the TelegramChatAutoRecapsSubscribersMutation object of the builder.

func (*TelegramChatAutoRecapsSubscribersUpdate) Save added in v0.14.0

Save executes the query and returns the number of nodes affected by the update operation.

func (*TelegramChatAutoRecapsSubscribersUpdate) SaveX added in v0.14.0

SaveX is like Save, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersUpdate) SetChatID added in v0.14.0

SetChatID sets the "chat_id" field.

func (*TelegramChatAutoRecapsSubscribersUpdate) SetCreatedAt added in v0.14.0

SetCreatedAt sets the "created_at" field.

func (*TelegramChatAutoRecapsSubscribersUpdate) SetNillableChatID added in v0.14.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersUpdate) SetNillableCreatedAt added in v0.14.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersUpdate) SetNillableUpdatedAt added in v0.14.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersUpdate) SetNillableUserID added in v0.14.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersUpdate) SetUpdatedAt added in v0.14.0

SetUpdatedAt sets the "updated_at" field.

func (*TelegramChatAutoRecapsSubscribersUpdate) SetUserID added in v0.14.0

SetUserID sets the "user_id" field.

func (*TelegramChatAutoRecapsSubscribersUpdate) Where added in v0.14.0

Where appends a list predicates to the TelegramChatAutoRecapsSubscribersUpdate builder.

type TelegramChatAutoRecapsSubscribersUpdateOne added in v0.14.0

type TelegramChatAutoRecapsSubscribersUpdateOne struct {
	// contains filtered or unexported fields
}

TelegramChatAutoRecapsSubscribersUpdateOne is the builder for updating a single TelegramChatAutoRecapsSubscribers entity.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) AddChatID added in v0.14.0

AddChatID adds i to the "chat_id" field.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) AddCreatedAt added in v0.14.0

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) AddUpdatedAt added in v0.14.0

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) AddUserID added in v0.14.0

AddUserID adds i to the "user_id" field.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) Exec added in v0.14.0

Exec executes the query on the entity.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) Mutation added in v0.14.0

Mutation returns the TelegramChatAutoRecapsSubscribersMutation object of the builder.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) Save added in v0.14.0

Save executes the query and returns the updated TelegramChatAutoRecapsSubscribers entity.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SaveX added in v0.14.0

SaveX is like Save, but panics if an error occurs.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) Select added in v0.14.0

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetChatID added in v0.14.0

SetChatID sets the "chat_id" field.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetCreatedAt added in v0.14.0

SetCreatedAt sets the "created_at" field.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableChatID added in v0.14.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableCreatedAt added in v0.14.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableUpdatedAt added in v0.14.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableUserID added in v0.14.0

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetUpdatedAt added in v0.14.0

SetUpdatedAt sets the "updated_at" field.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetUserID added in v0.14.0

SetUserID sets the "user_id" field.

func (*TelegramChatAutoRecapsSubscribersUpdateOne) Where added in v0.14.0

Where appends a list predicates to the TelegramChatAutoRecapsSubscribersUpdate builder.

type TelegramChatFeatureFlags

type TelegramChatFeatureFlags struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// ChatID holds the value of the "chat_id" field.
	ChatID int64 `json:"chat_id,omitempty"`
	// ChatType holds the value of the "chat_type" field.
	ChatType string `json:"chat_type,omitempty"`
	// ChatTitle holds the value of the "chat_title" field.
	ChatTitle string `json:"chat_title,omitempty"`
	// FeatureChatHistoriesRecap holds the value of the "feature_chat_histories_recap" field.
	FeatureChatHistoriesRecap bool `json:"feature_chat_histories_recap,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

TelegramChatFeatureFlags is the model entity for the TelegramChatFeatureFlags schema.

func (*TelegramChatFeatureFlags) String

func (tcff *TelegramChatFeatureFlags) String() string

String implements the fmt.Stringer.

func (*TelegramChatFeatureFlags) Unwrap

Unwrap unwraps the TelegramChatFeatureFlags entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*TelegramChatFeatureFlags) Update

Update returns a builder for updating this TelegramChatFeatureFlags. Note that you need to call TelegramChatFeatureFlags.Unwrap() before calling this method if this TelegramChatFeatureFlags was returned from a transaction, and the transaction was committed or rolled back.

func (*TelegramChatFeatureFlags) Value

func (tcff *TelegramChatFeatureFlags) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the TelegramChatFeatureFlags. This includes values selected through modifiers, order, etc.

type TelegramChatFeatureFlagsClient

type TelegramChatFeatureFlagsClient struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsClient is a client for the TelegramChatFeatureFlags schema.

func NewTelegramChatFeatureFlagsClient

func NewTelegramChatFeatureFlagsClient(c config) *TelegramChatFeatureFlagsClient

NewTelegramChatFeatureFlagsClient returns a client for the TelegramChatFeatureFlags from the given config.

func (*TelegramChatFeatureFlagsClient) Create

Create returns a builder for creating a TelegramChatFeatureFlags entity.

func (*TelegramChatFeatureFlagsClient) CreateBulk

CreateBulk returns a builder for creating a bulk of TelegramChatFeatureFlags entities.

func (*TelegramChatFeatureFlagsClient) Delete

Delete returns a delete builder for TelegramChatFeatureFlags.

func (*TelegramChatFeatureFlagsClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*TelegramChatFeatureFlagsClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*TelegramChatFeatureFlagsClient) Get

Get returns a TelegramChatFeatureFlags entity by its id.

func (*TelegramChatFeatureFlagsClient) GetX

GetX is like Get, but panics if an error occurs.

func (*TelegramChatFeatureFlagsClient) Hooks

func (c *TelegramChatFeatureFlagsClient) Hooks() []Hook

Hooks returns the client hooks.

func (*TelegramChatFeatureFlagsClient) Intercept

func (c *TelegramChatFeatureFlagsClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `telegramchatfeatureflags.Intercept(f(g(h())))`.

func (*TelegramChatFeatureFlagsClient) Interceptors

func (c *TelegramChatFeatureFlagsClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*TelegramChatFeatureFlagsClient) MapCreateBulk added in v0.22.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*TelegramChatFeatureFlagsClient) Query

Query returns a query builder for TelegramChatFeatureFlags.

func (*TelegramChatFeatureFlagsClient) Update

Update returns an update builder for TelegramChatFeatureFlags.

func (*TelegramChatFeatureFlagsClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*TelegramChatFeatureFlagsClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*TelegramChatFeatureFlagsClient) Use

func (c *TelegramChatFeatureFlagsClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `telegramchatfeatureflags.Hooks(f(g(h())))`.

type TelegramChatFeatureFlagsCreate

type TelegramChatFeatureFlagsCreate struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsCreate is the builder for creating a TelegramChatFeatureFlags entity.

func (*TelegramChatFeatureFlagsCreate) Exec

Exec executes the query.

func (*TelegramChatFeatureFlagsCreate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatFeatureFlagsCreate) Mutation

Mutation returns the TelegramChatFeatureFlagsMutation object of the builder.

func (*TelegramChatFeatureFlagsCreate) Save

Save creates the TelegramChatFeatureFlags in the database.

func (*TelegramChatFeatureFlagsCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*TelegramChatFeatureFlagsCreate) SetChatID

SetChatID sets the "chat_id" field.

func (*TelegramChatFeatureFlagsCreate) SetChatTitle

SetChatTitle sets the "chat_title" field.

func (*TelegramChatFeatureFlagsCreate) SetChatType

SetChatType sets the "chat_type" field.

func (*TelegramChatFeatureFlagsCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*TelegramChatFeatureFlagsCreate) SetFeatureChatHistoriesRecap

func (tcffc *TelegramChatFeatureFlagsCreate) SetFeatureChatHistoriesRecap(b bool) *TelegramChatFeatureFlagsCreate

SetFeatureChatHistoriesRecap sets the "feature_chat_histories_recap" field.

func (*TelegramChatFeatureFlagsCreate) SetID

SetID sets the "id" field.

func (*TelegramChatFeatureFlagsCreate) SetNillableChatTitle

func (tcffc *TelegramChatFeatureFlagsCreate) SetNillableChatTitle(s *string) *TelegramChatFeatureFlagsCreate

SetNillableChatTitle sets the "chat_title" field if the given value is not nil.

func (*TelegramChatFeatureFlagsCreate) SetNillableCreatedAt

func (tcffc *TelegramChatFeatureFlagsCreate) SetNillableCreatedAt(i *int64) *TelegramChatFeatureFlagsCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatFeatureFlagsCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*TelegramChatFeatureFlagsCreate) SetNillableUpdatedAt

func (tcffc *TelegramChatFeatureFlagsCreate) SetNillableUpdatedAt(i *int64) *TelegramChatFeatureFlagsCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatFeatureFlagsCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type TelegramChatFeatureFlagsCreateBulk

type TelegramChatFeatureFlagsCreateBulk struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsCreateBulk is the builder for creating many TelegramChatFeatureFlags entities in bulk.

func (*TelegramChatFeatureFlagsCreateBulk) Exec

Exec executes the query.

func (*TelegramChatFeatureFlagsCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatFeatureFlagsCreateBulk) Save

Save creates the TelegramChatFeatureFlags entities in the database.

func (*TelegramChatFeatureFlagsCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type TelegramChatFeatureFlagsDelete

type TelegramChatFeatureFlagsDelete struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsDelete is the builder for deleting a TelegramChatFeatureFlags entity.

func (*TelegramChatFeatureFlagsDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*TelegramChatFeatureFlagsDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatFeatureFlagsDelete) Where

Where appends a list predicates to the TelegramChatFeatureFlagsDelete builder.

type TelegramChatFeatureFlagsDeleteOne

type TelegramChatFeatureFlagsDeleteOne struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsDeleteOne is the builder for deleting a single TelegramChatFeatureFlags entity.

func (*TelegramChatFeatureFlagsDeleteOne) Exec

Exec executes the deletion query.

func (*TelegramChatFeatureFlagsDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatFeatureFlagsDeleteOne) Where

Where appends a list predicates to the TelegramChatFeatureFlagsDelete builder.

type TelegramChatFeatureFlagsGroupBy

type TelegramChatFeatureFlagsGroupBy struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsGroupBy is the group-by builder for TelegramChatFeatureFlags entities.

func (*TelegramChatFeatureFlagsGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*TelegramChatFeatureFlagsGroupBy) Bool

func (s *TelegramChatFeatureFlagsGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsGroupBy) BoolX

func (s *TelegramChatFeatureFlagsGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TelegramChatFeatureFlagsGroupBy) Bools

func (s *TelegramChatFeatureFlagsGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsGroupBy) BoolsX

func (s *TelegramChatFeatureFlagsGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TelegramChatFeatureFlagsGroupBy) Float64

func (s *TelegramChatFeatureFlagsGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsGroupBy) Float64X

func (s *TelegramChatFeatureFlagsGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TelegramChatFeatureFlagsGroupBy) Float64s

func (s *TelegramChatFeatureFlagsGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsGroupBy) Float64sX

func (s *TelegramChatFeatureFlagsGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TelegramChatFeatureFlagsGroupBy) Int

func (s *TelegramChatFeatureFlagsGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsGroupBy) IntX

func (s *TelegramChatFeatureFlagsGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TelegramChatFeatureFlagsGroupBy) Ints

func (s *TelegramChatFeatureFlagsGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsGroupBy) IntsX

func (s *TelegramChatFeatureFlagsGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TelegramChatFeatureFlagsGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*TelegramChatFeatureFlagsGroupBy) ScanX

func (s *TelegramChatFeatureFlagsGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TelegramChatFeatureFlagsGroupBy) String

func (s *TelegramChatFeatureFlagsGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsGroupBy) StringX

func (s *TelegramChatFeatureFlagsGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TelegramChatFeatureFlagsGroupBy) Strings

func (s *TelegramChatFeatureFlagsGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsGroupBy) StringsX

func (s *TelegramChatFeatureFlagsGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TelegramChatFeatureFlagsMutation

type TelegramChatFeatureFlagsMutation struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsMutation represents an operation that mutates the TelegramChatFeatureFlags nodes in the graph.

func (*TelegramChatFeatureFlagsMutation) AddChatID

func (m *TelegramChatFeatureFlagsMutation) AddChatID(i int64)

AddChatID adds i to the "chat_id" field.

func (*TelegramChatFeatureFlagsMutation) AddCreatedAt

func (m *TelegramChatFeatureFlagsMutation) AddCreatedAt(i int64)

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatFeatureFlagsMutation) AddField

func (m *TelegramChatFeatureFlagsMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TelegramChatFeatureFlagsMutation) AddUpdatedAt

func (m *TelegramChatFeatureFlagsMutation) AddUpdatedAt(i int64)

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatFeatureFlagsMutation) AddedChatID

func (m *TelegramChatFeatureFlagsMutation) AddedChatID() (r int64, exists bool)

AddedChatID returns the value that was added to the "chat_id" field in this mutation.

func (*TelegramChatFeatureFlagsMutation) AddedCreatedAt

func (m *TelegramChatFeatureFlagsMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*TelegramChatFeatureFlagsMutation) AddedEdges

func (m *TelegramChatFeatureFlagsMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*TelegramChatFeatureFlagsMutation) AddedField

func (m *TelegramChatFeatureFlagsMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TelegramChatFeatureFlagsMutation) AddedFields

func (m *TelegramChatFeatureFlagsMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*TelegramChatFeatureFlagsMutation) AddedIDs

func (m *TelegramChatFeatureFlagsMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*TelegramChatFeatureFlagsMutation) AddedUpdatedAt

func (m *TelegramChatFeatureFlagsMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*TelegramChatFeatureFlagsMutation) ChatID

func (m *TelegramChatFeatureFlagsMutation) ChatID() (r int64, exists bool)

ChatID returns the value of the "chat_id" field in the mutation.

func (*TelegramChatFeatureFlagsMutation) ChatTitle

func (m *TelegramChatFeatureFlagsMutation) ChatTitle() (r string, exists bool)

ChatTitle returns the value of the "chat_title" field in the mutation.

func (*TelegramChatFeatureFlagsMutation) ChatType

func (m *TelegramChatFeatureFlagsMutation) ChatType() (r string, exists bool)

ChatType returns the value of the "chat_type" field in the mutation.

func (*TelegramChatFeatureFlagsMutation) ClearEdge

func (m *TelegramChatFeatureFlagsMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*TelegramChatFeatureFlagsMutation) ClearField

func (m *TelegramChatFeatureFlagsMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*TelegramChatFeatureFlagsMutation) ClearedEdges

func (m *TelegramChatFeatureFlagsMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*TelegramChatFeatureFlagsMutation) ClearedFields

func (m *TelegramChatFeatureFlagsMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (TelegramChatFeatureFlagsMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*TelegramChatFeatureFlagsMutation) CreatedAt

func (m *TelegramChatFeatureFlagsMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*TelegramChatFeatureFlagsMutation) EdgeCleared

func (m *TelegramChatFeatureFlagsMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*TelegramChatFeatureFlagsMutation) FeatureChatHistoriesRecap

func (m *TelegramChatFeatureFlagsMutation) FeatureChatHistoriesRecap() (r bool, exists bool)

FeatureChatHistoriesRecap returns the value of the "feature_chat_histories_recap" field in the mutation.

func (*TelegramChatFeatureFlagsMutation) Field

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TelegramChatFeatureFlagsMutation) FieldCleared

func (m *TelegramChatFeatureFlagsMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*TelegramChatFeatureFlagsMutation) Fields

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*TelegramChatFeatureFlagsMutation) ID

func (m *TelegramChatFeatureFlagsMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*TelegramChatFeatureFlagsMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*TelegramChatFeatureFlagsMutation) OldChatID

func (m *TelegramChatFeatureFlagsMutation) OldChatID(ctx context.Context) (v int64, err error)

OldChatID returns the old "chat_id" field's value of the TelegramChatFeatureFlags entity. If the TelegramChatFeatureFlags object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatFeatureFlagsMutation) OldChatTitle

func (m *TelegramChatFeatureFlagsMutation) OldChatTitle(ctx context.Context) (v string, err error)

OldChatTitle returns the old "chat_title" field's value of the TelegramChatFeatureFlags entity. If the TelegramChatFeatureFlags object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatFeatureFlagsMutation) OldChatType

func (m *TelegramChatFeatureFlagsMutation) OldChatType(ctx context.Context) (v string, err error)

OldChatType returns the old "chat_type" field's value of the TelegramChatFeatureFlags entity. If the TelegramChatFeatureFlags object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatFeatureFlagsMutation) OldCreatedAt

func (m *TelegramChatFeatureFlagsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)

OldCreatedAt returns the old "created_at" field's value of the TelegramChatFeatureFlags entity. If the TelegramChatFeatureFlags object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatFeatureFlagsMutation) OldFeatureChatHistoriesRecap

func (m *TelegramChatFeatureFlagsMutation) OldFeatureChatHistoriesRecap(ctx context.Context) (v bool, err error)

OldFeatureChatHistoriesRecap returns the old "feature_chat_histories_recap" field's value of the TelegramChatFeatureFlags entity. If the TelegramChatFeatureFlags object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatFeatureFlagsMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*TelegramChatFeatureFlagsMutation) OldUpdatedAt

func (m *TelegramChatFeatureFlagsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)

OldUpdatedAt returns the old "updated_at" field's value of the TelegramChatFeatureFlags entity. If the TelegramChatFeatureFlags object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatFeatureFlagsMutation) Op

Op returns the operation name.

func (*TelegramChatFeatureFlagsMutation) RemovedEdges

func (m *TelegramChatFeatureFlagsMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*TelegramChatFeatureFlagsMutation) RemovedIDs

func (m *TelegramChatFeatureFlagsMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*TelegramChatFeatureFlagsMutation) ResetChatID

func (m *TelegramChatFeatureFlagsMutation) ResetChatID()

ResetChatID resets all changes to the "chat_id" field.

func (*TelegramChatFeatureFlagsMutation) ResetChatTitle

func (m *TelegramChatFeatureFlagsMutation) ResetChatTitle()

ResetChatTitle resets all changes to the "chat_title" field.

func (*TelegramChatFeatureFlagsMutation) ResetChatType

func (m *TelegramChatFeatureFlagsMutation) ResetChatType()

ResetChatType resets all changes to the "chat_type" field.

func (*TelegramChatFeatureFlagsMutation) ResetCreatedAt

func (m *TelegramChatFeatureFlagsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*TelegramChatFeatureFlagsMutation) ResetEdge

func (m *TelegramChatFeatureFlagsMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*TelegramChatFeatureFlagsMutation) ResetFeatureChatHistoriesRecap

func (m *TelegramChatFeatureFlagsMutation) ResetFeatureChatHistoriesRecap()

ResetFeatureChatHistoriesRecap resets all changes to the "feature_chat_histories_recap" field.

func (*TelegramChatFeatureFlagsMutation) ResetField

func (m *TelegramChatFeatureFlagsMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*TelegramChatFeatureFlagsMutation) ResetUpdatedAt

func (m *TelegramChatFeatureFlagsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*TelegramChatFeatureFlagsMutation) SetChatID

func (m *TelegramChatFeatureFlagsMutation) SetChatID(i int64)

SetChatID sets the "chat_id" field.

func (*TelegramChatFeatureFlagsMutation) SetChatTitle

func (m *TelegramChatFeatureFlagsMutation) SetChatTitle(s string)

SetChatTitle sets the "chat_title" field.

func (*TelegramChatFeatureFlagsMutation) SetChatType

func (m *TelegramChatFeatureFlagsMutation) SetChatType(s string)

SetChatType sets the "chat_type" field.

func (*TelegramChatFeatureFlagsMutation) SetCreatedAt

func (m *TelegramChatFeatureFlagsMutation) SetCreatedAt(i int64)

SetCreatedAt sets the "created_at" field.

func (*TelegramChatFeatureFlagsMutation) SetFeatureChatHistoriesRecap

func (m *TelegramChatFeatureFlagsMutation) SetFeatureChatHistoriesRecap(b bool)

SetFeatureChatHistoriesRecap sets the "feature_chat_histories_recap" field.

func (*TelegramChatFeatureFlagsMutation) SetField

func (m *TelegramChatFeatureFlagsMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TelegramChatFeatureFlagsMutation) SetID

SetID sets the value of the id field. Note that this operation is only accepted on creation of TelegramChatFeatureFlags entities.

func (*TelegramChatFeatureFlagsMutation) SetOp

func (m *TelegramChatFeatureFlagsMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*TelegramChatFeatureFlagsMutation) SetUpdatedAt

func (m *TelegramChatFeatureFlagsMutation) SetUpdatedAt(i int64)

SetUpdatedAt sets the "updated_at" field.

func (TelegramChatFeatureFlagsMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*TelegramChatFeatureFlagsMutation) Type

Type returns the node type of this mutation (TelegramChatFeatureFlags).

func (*TelegramChatFeatureFlagsMutation) UpdatedAt

func (m *TelegramChatFeatureFlagsMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*TelegramChatFeatureFlagsMutation) Where

Where appends a list predicates to the TelegramChatFeatureFlagsMutation builder.

func (*TelegramChatFeatureFlagsMutation) WhereP

func (m *TelegramChatFeatureFlagsMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the TelegramChatFeatureFlagsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type TelegramChatFeatureFlagsQuery

type TelegramChatFeatureFlagsQuery struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsQuery is the builder for querying TelegramChatFeatureFlags entities.

func (*TelegramChatFeatureFlagsQuery) Aggregate

Aggregate returns a TelegramChatFeatureFlagsSelect configured with the given aggregations.

func (*TelegramChatFeatureFlagsQuery) All

All executes the query and returns a list of TelegramChatFeatureFlagsSlice.

func (*TelegramChatFeatureFlagsQuery) AllX

AllX is like All, but panics if an error occurs.

func (*TelegramChatFeatureFlagsQuery) Clone

Clone returns a duplicate of the TelegramChatFeatureFlagsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*TelegramChatFeatureFlagsQuery) Count

func (tcffq *TelegramChatFeatureFlagsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*TelegramChatFeatureFlagsQuery) CountX

func (tcffq *TelegramChatFeatureFlagsQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*TelegramChatFeatureFlagsQuery) Exist

Exist returns true if the query has elements in the graph.

func (*TelegramChatFeatureFlagsQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*TelegramChatFeatureFlagsQuery) First

First returns the first TelegramChatFeatureFlags entity from the query. Returns a *NotFoundError when no TelegramChatFeatureFlags was found.

func (*TelegramChatFeatureFlagsQuery) FirstID

func (tcffq *TelegramChatFeatureFlagsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first TelegramChatFeatureFlags ID from the query. Returns a *NotFoundError when no TelegramChatFeatureFlags ID was found.

func (*TelegramChatFeatureFlagsQuery) FirstIDX

func (tcffq *TelegramChatFeatureFlagsQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*TelegramChatFeatureFlagsQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*TelegramChatFeatureFlagsQuery) GroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.TelegramChatFeatureFlags.Query().
	GroupBy(telegramchatfeatureflags.FieldChatID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*TelegramChatFeatureFlagsQuery) IDs

func (tcffq *TelegramChatFeatureFlagsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of TelegramChatFeatureFlags IDs.

func (*TelegramChatFeatureFlagsQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*TelegramChatFeatureFlagsQuery) Limit

Limit the number of records to be returned by this query.

func (*TelegramChatFeatureFlagsQuery) Offset

Offset to start from.

func (*TelegramChatFeatureFlagsQuery) Only

Only returns a single TelegramChatFeatureFlags entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one TelegramChatFeatureFlags entity is found. Returns a *NotFoundError when no TelegramChatFeatureFlags entities are found.

func (*TelegramChatFeatureFlagsQuery) OnlyID

func (tcffq *TelegramChatFeatureFlagsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only TelegramChatFeatureFlags ID in the query. Returns a *NotSingularError when more than one TelegramChatFeatureFlags ID is found. Returns a *NotFoundError when no entities are found.

func (*TelegramChatFeatureFlagsQuery) OnlyIDX

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*TelegramChatFeatureFlagsQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*TelegramChatFeatureFlagsQuery) Order

Order specifies how the records should be ordered.

func (*TelegramChatFeatureFlagsQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
}

client.TelegramChatFeatureFlags.Query().
	Select(telegramchatfeatureflags.FieldChatID).
	Scan(ctx, &v)

func (*TelegramChatFeatureFlagsQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*TelegramChatFeatureFlagsQuery) Where

Where adds a new predicate for the TelegramChatFeatureFlagsQuery builder.

type TelegramChatFeatureFlagsSelect

type TelegramChatFeatureFlagsSelect struct {
	*TelegramChatFeatureFlagsQuery
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsSelect is the builder for selecting fields of TelegramChatFeatureFlags entities.

func (*TelegramChatFeatureFlagsSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*TelegramChatFeatureFlagsSelect) Bool

func (s *TelegramChatFeatureFlagsSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsSelect) BoolX

func (s *TelegramChatFeatureFlagsSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TelegramChatFeatureFlagsSelect) Bools

func (s *TelegramChatFeatureFlagsSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsSelect) BoolsX

func (s *TelegramChatFeatureFlagsSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TelegramChatFeatureFlagsSelect) Float64

func (s *TelegramChatFeatureFlagsSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsSelect) Float64X

func (s *TelegramChatFeatureFlagsSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TelegramChatFeatureFlagsSelect) Float64s

func (s *TelegramChatFeatureFlagsSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsSelect) Float64sX

func (s *TelegramChatFeatureFlagsSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TelegramChatFeatureFlagsSelect) Int

func (s *TelegramChatFeatureFlagsSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsSelect) IntX

func (s *TelegramChatFeatureFlagsSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TelegramChatFeatureFlagsSelect) Ints

func (s *TelegramChatFeatureFlagsSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsSelect) IntsX

func (s *TelegramChatFeatureFlagsSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TelegramChatFeatureFlagsSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*TelegramChatFeatureFlagsSelect) ScanX

func (s *TelegramChatFeatureFlagsSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TelegramChatFeatureFlagsSelect) String

func (s *TelegramChatFeatureFlagsSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsSelect) StringX

func (s *TelegramChatFeatureFlagsSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TelegramChatFeatureFlagsSelect) Strings

func (s *TelegramChatFeatureFlagsSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TelegramChatFeatureFlagsSelect) StringsX

func (s *TelegramChatFeatureFlagsSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TelegramChatFeatureFlagsSlice

type TelegramChatFeatureFlagsSlice []*TelegramChatFeatureFlags

TelegramChatFeatureFlagsSlice is a parsable slice of TelegramChatFeatureFlags.

type TelegramChatFeatureFlagsUpdate

type TelegramChatFeatureFlagsUpdate struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsUpdate is the builder for updating TelegramChatFeatureFlags entities.

func (*TelegramChatFeatureFlagsUpdate) AddChatID

AddChatID adds i to the "chat_id" field.

func (*TelegramChatFeatureFlagsUpdate) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatFeatureFlagsUpdate) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatFeatureFlagsUpdate) Exec

Exec executes the query.

func (*TelegramChatFeatureFlagsUpdate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatFeatureFlagsUpdate) Mutation

Mutation returns the TelegramChatFeatureFlagsMutation object of the builder.

func (*TelegramChatFeatureFlagsUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*TelegramChatFeatureFlagsUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*TelegramChatFeatureFlagsUpdate) SetChatID

SetChatID sets the "chat_id" field.

func (*TelegramChatFeatureFlagsUpdate) SetChatTitle

SetChatTitle sets the "chat_title" field.

func (*TelegramChatFeatureFlagsUpdate) SetChatType

SetChatType sets the "chat_type" field.

func (*TelegramChatFeatureFlagsUpdate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*TelegramChatFeatureFlagsUpdate) SetFeatureChatHistoriesRecap

func (tcffu *TelegramChatFeatureFlagsUpdate) SetFeatureChatHistoriesRecap(b bool) *TelegramChatFeatureFlagsUpdate

SetFeatureChatHistoriesRecap sets the "feature_chat_histories_recap" field.

func (*TelegramChatFeatureFlagsUpdate) SetNillableChatID added in v0.23.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdate) SetNillableChatTitle

func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableChatTitle(s *string) *TelegramChatFeatureFlagsUpdate

SetNillableChatTitle sets the "chat_title" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdate) SetNillableChatType added in v0.23.0

SetNillableChatType sets the "chat_type" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdate) SetNillableCreatedAt

func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableCreatedAt(i *int64) *TelegramChatFeatureFlagsUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdate) SetNillableFeatureChatHistoriesRecap added in v0.23.0

func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableFeatureChatHistoriesRecap(b *bool) *TelegramChatFeatureFlagsUpdate

SetNillableFeatureChatHistoriesRecap sets the "feature_chat_histories_recap" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdate) SetNillableUpdatedAt

func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableUpdatedAt(i *int64) *TelegramChatFeatureFlagsUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*TelegramChatFeatureFlagsUpdate) Where

Where appends a list predicates to the TelegramChatFeatureFlagsUpdate builder.

type TelegramChatFeatureFlagsUpdateOne

type TelegramChatFeatureFlagsUpdateOne struct {
	// contains filtered or unexported fields
}

TelegramChatFeatureFlagsUpdateOne is the builder for updating a single TelegramChatFeatureFlags entity.

func (*TelegramChatFeatureFlagsUpdateOne) AddChatID

AddChatID adds i to the "chat_id" field.

func (*TelegramChatFeatureFlagsUpdateOne) AddCreatedAt

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatFeatureFlagsUpdateOne) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatFeatureFlagsUpdateOne) Exec

Exec executes the query on the entity.

func (*TelegramChatFeatureFlagsUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatFeatureFlagsUpdateOne) Mutation

Mutation returns the TelegramChatFeatureFlagsMutation object of the builder.

func (*TelegramChatFeatureFlagsUpdateOne) Save

Save executes the query and returns the updated TelegramChatFeatureFlags entity.

func (*TelegramChatFeatureFlagsUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*TelegramChatFeatureFlagsUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*TelegramChatFeatureFlagsUpdateOne) SetChatID

SetChatID sets the "chat_id" field.

func (*TelegramChatFeatureFlagsUpdateOne) SetChatTitle

SetChatTitle sets the "chat_title" field.

func (*TelegramChatFeatureFlagsUpdateOne) SetChatType

SetChatType sets the "chat_type" field.

func (*TelegramChatFeatureFlagsUpdateOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*TelegramChatFeatureFlagsUpdateOne) SetFeatureChatHistoriesRecap

func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetFeatureChatHistoriesRecap(b bool) *TelegramChatFeatureFlagsUpdateOne

SetFeatureChatHistoriesRecap sets the "feature_chat_histories_recap" field.

func (*TelegramChatFeatureFlagsUpdateOne) SetNillableChatID added in v0.23.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdateOne) SetNillableChatTitle

SetNillableChatTitle sets the "chat_title" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdateOne) SetNillableChatType added in v0.23.0

SetNillableChatType sets the "chat_type" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdateOne) SetNillableCreatedAt

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdateOne) SetNillableFeatureChatHistoriesRecap added in v0.23.0

func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetNillableFeatureChatHistoriesRecap(b *bool) *TelegramChatFeatureFlagsUpdateOne

SetNillableFeatureChatHistoriesRecap sets the "feature_chat_histories_recap" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdateOne) SetNillableUpdatedAt

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatFeatureFlagsUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*TelegramChatFeatureFlagsUpdateOne) Where

Where appends a list predicates to the TelegramChatFeatureFlagsUpdate builder.

type TelegramChatRecapsOptions added in v0.14.0

type TelegramChatRecapsOptions struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// ChatID holds the value of the "chat_id" field.
	ChatID int64 `json:"chat_id,omitempty"`
	// AutoRecapSendMode holds the value of the "auto_recap_send_mode" field.
	AutoRecapSendMode int `json:"auto_recap_send_mode,omitempty"`
	// ManualRecapRatePerSeconds holds the value of the "manual_recap_rate_per_seconds" field.
	ManualRecapRatePerSeconds int64 `json:"manual_recap_rate_per_seconds,omitempty"`
	// AutoRecapRatesPerDay holds the value of the "auto_recap_rates_per_day" field.
	AutoRecapRatesPerDay int `json:"auto_recap_rates_per_day,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt int64 `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt int64 `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

TelegramChatRecapsOptions is the model entity for the TelegramChatRecapsOptions schema.

func (*TelegramChatRecapsOptions) String added in v0.14.0

func (tcro *TelegramChatRecapsOptions) String() string

String implements the fmt.Stringer.

func (*TelegramChatRecapsOptions) Unwrap added in v0.14.0

Unwrap unwraps the TelegramChatRecapsOptions entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*TelegramChatRecapsOptions) Update added in v0.14.0

Update returns a builder for updating this TelegramChatRecapsOptions. Note that you need to call TelegramChatRecapsOptions.Unwrap() before calling this method if this TelegramChatRecapsOptions was returned from a transaction, and the transaction was committed or rolled back.

func (*TelegramChatRecapsOptions) Value added in v0.14.0

func (tcro *TelegramChatRecapsOptions) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the TelegramChatRecapsOptions. This includes values selected through modifiers, order, etc.

type TelegramChatRecapsOptionsClient added in v0.14.0

type TelegramChatRecapsOptionsClient struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsClient is a client for the TelegramChatRecapsOptions schema.

func NewTelegramChatRecapsOptionsClient added in v0.14.0

func NewTelegramChatRecapsOptionsClient(c config) *TelegramChatRecapsOptionsClient

NewTelegramChatRecapsOptionsClient returns a client for the TelegramChatRecapsOptions from the given config.

func (*TelegramChatRecapsOptionsClient) Create added in v0.14.0

Create returns a builder for creating a TelegramChatRecapsOptions entity.

func (*TelegramChatRecapsOptionsClient) CreateBulk added in v0.14.0

CreateBulk returns a builder for creating a bulk of TelegramChatRecapsOptions entities.

func (*TelegramChatRecapsOptionsClient) Delete added in v0.14.0

Delete returns a delete builder for TelegramChatRecapsOptions.

func (*TelegramChatRecapsOptionsClient) DeleteOne added in v0.14.0

DeleteOne returns a builder for deleting the given entity.

func (*TelegramChatRecapsOptionsClient) DeleteOneID added in v0.14.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*TelegramChatRecapsOptionsClient) Get added in v0.14.0

Get returns a TelegramChatRecapsOptions entity by its id.

func (*TelegramChatRecapsOptionsClient) GetX added in v0.14.0

GetX is like Get, but panics if an error occurs.

func (*TelegramChatRecapsOptionsClient) Hooks added in v0.14.0

Hooks returns the client hooks.

func (*TelegramChatRecapsOptionsClient) Intercept added in v0.14.0

func (c *TelegramChatRecapsOptionsClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `telegramchatrecapsoptions.Intercept(f(g(h())))`.

func (*TelegramChatRecapsOptionsClient) Interceptors added in v0.14.0

func (c *TelegramChatRecapsOptionsClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*TelegramChatRecapsOptionsClient) MapCreateBulk added in v0.22.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*TelegramChatRecapsOptionsClient) Query added in v0.14.0

Query returns a query builder for TelegramChatRecapsOptions.

func (*TelegramChatRecapsOptionsClient) Update added in v0.14.0

Update returns an update builder for TelegramChatRecapsOptions.

func (*TelegramChatRecapsOptionsClient) UpdateOne added in v0.14.0

UpdateOne returns an update builder for the given entity.

func (*TelegramChatRecapsOptionsClient) UpdateOneID added in v0.14.0

UpdateOneID returns an update builder for the given id.

func (*TelegramChatRecapsOptionsClient) Use added in v0.14.0

func (c *TelegramChatRecapsOptionsClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `telegramchatrecapsoptions.Hooks(f(g(h())))`.

type TelegramChatRecapsOptionsCreate added in v0.14.0

type TelegramChatRecapsOptionsCreate struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsCreate is the builder for creating a TelegramChatRecapsOptions entity.

func (*TelegramChatRecapsOptionsCreate) Exec added in v0.14.0

Exec executes the query.

func (*TelegramChatRecapsOptionsCreate) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatRecapsOptionsCreate) Mutation added in v0.14.0

Mutation returns the TelegramChatRecapsOptionsMutation object of the builder.

func (*TelegramChatRecapsOptionsCreate) Save added in v0.14.0

Save creates the TelegramChatRecapsOptions in the database.

func (*TelegramChatRecapsOptionsCreate) SaveX added in v0.14.0

SaveX calls Save and panics if Save returns an error.

func (*TelegramChatRecapsOptionsCreate) SetAutoRecapRatesPerDay added in v0.23.0

func (tcroc *TelegramChatRecapsOptionsCreate) SetAutoRecapRatesPerDay(i int) *TelegramChatRecapsOptionsCreate

SetAutoRecapRatesPerDay sets the "auto_recap_rates_per_day" field.

func (*TelegramChatRecapsOptionsCreate) SetAutoRecapSendMode added in v0.14.0

SetAutoRecapSendMode sets the "auto_recap_send_mode" field.

func (*TelegramChatRecapsOptionsCreate) SetChatID added in v0.14.0

SetChatID sets the "chat_id" field.

func (*TelegramChatRecapsOptionsCreate) SetCreatedAt added in v0.14.0

SetCreatedAt sets the "created_at" field.

func (*TelegramChatRecapsOptionsCreate) SetID added in v0.14.0

SetID sets the "id" field.

func (*TelegramChatRecapsOptionsCreate) SetManualRecapRatePerSeconds added in v0.16.0

func (tcroc *TelegramChatRecapsOptionsCreate) SetManualRecapRatePerSeconds(i int64) *TelegramChatRecapsOptionsCreate

SetManualRecapRatePerSeconds sets the "manual_recap_rate_per_seconds" field.

func (*TelegramChatRecapsOptionsCreate) SetNillableAutoRecapRatesPerDay added in v0.23.0

func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableAutoRecapRatesPerDay(i *int) *TelegramChatRecapsOptionsCreate

SetNillableAutoRecapRatesPerDay sets the "auto_recap_rates_per_day" field if the given value is not nil.

func (*TelegramChatRecapsOptionsCreate) SetNillableAutoRecapSendMode added in v0.14.0

func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableAutoRecapSendMode(i *int) *TelegramChatRecapsOptionsCreate

SetNillableAutoRecapSendMode sets the "auto_recap_send_mode" field if the given value is not nil.

func (*TelegramChatRecapsOptionsCreate) SetNillableCreatedAt added in v0.14.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatRecapsOptionsCreate) SetNillableID added in v0.14.0

SetNillableID sets the "id" field if the given value is not nil.

func (*TelegramChatRecapsOptionsCreate) SetNillableManualRecapRatePerSeconds added in v0.16.0

func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableManualRecapRatePerSeconds(i *int64) *TelegramChatRecapsOptionsCreate

SetNillableManualRecapRatePerSeconds sets the "manual_recap_rate_per_seconds" field if the given value is not nil.

func (*TelegramChatRecapsOptionsCreate) SetNillableUpdatedAt added in v0.14.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatRecapsOptionsCreate) SetUpdatedAt added in v0.14.0

SetUpdatedAt sets the "updated_at" field.

type TelegramChatRecapsOptionsCreateBulk added in v0.14.0

type TelegramChatRecapsOptionsCreateBulk struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsCreateBulk is the builder for creating many TelegramChatRecapsOptions entities in bulk.

func (*TelegramChatRecapsOptionsCreateBulk) Exec added in v0.14.0

Exec executes the query.

func (*TelegramChatRecapsOptionsCreateBulk) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatRecapsOptionsCreateBulk) Save added in v0.14.0

Save creates the TelegramChatRecapsOptions entities in the database.

func (*TelegramChatRecapsOptionsCreateBulk) SaveX added in v0.14.0

SaveX is like Save, but panics if an error occurs.

type TelegramChatRecapsOptionsDelete added in v0.14.0

type TelegramChatRecapsOptionsDelete struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsDelete is the builder for deleting a TelegramChatRecapsOptions entity.

func (*TelegramChatRecapsOptionsDelete) Exec added in v0.14.0

Exec executes the deletion query and returns how many vertices were deleted.

func (*TelegramChatRecapsOptionsDelete) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatRecapsOptionsDelete) Where added in v0.14.0

Where appends a list predicates to the TelegramChatRecapsOptionsDelete builder.

type TelegramChatRecapsOptionsDeleteOne added in v0.14.0

type TelegramChatRecapsOptionsDeleteOne struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsDeleteOne is the builder for deleting a single TelegramChatRecapsOptions entity.

func (*TelegramChatRecapsOptionsDeleteOne) Exec added in v0.14.0

Exec executes the deletion query.

func (*TelegramChatRecapsOptionsDeleteOne) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatRecapsOptionsDeleteOne) Where added in v0.14.0

Where appends a list predicates to the TelegramChatRecapsOptionsDelete builder.

type TelegramChatRecapsOptionsGroupBy added in v0.14.0

type TelegramChatRecapsOptionsGroupBy struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsGroupBy is the group-by builder for TelegramChatRecapsOptions entities.

func (*TelegramChatRecapsOptionsGroupBy) Aggregate added in v0.14.0

Aggregate adds the given aggregation functions to the group-by query.

func (*TelegramChatRecapsOptionsGroupBy) Bool added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsGroupBy) BoolX added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TelegramChatRecapsOptionsGroupBy) Bools added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsGroupBy) BoolsX added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TelegramChatRecapsOptionsGroupBy) Float64 added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsGroupBy) Float64X added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TelegramChatRecapsOptionsGroupBy) Float64s added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsGroupBy) Float64sX added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TelegramChatRecapsOptionsGroupBy) Int added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsGroupBy) IntX added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TelegramChatRecapsOptionsGroupBy) Ints added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsGroupBy) IntsX added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TelegramChatRecapsOptionsGroupBy) Scan added in v0.14.0

Scan applies the selector query and scans the result into the given value.

func (*TelegramChatRecapsOptionsGroupBy) ScanX added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TelegramChatRecapsOptionsGroupBy) String added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsGroupBy) StringX added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TelegramChatRecapsOptionsGroupBy) Strings added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsGroupBy) StringsX added in v0.14.0

func (s *TelegramChatRecapsOptionsGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TelegramChatRecapsOptionsMutation added in v0.14.0

type TelegramChatRecapsOptionsMutation struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsMutation represents an operation that mutates the TelegramChatRecapsOptions nodes in the graph.

func (*TelegramChatRecapsOptionsMutation) AddAutoRecapRatesPerDay added in v0.23.0

func (m *TelegramChatRecapsOptionsMutation) AddAutoRecapRatesPerDay(i int)

AddAutoRecapRatesPerDay adds i to the "auto_recap_rates_per_day" field.

func (*TelegramChatRecapsOptionsMutation) AddAutoRecapSendMode added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddAutoRecapSendMode(i int)

AddAutoRecapSendMode adds i to the "auto_recap_send_mode" field.

func (*TelegramChatRecapsOptionsMutation) AddChatID added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddChatID(i int64)

AddChatID adds i to the "chat_id" field.

func (*TelegramChatRecapsOptionsMutation) AddCreatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddCreatedAt(i int64)

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatRecapsOptionsMutation) AddField added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TelegramChatRecapsOptionsMutation) AddManualRecapRatePerSeconds added in v0.16.0

func (m *TelegramChatRecapsOptionsMutation) AddManualRecapRatePerSeconds(i int64)

AddManualRecapRatePerSeconds adds i to the "manual_recap_rate_per_seconds" field.

func (*TelegramChatRecapsOptionsMutation) AddUpdatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddUpdatedAt(i int64)

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatRecapsOptionsMutation) AddedAutoRecapRatesPerDay added in v0.23.0

func (m *TelegramChatRecapsOptionsMutation) AddedAutoRecapRatesPerDay() (r int, exists bool)

AddedAutoRecapRatesPerDay returns the value that was added to the "auto_recap_rates_per_day" field in this mutation.

func (*TelegramChatRecapsOptionsMutation) AddedAutoRecapSendMode added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddedAutoRecapSendMode() (r int, exists bool)

AddedAutoRecapSendMode returns the value that was added to the "auto_recap_send_mode" field in this mutation.

func (*TelegramChatRecapsOptionsMutation) AddedChatID added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddedChatID() (r int64, exists bool)

AddedChatID returns the value that was added to the "chat_id" field in this mutation.

func (*TelegramChatRecapsOptionsMutation) AddedCreatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddedCreatedAt() (r int64, exists bool)

AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.

func (*TelegramChatRecapsOptionsMutation) AddedEdges added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*TelegramChatRecapsOptionsMutation) AddedField added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TelegramChatRecapsOptionsMutation) AddedFields added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*TelegramChatRecapsOptionsMutation) AddedIDs added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*TelegramChatRecapsOptionsMutation) AddedManualRecapRatePerSeconds added in v0.16.0

func (m *TelegramChatRecapsOptionsMutation) AddedManualRecapRatePerSeconds() (r int64, exists bool)

AddedManualRecapRatePerSeconds returns the value that was added to the "manual_recap_rate_per_seconds" field in this mutation.

func (*TelegramChatRecapsOptionsMutation) AddedUpdatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AddedUpdatedAt() (r int64, exists bool)

AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.

func (*TelegramChatRecapsOptionsMutation) AutoRecapRatesPerDay added in v0.23.0

func (m *TelegramChatRecapsOptionsMutation) AutoRecapRatesPerDay() (r int, exists bool)

AutoRecapRatesPerDay returns the value of the "auto_recap_rates_per_day" field in the mutation.

func (*TelegramChatRecapsOptionsMutation) AutoRecapSendMode added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) AutoRecapSendMode() (r int, exists bool)

AutoRecapSendMode returns the value of the "auto_recap_send_mode" field in the mutation.

func (*TelegramChatRecapsOptionsMutation) ChatID added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ChatID() (r int64, exists bool)

ChatID returns the value of the "chat_id" field in the mutation.

func (*TelegramChatRecapsOptionsMutation) ClearEdge added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*TelegramChatRecapsOptionsMutation) ClearField added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*TelegramChatRecapsOptionsMutation) ClearedEdges added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*TelegramChatRecapsOptionsMutation) ClearedFields added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (TelegramChatRecapsOptionsMutation) Client added in v0.14.0

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*TelegramChatRecapsOptionsMutation) CreatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) CreatedAt() (r int64, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*TelegramChatRecapsOptionsMutation) EdgeCleared added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*TelegramChatRecapsOptionsMutation) Field added in v0.14.0

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TelegramChatRecapsOptionsMutation) FieldCleared added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*TelegramChatRecapsOptionsMutation) Fields added in v0.14.0

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*TelegramChatRecapsOptionsMutation) ID added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*TelegramChatRecapsOptionsMutation) IDs added in v0.14.0

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*TelegramChatRecapsOptionsMutation) ManualRecapRatePerSeconds added in v0.16.0

func (m *TelegramChatRecapsOptionsMutation) ManualRecapRatePerSeconds() (r int64, exists bool)

ManualRecapRatePerSeconds returns the value of the "manual_recap_rate_per_seconds" field in the mutation.

func (*TelegramChatRecapsOptionsMutation) OldAutoRecapRatesPerDay added in v0.23.0

func (m *TelegramChatRecapsOptionsMutation) OldAutoRecapRatesPerDay(ctx context.Context) (v int, err error)

OldAutoRecapRatesPerDay returns the old "auto_recap_rates_per_day" field's value of the TelegramChatRecapsOptions entity. If the TelegramChatRecapsOptions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatRecapsOptionsMutation) OldAutoRecapSendMode added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) OldAutoRecapSendMode(ctx context.Context) (v int, err error)

OldAutoRecapSendMode returns the old "auto_recap_send_mode" field's value of the TelegramChatRecapsOptions entity. If the TelegramChatRecapsOptions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatRecapsOptionsMutation) OldChatID added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) OldChatID(ctx context.Context) (v int64, err error)

OldChatID returns the old "chat_id" field's value of the TelegramChatRecapsOptions entity. If the TelegramChatRecapsOptions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatRecapsOptionsMutation) OldCreatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)

OldCreatedAt returns the old "created_at" field's value of the TelegramChatRecapsOptions entity. If the TelegramChatRecapsOptions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatRecapsOptionsMutation) OldField added in v0.14.0

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*TelegramChatRecapsOptionsMutation) OldManualRecapRatePerSeconds added in v0.16.0

func (m *TelegramChatRecapsOptionsMutation) OldManualRecapRatePerSeconds(ctx context.Context) (v int64, err error)

OldManualRecapRatePerSeconds returns the old "manual_recap_rate_per_seconds" field's value of the TelegramChatRecapsOptions entity. If the TelegramChatRecapsOptions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatRecapsOptionsMutation) OldUpdatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)

OldUpdatedAt returns the old "updated_at" field's value of the TelegramChatRecapsOptions entity. If the TelegramChatRecapsOptions object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TelegramChatRecapsOptionsMutation) Op added in v0.14.0

Op returns the operation name.

func (*TelegramChatRecapsOptionsMutation) RemovedEdges added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*TelegramChatRecapsOptionsMutation) RemovedIDs added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*TelegramChatRecapsOptionsMutation) ResetAutoRecapRatesPerDay added in v0.23.0

func (m *TelegramChatRecapsOptionsMutation) ResetAutoRecapRatesPerDay()

ResetAutoRecapRatesPerDay resets all changes to the "auto_recap_rates_per_day" field.

func (*TelegramChatRecapsOptionsMutation) ResetAutoRecapSendMode added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ResetAutoRecapSendMode()

ResetAutoRecapSendMode resets all changes to the "auto_recap_send_mode" field.

func (*TelegramChatRecapsOptionsMutation) ResetChatID added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ResetChatID()

ResetChatID resets all changes to the "chat_id" field.

func (*TelegramChatRecapsOptionsMutation) ResetCreatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*TelegramChatRecapsOptionsMutation) ResetEdge added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*TelegramChatRecapsOptionsMutation) ResetField added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*TelegramChatRecapsOptionsMutation) ResetManualRecapRatePerSeconds added in v0.16.0

func (m *TelegramChatRecapsOptionsMutation) ResetManualRecapRatePerSeconds()

ResetManualRecapRatePerSeconds resets all changes to the "manual_recap_rate_per_seconds" field.

func (*TelegramChatRecapsOptionsMutation) ResetUpdatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*TelegramChatRecapsOptionsMutation) SetAutoRecapRatesPerDay added in v0.23.0

func (m *TelegramChatRecapsOptionsMutation) SetAutoRecapRatesPerDay(i int)

SetAutoRecapRatesPerDay sets the "auto_recap_rates_per_day" field.

func (*TelegramChatRecapsOptionsMutation) SetAutoRecapSendMode added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) SetAutoRecapSendMode(i int)

SetAutoRecapSendMode sets the "auto_recap_send_mode" field.

func (*TelegramChatRecapsOptionsMutation) SetChatID added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) SetChatID(i int64)

SetChatID sets the "chat_id" field.

func (*TelegramChatRecapsOptionsMutation) SetCreatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) SetCreatedAt(i int64)

SetCreatedAt sets the "created_at" field.

func (*TelegramChatRecapsOptionsMutation) SetField added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TelegramChatRecapsOptionsMutation) SetID added in v0.14.0

SetID sets the value of the id field. Note that this operation is only accepted on creation of TelegramChatRecapsOptions entities.

func (*TelegramChatRecapsOptionsMutation) SetManualRecapRatePerSeconds added in v0.16.0

func (m *TelegramChatRecapsOptionsMutation) SetManualRecapRatePerSeconds(i int64)

SetManualRecapRatePerSeconds sets the "manual_recap_rate_per_seconds" field.

func (*TelegramChatRecapsOptionsMutation) SetOp added in v0.14.0

SetOp allows setting the mutation operation.

func (*TelegramChatRecapsOptionsMutation) SetUpdatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) SetUpdatedAt(i int64)

SetUpdatedAt sets the "updated_at" field.

func (TelegramChatRecapsOptionsMutation) Tx added in v0.14.0

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*TelegramChatRecapsOptionsMutation) Type added in v0.14.0

Type returns the node type of this mutation (TelegramChatRecapsOptions).

func (*TelegramChatRecapsOptionsMutation) UpdatedAt added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) UpdatedAt() (r int64, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*TelegramChatRecapsOptionsMutation) Where added in v0.14.0

Where appends a list predicates to the TelegramChatRecapsOptionsMutation builder.

func (*TelegramChatRecapsOptionsMutation) WhereP added in v0.14.0

func (m *TelegramChatRecapsOptionsMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the TelegramChatRecapsOptionsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type TelegramChatRecapsOptionsQuery added in v0.14.0

type TelegramChatRecapsOptionsQuery struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsQuery is the builder for querying TelegramChatRecapsOptions entities.

func (*TelegramChatRecapsOptionsQuery) Aggregate added in v0.14.0

Aggregate returns a TelegramChatRecapsOptionsSelect configured with the given aggregations.

func (*TelegramChatRecapsOptionsQuery) All added in v0.14.0

All executes the query and returns a list of TelegramChatRecapsOptionsSlice.

func (*TelegramChatRecapsOptionsQuery) AllX added in v0.14.0

AllX is like All, but panics if an error occurs.

func (*TelegramChatRecapsOptionsQuery) Clone added in v0.14.0

Clone returns a duplicate of the TelegramChatRecapsOptionsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*TelegramChatRecapsOptionsQuery) Count added in v0.14.0

Count returns the count of the given query.

func (*TelegramChatRecapsOptionsQuery) CountX added in v0.14.0

CountX is like Count, but panics if an error occurs.

func (*TelegramChatRecapsOptionsQuery) Exist added in v0.14.0

Exist returns true if the query has elements in the graph.

func (*TelegramChatRecapsOptionsQuery) ExistX added in v0.14.0

ExistX is like Exist, but panics if an error occurs.

func (*TelegramChatRecapsOptionsQuery) First added in v0.14.0

First returns the first TelegramChatRecapsOptions entity from the query. Returns a *NotFoundError when no TelegramChatRecapsOptions was found.

func (*TelegramChatRecapsOptionsQuery) FirstID added in v0.14.0

func (tcroq *TelegramChatRecapsOptionsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first TelegramChatRecapsOptions ID from the query. Returns a *NotFoundError when no TelegramChatRecapsOptions ID was found.

func (*TelegramChatRecapsOptionsQuery) FirstIDX added in v0.14.0

FirstIDX is like FirstID, but panics if an error occurs.

func (*TelegramChatRecapsOptionsQuery) FirstX added in v0.14.0

FirstX is like First, but panics if an error occurs.

func (*TelegramChatRecapsOptionsQuery) GroupBy added in v0.14.0

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.TelegramChatRecapsOptions.Query().
	GroupBy(telegramchatrecapsoptions.FieldChatID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*TelegramChatRecapsOptionsQuery) IDs added in v0.14.0

func (tcroq *TelegramChatRecapsOptionsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of TelegramChatRecapsOptions IDs.

func (*TelegramChatRecapsOptionsQuery) IDsX added in v0.14.0

IDsX is like IDs, but panics if an error occurs.

func (*TelegramChatRecapsOptionsQuery) Limit added in v0.14.0

Limit the number of records to be returned by this query.

func (*TelegramChatRecapsOptionsQuery) Offset added in v0.14.0

Offset to start from.

func (*TelegramChatRecapsOptionsQuery) Only added in v0.14.0

Only returns a single TelegramChatRecapsOptions entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one TelegramChatRecapsOptions entity is found. Returns a *NotFoundError when no TelegramChatRecapsOptions entities are found.

func (*TelegramChatRecapsOptionsQuery) OnlyID added in v0.14.0

func (tcroq *TelegramChatRecapsOptionsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only TelegramChatRecapsOptions ID in the query. Returns a *NotSingularError when more than one TelegramChatRecapsOptions ID is found. Returns a *NotFoundError when no entities are found.

func (*TelegramChatRecapsOptionsQuery) OnlyIDX added in v0.14.0

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*TelegramChatRecapsOptionsQuery) OnlyX added in v0.14.0

OnlyX is like Only, but panics if an error occurs.

func (*TelegramChatRecapsOptionsQuery) Order added in v0.14.0

Order specifies how the records should be ordered.

func (*TelegramChatRecapsOptionsQuery) Select added in v0.14.0

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ChatID int64 `json:"chat_id,omitempty"`
}

client.TelegramChatRecapsOptions.Query().
	Select(telegramchatrecapsoptions.FieldChatID).
	Scan(ctx, &v)

func (*TelegramChatRecapsOptionsQuery) Unique added in v0.14.0

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*TelegramChatRecapsOptionsQuery) Where added in v0.14.0

Where adds a new predicate for the TelegramChatRecapsOptionsQuery builder.

type TelegramChatRecapsOptionsSelect added in v0.14.0

type TelegramChatRecapsOptionsSelect struct {
	*TelegramChatRecapsOptionsQuery
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsSelect is the builder for selecting fields of TelegramChatRecapsOptions entities.

func (*TelegramChatRecapsOptionsSelect) Aggregate added in v0.14.0

Aggregate adds the given aggregation functions to the selector query.

func (*TelegramChatRecapsOptionsSelect) Bool added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsSelect) BoolX added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TelegramChatRecapsOptionsSelect) Bools added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsSelect) BoolsX added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TelegramChatRecapsOptionsSelect) Float64 added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsSelect) Float64X added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TelegramChatRecapsOptionsSelect) Float64s added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsSelect) Float64sX added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TelegramChatRecapsOptionsSelect) Int added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsSelect) IntX added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TelegramChatRecapsOptionsSelect) Ints added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsSelect) IntsX added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TelegramChatRecapsOptionsSelect) Scan added in v0.14.0

Scan applies the selector query and scans the result into the given value.

func (*TelegramChatRecapsOptionsSelect) ScanX added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TelegramChatRecapsOptionsSelect) String added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsSelect) StringX added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TelegramChatRecapsOptionsSelect) Strings added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TelegramChatRecapsOptionsSelect) StringsX added in v0.14.0

func (s *TelegramChatRecapsOptionsSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TelegramChatRecapsOptionsSlice added in v0.14.0

type TelegramChatRecapsOptionsSlice []*TelegramChatRecapsOptions

TelegramChatRecapsOptionsSlice is a parsable slice of TelegramChatRecapsOptions.

type TelegramChatRecapsOptionsUpdate added in v0.14.0

type TelegramChatRecapsOptionsUpdate struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsUpdate is the builder for updating TelegramChatRecapsOptions entities.

func (*TelegramChatRecapsOptionsUpdate) AddAutoRecapRatesPerDay added in v0.23.0

func (tcrou *TelegramChatRecapsOptionsUpdate) AddAutoRecapRatesPerDay(i int) *TelegramChatRecapsOptionsUpdate

AddAutoRecapRatesPerDay adds i to the "auto_recap_rates_per_day" field.

func (*TelegramChatRecapsOptionsUpdate) AddAutoRecapSendMode added in v0.14.0

AddAutoRecapSendMode adds i to the "auto_recap_send_mode" field.

func (*TelegramChatRecapsOptionsUpdate) AddChatID added in v0.14.0

AddChatID adds i to the "chat_id" field.

func (*TelegramChatRecapsOptionsUpdate) AddCreatedAt added in v0.14.0

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatRecapsOptionsUpdate) AddManualRecapRatePerSeconds added in v0.16.0

func (tcrou *TelegramChatRecapsOptionsUpdate) AddManualRecapRatePerSeconds(i int64) *TelegramChatRecapsOptionsUpdate

AddManualRecapRatePerSeconds adds i to the "manual_recap_rate_per_seconds" field.

func (*TelegramChatRecapsOptionsUpdate) AddUpdatedAt added in v0.14.0

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatRecapsOptionsUpdate) Exec added in v0.14.0

Exec executes the query.

func (*TelegramChatRecapsOptionsUpdate) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatRecapsOptionsUpdate) Mutation added in v0.14.0

Mutation returns the TelegramChatRecapsOptionsMutation object of the builder.

func (*TelegramChatRecapsOptionsUpdate) Save added in v0.14.0

Save executes the query and returns the number of nodes affected by the update operation.

func (*TelegramChatRecapsOptionsUpdate) SaveX added in v0.14.0

SaveX is like Save, but panics if an error occurs.

func (*TelegramChatRecapsOptionsUpdate) SetAutoRecapRatesPerDay added in v0.23.0

func (tcrou *TelegramChatRecapsOptionsUpdate) SetAutoRecapRatesPerDay(i int) *TelegramChatRecapsOptionsUpdate

SetAutoRecapRatesPerDay sets the "auto_recap_rates_per_day" field.

func (*TelegramChatRecapsOptionsUpdate) SetAutoRecapSendMode added in v0.14.0

SetAutoRecapSendMode sets the "auto_recap_send_mode" field.

func (*TelegramChatRecapsOptionsUpdate) SetChatID added in v0.14.0

SetChatID sets the "chat_id" field.

func (*TelegramChatRecapsOptionsUpdate) SetCreatedAt added in v0.14.0

SetCreatedAt sets the "created_at" field.

func (*TelegramChatRecapsOptionsUpdate) SetManualRecapRatePerSeconds added in v0.16.0

func (tcrou *TelegramChatRecapsOptionsUpdate) SetManualRecapRatePerSeconds(i int64) *TelegramChatRecapsOptionsUpdate

SetManualRecapRatePerSeconds sets the "manual_recap_rate_per_seconds" field.

func (*TelegramChatRecapsOptionsUpdate) SetNillableAutoRecapRatesPerDay added in v0.23.0

func (tcrou *TelegramChatRecapsOptionsUpdate) SetNillableAutoRecapRatesPerDay(i *int) *TelegramChatRecapsOptionsUpdate

SetNillableAutoRecapRatesPerDay sets the "auto_recap_rates_per_day" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdate) SetNillableAutoRecapSendMode added in v0.14.0

func (tcrou *TelegramChatRecapsOptionsUpdate) SetNillableAutoRecapSendMode(i *int) *TelegramChatRecapsOptionsUpdate

SetNillableAutoRecapSendMode sets the "auto_recap_send_mode" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdate) SetNillableChatID added in v0.23.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdate) SetNillableCreatedAt added in v0.14.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdate) SetNillableManualRecapRatePerSeconds added in v0.16.0

func (tcrou *TelegramChatRecapsOptionsUpdate) SetNillableManualRecapRatePerSeconds(i *int64) *TelegramChatRecapsOptionsUpdate

SetNillableManualRecapRatePerSeconds sets the "manual_recap_rate_per_seconds" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdate) SetNillableUpdatedAt added in v0.14.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdate) SetUpdatedAt added in v0.14.0

SetUpdatedAt sets the "updated_at" field.

func (*TelegramChatRecapsOptionsUpdate) Where added in v0.14.0

Where appends a list predicates to the TelegramChatRecapsOptionsUpdate builder.

type TelegramChatRecapsOptionsUpdateOne added in v0.14.0

type TelegramChatRecapsOptionsUpdateOne struct {
	// contains filtered or unexported fields
}

TelegramChatRecapsOptionsUpdateOne is the builder for updating a single TelegramChatRecapsOptions entity.

func (*TelegramChatRecapsOptionsUpdateOne) AddAutoRecapRatesPerDay added in v0.23.0

AddAutoRecapRatesPerDay adds i to the "auto_recap_rates_per_day" field.

func (*TelegramChatRecapsOptionsUpdateOne) AddAutoRecapSendMode added in v0.14.0

AddAutoRecapSendMode adds i to the "auto_recap_send_mode" field.

func (*TelegramChatRecapsOptionsUpdateOne) AddChatID added in v0.14.0

AddChatID adds i to the "chat_id" field.

func (*TelegramChatRecapsOptionsUpdateOne) AddCreatedAt added in v0.14.0

AddCreatedAt adds i to the "created_at" field.

func (*TelegramChatRecapsOptionsUpdateOne) AddManualRecapRatePerSeconds added in v0.16.0

func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddManualRecapRatePerSeconds(i int64) *TelegramChatRecapsOptionsUpdateOne

AddManualRecapRatePerSeconds adds i to the "manual_recap_rate_per_seconds" field.

func (*TelegramChatRecapsOptionsUpdateOne) AddUpdatedAt added in v0.14.0

AddUpdatedAt adds i to the "updated_at" field.

func (*TelegramChatRecapsOptionsUpdateOne) Exec added in v0.14.0

Exec executes the query on the entity.

func (*TelegramChatRecapsOptionsUpdateOne) ExecX added in v0.14.0

ExecX is like Exec, but panics if an error occurs.

func (*TelegramChatRecapsOptionsUpdateOne) Mutation added in v0.14.0

Mutation returns the TelegramChatRecapsOptionsMutation object of the builder.

func (*TelegramChatRecapsOptionsUpdateOne) Save added in v0.14.0

Save executes the query and returns the updated TelegramChatRecapsOptions entity.

func (*TelegramChatRecapsOptionsUpdateOne) SaveX added in v0.14.0

SaveX is like Save, but panics if an error occurs.

func (*TelegramChatRecapsOptionsUpdateOne) Select added in v0.14.0

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*TelegramChatRecapsOptionsUpdateOne) SetAutoRecapRatesPerDay added in v0.23.0

SetAutoRecapRatesPerDay sets the "auto_recap_rates_per_day" field.

func (*TelegramChatRecapsOptionsUpdateOne) SetAutoRecapSendMode added in v0.14.0

SetAutoRecapSendMode sets the "auto_recap_send_mode" field.

func (*TelegramChatRecapsOptionsUpdateOne) SetChatID added in v0.14.0

SetChatID sets the "chat_id" field.

func (*TelegramChatRecapsOptionsUpdateOne) SetCreatedAt added in v0.14.0

SetCreatedAt sets the "created_at" field.

func (*TelegramChatRecapsOptionsUpdateOne) SetManualRecapRatePerSeconds added in v0.16.0

func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetManualRecapRatePerSeconds(i int64) *TelegramChatRecapsOptionsUpdateOne

SetManualRecapRatePerSeconds sets the "manual_recap_rate_per_seconds" field.

func (*TelegramChatRecapsOptionsUpdateOne) SetNillableAutoRecapRatesPerDay added in v0.23.0

func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetNillableAutoRecapRatesPerDay(i *int) *TelegramChatRecapsOptionsUpdateOne

SetNillableAutoRecapRatesPerDay sets the "auto_recap_rates_per_day" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdateOne) SetNillableAutoRecapSendMode added in v0.14.0

func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetNillableAutoRecapSendMode(i *int) *TelegramChatRecapsOptionsUpdateOne

SetNillableAutoRecapSendMode sets the "auto_recap_send_mode" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdateOne) SetNillableChatID added in v0.23.0

SetNillableChatID sets the "chat_id" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdateOne) SetNillableCreatedAt added in v0.14.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdateOne) SetNillableManualRecapRatePerSeconds added in v0.16.0

func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetNillableManualRecapRatePerSeconds(i *int64) *TelegramChatRecapsOptionsUpdateOne

SetNillableManualRecapRatePerSeconds sets the "manual_recap_rate_per_seconds" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdateOne) SetNillableUpdatedAt added in v0.14.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TelegramChatRecapsOptionsUpdateOne) SetUpdatedAt added in v0.14.0

SetUpdatedAt sets the "updated_at" field.

func (*TelegramChatRecapsOptionsUpdateOne) Where added in v0.14.0

Where appends a list predicates to the TelegramChatRecapsOptionsUpdate builder.

type TraverseFunc

type TraverseFunc = ent.TraverseFunc

ent aliases to avoid import conflicts in user's code.

type Traverser

type Traverser = ent.Traverser

ent aliases to avoid import conflicts in user's code.

type Tx

type Tx struct {

	// ChatHistories is the client for interacting with the ChatHistories builders.
	ChatHistories *ChatHistoriesClient
	// FeedbackChatHistoriesRecapsReactions is the client for interacting with the FeedbackChatHistoriesRecapsReactions builders.
	FeedbackChatHistoriesRecapsReactions *FeedbackChatHistoriesRecapsReactionsClient
	// FeedbackSummarizationsReactions is the client for interacting with the FeedbackSummarizationsReactions builders.
	FeedbackSummarizationsReactions *FeedbackSummarizationsReactionsClient
	// LogChatHistoriesRecap is the client for interacting with the LogChatHistoriesRecap builders.
	LogChatHistoriesRecap *LogChatHistoriesRecapClient
	// LogSummarizations is the client for interacting with the LogSummarizations builders.
	LogSummarizations *LogSummarizationsClient
	// MetricOpenAIChatCompletionTokenUsage is the client for interacting with the MetricOpenAIChatCompletionTokenUsage builders.
	MetricOpenAIChatCompletionTokenUsage *MetricOpenAIChatCompletionTokenUsageClient
	// SlackOAuthCredentials is the client for interacting with the SlackOAuthCredentials builders.
	SlackOAuthCredentials *SlackOAuthCredentialsClient
	// TelegramChatAutoRecapsSubscribers is the client for interacting with the TelegramChatAutoRecapsSubscribers builders.
	TelegramChatAutoRecapsSubscribers *TelegramChatAutoRecapsSubscribersClient
	// TelegramChatFeatureFlags is the client for interacting with the TelegramChatFeatureFlags builders.
	TelegramChatFeatureFlags *TelegramChatFeatureFlagsClient
	// TelegramChatRecapsOptions is the client for interacting with the TelegramChatRecapsOptions builders.
	TelegramChatRecapsOptions *TelegramChatRecapsOptionsClient
	// contains filtered or unexported fields
}

Tx is a transactional client that is created by calling Client.Tx().

func TxFromContext

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

type ValidationError

type ValidationError struct {
	Name string // Field or edge name.
	// contains filtered or unexported fields
}

ValidationError returns when validating a field or edge fails.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Error implements the error interface.

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

Source Files

Jump to

Keyboard shortcuts

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