Documentation ¶
Index ¶
- Constants
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type ChatHistories
- type ChatHistoriesClient
- func (c *ChatHistoriesClient) Create() *ChatHistoriesCreate
- func (c *ChatHistoriesClient) CreateBulk(builders ...*ChatHistoriesCreate) *ChatHistoriesCreateBulk
- func (c *ChatHistoriesClient) Delete() *ChatHistoriesDelete
- func (c *ChatHistoriesClient) DeleteOne(ch *ChatHistories) *ChatHistoriesDeleteOne
- func (c *ChatHistoriesClient) DeleteOneID(id uuid.UUID) *ChatHistoriesDeleteOne
- func (c *ChatHistoriesClient) Get(ctx context.Context, id uuid.UUID) (*ChatHistories, error)
- func (c *ChatHistoriesClient) GetX(ctx context.Context, id uuid.UUID) *ChatHistories
- func (c *ChatHistoriesClient) Hooks() []Hook
- func (c *ChatHistoriesClient) Intercept(interceptors ...Interceptor)
- func (c *ChatHistoriesClient) Interceptors() []Interceptor
- func (c *ChatHistoriesClient) Query() *ChatHistoriesQuery
- func (c *ChatHistoriesClient) Update() *ChatHistoriesUpdate
- func (c *ChatHistoriesClient) UpdateOne(ch *ChatHistories) *ChatHistoriesUpdateOne
- func (c *ChatHistoriesClient) UpdateOneID(id uuid.UUID) *ChatHistoriesUpdateOne
- func (c *ChatHistoriesClient) Use(hooks ...Hook)
- type ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) Exec(ctx context.Context) error
- func (chc *ChatHistoriesCreate) ExecX(ctx context.Context)
- func (chc *ChatHistoriesCreate) Mutation() *ChatHistoriesMutation
- func (chc *ChatHistoriesCreate) Save(ctx context.Context) (*ChatHistories, error)
- func (chc *ChatHistoriesCreate) SaveX(ctx context.Context) *ChatHistories
- func (chc *ChatHistoriesCreate) SetChatID(i int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetChatTitle(s string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetChatType(s string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetChattedAt(i int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetCreatedAt(i int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetEmbedded(b bool) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetFromPlatform(i int) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetFullName(s string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetID(u uuid.UUID) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetMessageID(i int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableChatID(i *int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableChatTitle(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableChatType(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableChattedAt(i *int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableCreatedAt(i *int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableEmbedded(b *bool) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableFromPlatform(i *int) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableFullName(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableID(u *uuid.UUID) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableMessageID(i *int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableRepliedToChatType(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableRepliedToFullName(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableRepliedToMessageID(i *int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableRepliedToText(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableRepliedToUserID(i *int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableRepliedToUsername(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableText(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableUpdatedAt(i *int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableUserID(i *int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetNillableUsername(s *string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetRepliedToChatType(s string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetRepliedToFullName(s string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetRepliedToMessageID(i int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetRepliedToText(s string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetRepliedToUserID(i int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetRepliedToUsername(s string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetText(s string) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetUpdatedAt(i int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetUserID(i int64) *ChatHistoriesCreate
- func (chc *ChatHistoriesCreate) SetUsername(s string) *ChatHistoriesCreate
- type ChatHistoriesCreateBulk
- func (chcb *ChatHistoriesCreateBulk) Exec(ctx context.Context) error
- func (chcb *ChatHistoriesCreateBulk) ExecX(ctx context.Context)
- func (chcb *ChatHistoriesCreateBulk) Save(ctx context.Context) ([]*ChatHistories, error)
- func (chcb *ChatHistoriesCreateBulk) SaveX(ctx context.Context) []*ChatHistories
- type ChatHistoriesDelete
- type ChatHistoriesDeleteOne
- type ChatHistoriesGroupBy
- func (chgb *ChatHistoriesGroupBy) Aggregate(fns ...AggregateFunc) *ChatHistoriesGroupBy
- func (s *ChatHistoriesGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ChatHistoriesGroupBy) BoolX(ctx context.Context) bool
- func (s *ChatHistoriesGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ChatHistoriesGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ChatHistoriesGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ChatHistoriesGroupBy) Float64X(ctx context.Context) float64
- func (s *ChatHistoriesGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ChatHistoriesGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ChatHistoriesGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ChatHistoriesGroupBy) IntX(ctx context.Context) int
- func (s *ChatHistoriesGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ChatHistoriesGroupBy) IntsX(ctx context.Context) []int
- func (chgb *ChatHistoriesGroupBy) Scan(ctx context.Context, v any) error
- func (s *ChatHistoriesGroupBy) ScanX(ctx context.Context, v any)
- func (s *ChatHistoriesGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ChatHistoriesGroupBy) StringX(ctx context.Context) string
- func (s *ChatHistoriesGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ChatHistoriesGroupBy) StringsX(ctx context.Context) []string
- type ChatHistoriesMutation
- func (m *ChatHistoriesMutation) AddChatID(i int64)
- func (m *ChatHistoriesMutation) AddChattedAt(i int64)
- func (m *ChatHistoriesMutation) AddCreatedAt(i int64)
- func (m *ChatHistoriesMutation) AddField(name string, value ent.Value) error
- func (m *ChatHistoriesMutation) AddFromPlatform(i int)
- func (m *ChatHistoriesMutation) AddMessageID(i int64)
- func (m *ChatHistoriesMutation) AddRepliedToMessageID(i int64)
- func (m *ChatHistoriesMutation) AddRepliedToUserID(i int64)
- func (m *ChatHistoriesMutation) AddUpdatedAt(i int64)
- func (m *ChatHistoriesMutation) AddUserID(i int64)
- func (m *ChatHistoriesMutation) AddedChatID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) AddedChattedAt() (r int64, exists bool)
- func (m *ChatHistoriesMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *ChatHistoriesMutation) AddedEdges() []string
- func (m *ChatHistoriesMutation) AddedField(name string) (ent.Value, bool)
- func (m *ChatHistoriesMutation) AddedFields() []string
- func (m *ChatHistoriesMutation) AddedFromPlatform() (r int, exists bool)
- func (m *ChatHistoriesMutation) AddedIDs(name string) []ent.Value
- func (m *ChatHistoriesMutation) AddedMessageID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) AddedRepliedToMessageID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) AddedRepliedToUserID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *ChatHistoriesMutation) AddedUserID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) ChatID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) ChatTitle() (r string, exists bool)
- func (m *ChatHistoriesMutation) ChatType() (r string, exists bool)
- func (m *ChatHistoriesMutation) ChattedAt() (r int64, exists bool)
- func (m *ChatHistoriesMutation) ClearEdge(name string) error
- func (m *ChatHistoriesMutation) ClearField(name string) error
- func (m *ChatHistoriesMutation) ClearedEdges() []string
- func (m *ChatHistoriesMutation) ClearedFields() []string
- func (m ChatHistoriesMutation) Client() *Client
- func (m *ChatHistoriesMutation) CreatedAt() (r int64, exists bool)
- func (m *ChatHistoriesMutation) EdgeCleared(name string) bool
- func (m *ChatHistoriesMutation) Embedded() (r bool, exists bool)
- func (m *ChatHistoriesMutation) Field(name string) (ent.Value, bool)
- func (m *ChatHistoriesMutation) FieldCleared(name string) bool
- func (m *ChatHistoriesMutation) Fields() []string
- func (m *ChatHistoriesMutation) FromPlatform() (r int, exists bool)
- func (m *ChatHistoriesMutation) FullName() (r string, exists bool)
- func (m *ChatHistoriesMutation) ID() (id uuid.UUID, exists bool)
- func (m *ChatHistoriesMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *ChatHistoriesMutation) MessageID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) OldChatID(ctx context.Context) (v int64, err error)
- func (m *ChatHistoriesMutation) OldChatTitle(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) OldChatType(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) OldChattedAt(ctx context.Context) (v int64, err error)
- func (m *ChatHistoriesMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *ChatHistoriesMutation) OldEmbedded(ctx context.Context) (v bool, err error)
- func (m *ChatHistoriesMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ChatHistoriesMutation) OldFromPlatform(ctx context.Context) (v int, err error)
- func (m *ChatHistoriesMutation) OldFullName(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) OldMessageID(ctx context.Context) (v int64, err error)
- func (m *ChatHistoriesMutation) OldRepliedToChatType(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) OldRepliedToFullName(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) OldRepliedToMessageID(ctx context.Context) (v int64, err error)
- func (m *ChatHistoriesMutation) OldRepliedToText(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) OldRepliedToUserID(ctx context.Context) (v int64, err error)
- func (m *ChatHistoriesMutation) OldRepliedToUsername(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) OldText(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *ChatHistoriesMutation) OldUserID(ctx context.Context) (v int64, err error)
- func (m *ChatHistoriesMutation) OldUsername(ctx context.Context) (v string, err error)
- func (m *ChatHistoriesMutation) Op() Op
- func (m *ChatHistoriesMutation) RemovedEdges() []string
- func (m *ChatHistoriesMutation) RemovedIDs(name string) []ent.Value
- func (m *ChatHistoriesMutation) RepliedToChatType() (r string, exists bool)
- func (m *ChatHistoriesMutation) RepliedToFullName() (r string, exists bool)
- func (m *ChatHistoriesMutation) RepliedToMessageID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) RepliedToText() (r string, exists bool)
- func (m *ChatHistoriesMutation) RepliedToUserID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) RepliedToUsername() (r string, exists bool)
- func (m *ChatHistoriesMutation) ResetChatID()
- func (m *ChatHistoriesMutation) ResetChatTitle()
- func (m *ChatHistoriesMutation) ResetChatType()
- func (m *ChatHistoriesMutation) ResetChattedAt()
- func (m *ChatHistoriesMutation) ResetCreatedAt()
- func (m *ChatHistoriesMutation) ResetEdge(name string) error
- func (m *ChatHistoriesMutation) ResetEmbedded()
- func (m *ChatHistoriesMutation) ResetField(name string) error
- func (m *ChatHistoriesMutation) ResetFromPlatform()
- func (m *ChatHistoriesMutation) ResetFullName()
- func (m *ChatHistoriesMutation) ResetMessageID()
- func (m *ChatHistoriesMutation) ResetRepliedToChatType()
- func (m *ChatHistoriesMutation) ResetRepliedToFullName()
- func (m *ChatHistoriesMutation) ResetRepliedToMessageID()
- func (m *ChatHistoriesMutation) ResetRepliedToText()
- func (m *ChatHistoriesMutation) ResetRepliedToUserID()
- func (m *ChatHistoriesMutation) ResetRepliedToUsername()
- func (m *ChatHistoriesMutation) ResetText()
- func (m *ChatHistoriesMutation) ResetUpdatedAt()
- func (m *ChatHistoriesMutation) ResetUserID()
- func (m *ChatHistoriesMutation) ResetUsername()
- func (m *ChatHistoriesMutation) SetChatID(i int64)
- func (m *ChatHistoriesMutation) SetChatTitle(s string)
- func (m *ChatHistoriesMutation) SetChatType(s string)
- func (m *ChatHistoriesMutation) SetChattedAt(i int64)
- func (m *ChatHistoriesMutation) SetCreatedAt(i int64)
- func (m *ChatHistoriesMutation) SetEmbedded(b bool)
- func (m *ChatHistoriesMutation) SetField(name string, value ent.Value) error
- func (m *ChatHistoriesMutation) SetFromPlatform(i int)
- func (m *ChatHistoriesMutation) SetFullName(s string)
- func (m *ChatHistoriesMutation) SetID(id uuid.UUID)
- func (m *ChatHistoriesMutation) SetMessageID(i int64)
- func (m *ChatHistoriesMutation) SetOp(op Op)
- func (m *ChatHistoriesMutation) SetRepliedToChatType(s string)
- func (m *ChatHistoriesMutation) SetRepliedToFullName(s string)
- func (m *ChatHistoriesMutation) SetRepliedToMessageID(i int64)
- func (m *ChatHistoriesMutation) SetRepliedToText(s string)
- func (m *ChatHistoriesMutation) SetRepliedToUserID(i int64)
- func (m *ChatHistoriesMutation) SetRepliedToUsername(s string)
- func (m *ChatHistoriesMutation) SetText(s string)
- func (m *ChatHistoriesMutation) SetUpdatedAt(i int64)
- func (m *ChatHistoriesMutation) SetUserID(i int64)
- func (m *ChatHistoriesMutation) SetUsername(s string)
- func (m *ChatHistoriesMutation) Text() (r string, exists bool)
- func (m ChatHistoriesMutation) Tx() (*Tx, error)
- func (m *ChatHistoriesMutation) Type() string
- func (m *ChatHistoriesMutation) UpdatedAt() (r int64, exists bool)
- func (m *ChatHistoriesMutation) UserID() (r int64, exists bool)
- func (m *ChatHistoriesMutation) Username() (r string, exists bool)
- func (m *ChatHistoriesMutation) Where(ps ...predicate.ChatHistories)
- func (m *ChatHistoriesMutation) WhereP(ps ...func(*sql.Selector))
- type ChatHistoriesQuery
- func (chq *ChatHistoriesQuery) Aggregate(fns ...AggregateFunc) *ChatHistoriesSelect
- func (chq *ChatHistoriesQuery) All(ctx context.Context) ([]*ChatHistories, error)
- func (chq *ChatHistoriesQuery) AllX(ctx context.Context) []*ChatHistories
- func (chq *ChatHistoriesQuery) Clone() *ChatHistoriesQuery
- func (chq *ChatHistoriesQuery) Count(ctx context.Context) (int, error)
- func (chq *ChatHistoriesQuery) CountX(ctx context.Context) int
- func (chq *ChatHistoriesQuery) Exist(ctx context.Context) (bool, error)
- func (chq *ChatHistoriesQuery) ExistX(ctx context.Context) bool
- func (chq *ChatHistoriesQuery) First(ctx context.Context) (*ChatHistories, error)
- func (chq *ChatHistoriesQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (chq *ChatHistoriesQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (chq *ChatHistoriesQuery) FirstX(ctx context.Context) *ChatHistories
- func (chq *ChatHistoriesQuery) GroupBy(field string, fields ...string) *ChatHistoriesGroupBy
- func (chq *ChatHistoriesQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (chq *ChatHistoriesQuery) IDsX(ctx context.Context) []uuid.UUID
- func (chq *ChatHistoriesQuery) Limit(limit int) *ChatHistoriesQuery
- func (chq *ChatHistoriesQuery) Offset(offset int) *ChatHistoriesQuery
- func (chq *ChatHistoriesQuery) Only(ctx context.Context) (*ChatHistories, error)
- func (chq *ChatHistoriesQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (chq *ChatHistoriesQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (chq *ChatHistoriesQuery) OnlyX(ctx context.Context) *ChatHistories
- func (chq *ChatHistoriesQuery) Order(o ...chathistories.OrderOption) *ChatHistoriesQuery
- func (chq *ChatHistoriesQuery) Select(fields ...string) *ChatHistoriesSelect
- func (chq *ChatHistoriesQuery) Unique(unique bool) *ChatHistoriesQuery
- func (chq *ChatHistoriesQuery) Where(ps ...predicate.ChatHistories) *ChatHistoriesQuery
- type ChatHistoriesSelect
- func (chs *ChatHistoriesSelect) Aggregate(fns ...AggregateFunc) *ChatHistoriesSelect
- func (s *ChatHistoriesSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ChatHistoriesSelect) BoolX(ctx context.Context) bool
- func (s *ChatHistoriesSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ChatHistoriesSelect) BoolsX(ctx context.Context) []bool
- func (s *ChatHistoriesSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ChatHistoriesSelect) Float64X(ctx context.Context) float64
- func (s *ChatHistoriesSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ChatHistoriesSelect) Float64sX(ctx context.Context) []float64
- func (s *ChatHistoriesSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ChatHistoriesSelect) IntX(ctx context.Context) int
- func (s *ChatHistoriesSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ChatHistoriesSelect) IntsX(ctx context.Context) []int
- func (chs *ChatHistoriesSelect) Scan(ctx context.Context, v any) error
- func (s *ChatHistoriesSelect) ScanX(ctx context.Context, v any)
- func (s *ChatHistoriesSelect) String(ctx context.Context) (_ string, err error)
- func (s *ChatHistoriesSelect) StringX(ctx context.Context) string
- func (s *ChatHistoriesSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ChatHistoriesSelect) StringsX(ctx context.Context) []string
- type ChatHistoriesSlice
- type ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddChatID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddChattedAt(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddCreatedAt(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddFromPlatform(i int) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddMessageID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddRepliedToMessageID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddRepliedToUserID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddUpdatedAt(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) AddUserID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) Exec(ctx context.Context) error
- func (chu *ChatHistoriesUpdate) ExecX(ctx context.Context)
- func (chu *ChatHistoriesUpdate) Mutation() *ChatHistoriesMutation
- func (chu *ChatHistoriesUpdate) Save(ctx context.Context) (int, error)
- func (chu *ChatHistoriesUpdate) SaveX(ctx context.Context) int
- func (chu *ChatHistoriesUpdate) SetChatID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetChatTitle(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetChatType(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetChattedAt(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetCreatedAt(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetEmbedded(b bool) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetFromPlatform(i int) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetFullName(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetMessageID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableChatID(i *int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableChatTitle(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableChatType(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableChattedAt(i *int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableCreatedAt(i *int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableEmbedded(b *bool) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableFromPlatform(i *int) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableFullName(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableMessageID(i *int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableRepliedToChatType(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableRepliedToFullName(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableRepliedToMessageID(i *int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableRepliedToText(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableRepliedToUserID(i *int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableRepliedToUsername(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableText(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableUpdatedAt(i *int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableUserID(i *int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetNillableUsername(s *string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetRepliedToChatType(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetRepliedToFullName(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetRepliedToMessageID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetRepliedToText(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetRepliedToUserID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetRepliedToUsername(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetText(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetUpdatedAt(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetUserID(i int64) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) SetUsername(s string) *ChatHistoriesUpdate
- func (chu *ChatHistoriesUpdate) Where(ps ...predicate.ChatHistories) *ChatHistoriesUpdate
- type ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddChatID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddChattedAt(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddCreatedAt(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddFromPlatform(i int) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddMessageID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddRepliedToMessageID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddRepliedToUserID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddUpdatedAt(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) AddUserID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) Exec(ctx context.Context) error
- func (chuo *ChatHistoriesUpdateOne) ExecX(ctx context.Context)
- func (chuo *ChatHistoriesUpdateOne) Mutation() *ChatHistoriesMutation
- func (chuo *ChatHistoriesUpdateOne) Save(ctx context.Context) (*ChatHistories, error)
- func (chuo *ChatHistoriesUpdateOne) SaveX(ctx context.Context) *ChatHistories
- func (chuo *ChatHistoriesUpdateOne) Select(field string, fields ...string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetChatID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetChatTitle(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetChatType(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetChattedAt(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetCreatedAt(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetEmbedded(b bool) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetFromPlatform(i int) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetFullName(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetMessageID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableChatID(i *int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableChatTitle(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableChatType(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableChattedAt(i *int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableCreatedAt(i *int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableEmbedded(b *bool) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableFromPlatform(i *int) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableFullName(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableMessageID(i *int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToChatType(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToFullName(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToMessageID(i *int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToText(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToUserID(i *int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableRepliedToUsername(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableText(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableUpdatedAt(i *int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableUserID(i *int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetNillableUsername(s *string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetRepliedToChatType(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetRepliedToFullName(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetRepliedToMessageID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetRepliedToText(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetRepliedToUserID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetRepliedToUsername(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetText(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetUpdatedAt(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetUserID(i int64) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) SetUsername(s string) *ChatHistoriesUpdateOne
- func (chuo *ChatHistoriesUpdateOne) Where(ps ...predicate.ChatHistories) *ChatHistoriesUpdateOne
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Hook
- type InterceptFunc
- type Interceptor
- type LogChatHistoriesRecap
- type LogChatHistoriesRecapClient
- func (c *LogChatHistoriesRecapClient) Create() *LogChatHistoriesRecapCreate
- func (c *LogChatHistoriesRecapClient) CreateBulk(builders ...*LogChatHistoriesRecapCreate) *LogChatHistoriesRecapCreateBulk
- func (c *LogChatHistoriesRecapClient) Delete() *LogChatHistoriesRecapDelete
- func (c *LogChatHistoriesRecapClient) DeleteOne(lchr *LogChatHistoriesRecap) *LogChatHistoriesRecapDeleteOne
- func (c *LogChatHistoriesRecapClient) DeleteOneID(id uuid.UUID) *LogChatHistoriesRecapDeleteOne
- func (c *LogChatHistoriesRecapClient) Get(ctx context.Context, id uuid.UUID) (*LogChatHistoriesRecap, error)
- func (c *LogChatHistoriesRecapClient) GetX(ctx context.Context, id uuid.UUID) *LogChatHistoriesRecap
- func (c *LogChatHistoriesRecapClient) Hooks() []Hook
- func (c *LogChatHistoriesRecapClient) Intercept(interceptors ...Interceptor)
- func (c *LogChatHistoriesRecapClient) Interceptors() []Interceptor
- func (c *LogChatHistoriesRecapClient) Query() *LogChatHistoriesRecapQuery
- func (c *LogChatHistoriesRecapClient) Update() *LogChatHistoriesRecapUpdate
- func (c *LogChatHistoriesRecapClient) UpdateOne(lchr *LogChatHistoriesRecap) *LogChatHistoriesRecapUpdateOne
- func (c *LogChatHistoriesRecapClient) UpdateOneID(id uuid.UUID) *LogChatHistoriesRecapUpdateOne
- func (c *LogChatHistoriesRecapClient) Use(hooks ...Hook)
- type LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) Exec(ctx context.Context) error
- func (lchrc *LogChatHistoriesRecapCreate) ExecX(ctx context.Context)
- func (lchrc *LogChatHistoriesRecapCreate) Mutation() *LogChatHistoriesRecapMutation
- func (lchrc *LogChatHistoriesRecapCreate) Save(ctx context.Context) (*LogChatHistoriesRecap, error)
- func (lchrc *LogChatHistoriesRecapCreate) SaveX(ctx context.Context) *LogChatHistoriesRecap
- func (lchrc *LogChatHistoriesRecapCreate) SetChatID(i int64) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetCompletionTokenUsage(i int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetCreatedAt(i int64) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetFromPlatform(i int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetID(u uuid.UUID) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableChatID(i *int64) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableCompletionTokenUsage(i *int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableCreatedAt(i *int64) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableFromPlatform(i *int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableID(u *uuid.UUID) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillablePromptTokenUsage(i *int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableRecapInputs(s *string) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableRecapOutputs(s *string) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableRecapType(i *int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableTotalTokenUsage(i *int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetNillableUpdatedAt(i *int64) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetPromptTokenUsage(i int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetRecapInputs(s string) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetRecapOutputs(s string) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetRecapType(i int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetTotalTokenUsage(i int) *LogChatHistoriesRecapCreate
- func (lchrc *LogChatHistoriesRecapCreate) SetUpdatedAt(i int64) *LogChatHistoriesRecapCreate
- type LogChatHistoriesRecapCreateBulk
- func (lchrcb *LogChatHistoriesRecapCreateBulk) Exec(ctx context.Context) error
- func (lchrcb *LogChatHistoriesRecapCreateBulk) ExecX(ctx context.Context)
- func (lchrcb *LogChatHistoriesRecapCreateBulk) Save(ctx context.Context) ([]*LogChatHistoriesRecap, error)
- func (lchrcb *LogChatHistoriesRecapCreateBulk) SaveX(ctx context.Context) []*LogChatHistoriesRecap
- type LogChatHistoriesRecapDelete
- type LogChatHistoriesRecapDeleteOne
- type LogChatHistoriesRecapGroupBy
- func (lchrgb *LogChatHistoriesRecapGroupBy) Aggregate(fns ...AggregateFunc) *LogChatHistoriesRecapGroupBy
- func (s *LogChatHistoriesRecapGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *LogChatHistoriesRecapGroupBy) BoolX(ctx context.Context) bool
- func (s *LogChatHistoriesRecapGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *LogChatHistoriesRecapGroupBy) BoolsX(ctx context.Context) []bool
- func (s *LogChatHistoriesRecapGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *LogChatHistoriesRecapGroupBy) Float64X(ctx context.Context) float64
- func (s *LogChatHistoriesRecapGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *LogChatHistoriesRecapGroupBy) Float64sX(ctx context.Context) []float64
- func (s *LogChatHistoriesRecapGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *LogChatHistoriesRecapGroupBy) IntX(ctx context.Context) int
- func (s *LogChatHistoriesRecapGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *LogChatHistoriesRecapGroupBy) IntsX(ctx context.Context) []int
- func (lchrgb *LogChatHistoriesRecapGroupBy) Scan(ctx context.Context, v any) error
- func (s *LogChatHistoriesRecapGroupBy) ScanX(ctx context.Context, v any)
- func (s *LogChatHistoriesRecapGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *LogChatHistoriesRecapGroupBy) StringX(ctx context.Context) string
- func (s *LogChatHistoriesRecapGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *LogChatHistoriesRecapGroupBy) StringsX(ctx context.Context) []string
- type LogChatHistoriesRecapMutation
- func (m *LogChatHistoriesRecapMutation) AddChatID(i int64)
- func (m *LogChatHistoriesRecapMutation) AddCompletionTokenUsage(i int)
- func (m *LogChatHistoriesRecapMutation) AddCreatedAt(i int64)
- func (m *LogChatHistoriesRecapMutation) AddField(name string, value ent.Value) error
- func (m *LogChatHistoriesRecapMutation) AddFromPlatform(i int)
- func (m *LogChatHistoriesRecapMutation) AddPromptTokenUsage(i int)
- func (m *LogChatHistoriesRecapMutation) AddRecapType(i int)
- func (m *LogChatHistoriesRecapMutation) AddTotalTokenUsage(i int)
- func (m *LogChatHistoriesRecapMutation) AddUpdatedAt(i int64)
- func (m *LogChatHistoriesRecapMutation) AddedChatID() (r int64, exists bool)
- func (m *LogChatHistoriesRecapMutation) AddedCompletionTokenUsage() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *LogChatHistoriesRecapMutation) AddedEdges() []string
- func (m *LogChatHistoriesRecapMutation) AddedField(name string) (ent.Value, bool)
- func (m *LogChatHistoriesRecapMutation) AddedFields() []string
- func (m *LogChatHistoriesRecapMutation) AddedFromPlatform() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) AddedIDs(name string) []ent.Value
- func (m *LogChatHistoriesRecapMutation) AddedPromptTokenUsage() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) AddedRecapType() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) AddedTotalTokenUsage() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *LogChatHistoriesRecapMutation) ChatID() (r int64, exists bool)
- func (m *LogChatHistoriesRecapMutation) ClearEdge(name string) error
- func (m *LogChatHistoriesRecapMutation) ClearField(name string) error
- func (m *LogChatHistoriesRecapMutation) ClearedEdges() []string
- func (m *LogChatHistoriesRecapMutation) ClearedFields() []string
- func (m LogChatHistoriesRecapMutation) Client() *Client
- func (m *LogChatHistoriesRecapMutation) CompletionTokenUsage() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) CreatedAt() (r int64, exists bool)
- func (m *LogChatHistoriesRecapMutation) EdgeCleared(name string) bool
- func (m *LogChatHistoriesRecapMutation) Field(name string) (ent.Value, bool)
- func (m *LogChatHistoriesRecapMutation) FieldCleared(name string) bool
- func (m *LogChatHistoriesRecapMutation) Fields() []string
- func (m *LogChatHistoriesRecapMutation) FromPlatform() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) ID() (id uuid.UUID, exists bool)
- func (m *LogChatHistoriesRecapMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *LogChatHistoriesRecapMutation) OldChatID(ctx context.Context) (v int64, err error)
- func (m *LogChatHistoriesRecapMutation) OldCompletionTokenUsage(ctx context.Context) (v int, err error)
- func (m *LogChatHistoriesRecapMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *LogChatHistoriesRecapMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *LogChatHistoriesRecapMutation) OldFromPlatform(ctx context.Context) (v int, err error)
- func (m *LogChatHistoriesRecapMutation) OldPromptTokenUsage(ctx context.Context) (v int, err error)
- func (m *LogChatHistoriesRecapMutation) OldRecapInputs(ctx context.Context) (v string, err error)
- func (m *LogChatHistoriesRecapMutation) OldRecapOutputs(ctx context.Context) (v string, err error)
- func (m *LogChatHistoriesRecapMutation) OldRecapType(ctx context.Context) (v int, err error)
- func (m *LogChatHistoriesRecapMutation) OldTotalTokenUsage(ctx context.Context) (v int, err error)
- func (m *LogChatHistoriesRecapMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *LogChatHistoriesRecapMutation) Op() Op
- func (m *LogChatHistoriesRecapMutation) PromptTokenUsage() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) RecapInputs() (r string, exists bool)
- func (m *LogChatHistoriesRecapMutation) RecapOutputs() (r string, exists bool)
- func (m *LogChatHistoriesRecapMutation) RecapType() (r int, exists bool)
- func (m *LogChatHistoriesRecapMutation) RemovedEdges() []string
- func (m *LogChatHistoriesRecapMutation) RemovedIDs(name string) []ent.Value
- func (m *LogChatHistoriesRecapMutation) ResetChatID()
- func (m *LogChatHistoriesRecapMutation) ResetCompletionTokenUsage()
- func (m *LogChatHistoriesRecapMutation) ResetCreatedAt()
- func (m *LogChatHistoriesRecapMutation) ResetEdge(name string) error
- func (m *LogChatHistoriesRecapMutation) ResetField(name string) error
- func (m *LogChatHistoriesRecapMutation) ResetFromPlatform()
- func (m *LogChatHistoriesRecapMutation) ResetPromptTokenUsage()
- func (m *LogChatHistoriesRecapMutation) ResetRecapInputs()
- func (m *LogChatHistoriesRecapMutation) ResetRecapOutputs()
- func (m *LogChatHistoriesRecapMutation) ResetRecapType()
- func (m *LogChatHistoriesRecapMutation) ResetTotalTokenUsage()
- func (m *LogChatHistoriesRecapMutation) ResetUpdatedAt()
- func (m *LogChatHistoriesRecapMutation) SetChatID(i int64)
- func (m *LogChatHistoriesRecapMutation) SetCompletionTokenUsage(i int)
- func (m *LogChatHistoriesRecapMutation) SetCreatedAt(i int64)
- func (m *LogChatHistoriesRecapMutation) SetField(name string, value ent.Value) error
- func (m *LogChatHistoriesRecapMutation) SetFromPlatform(i int)
- func (m *LogChatHistoriesRecapMutation) SetID(id uuid.UUID)
- func (m *LogChatHistoriesRecapMutation) SetOp(op Op)
- func (m *LogChatHistoriesRecapMutation) SetPromptTokenUsage(i int)
- func (m *LogChatHistoriesRecapMutation) SetRecapInputs(s string)
- func (m *LogChatHistoriesRecapMutation) SetRecapOutputs(s string)
- func (m *LogChatHistoriesRecapMutation) SetRecapType(i int)
- func (m *LogChatHistoriesRecapMutation) SetTotalTokenUsage(i int)
- func (m *LogChatHistoriesRecapMutation) SetUpdatedAt(i int64)
- func (m *LogChatHistoriesRecapMutation) TotalTokenUsage() (r int, exists bool)
- func (m LogChatHistoriesRecapMutation) Tx() (*Tx, error)
- func (m *LogChatHistoriesRecapMutation) Type() string
- func (m *LogChatHistoriesRecapMutation) UpdatedAt() (r int64, exists bool)
- func (m *LogChatHistoriesRecapMutation) Where(ps ...predicate.LogChatHistoriesRecap)
- func (m *LogChatHistoriesRecapMutation) WhereP(ps ...func(*sql.Selector))
- type LogChatHistoriesRecapQuery
- func (lchrq *LogChatHistoriesRecapQuery) Aggregate(fns ...AggregateFunc) *LogChatHistoriesRecapSelect
- func (lchrq *LogChatHistoriesRecapQuery) All(ctx context.Context) ([]*LogChatHistoriesRecap, error)
- func (lchrq *LogChatHistoriesRecapQuery) AllX(ctx context.Context) []*LogChatHistoriesRecap
- func (lchrq *LogChatHistoriesRecapQuery) Clone() *LogChatHistoriesRecapQuery
- func (lchrq *LogChatHistoriesRecapQuery) Count(ctx context.Context) (int, error)
- func (lchrq *LogChatHistoriesRecapQuery) CountX(ctx context.Context) int
- func (lchrq *LogChatHistoriesRecapQuery) Exist(ctx context.Context) (bool, error)
- func (lchrq *LogChatHistoriesRecapQuery) ExistX(ctx context.Context) bool
- func (lchrq *LogChatHistoriesRecapQuery) First(ctx context.Context) (*LogChatHistoriesRecap, error)
- func (lchrq *LogChatHistoriesRecapQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (lchrq *LogChatHistoriesRecapQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (lchrq *LogChatHistoriesRecapQuery) FirstX(ctx context.Context) *LogChatHistoriesRecap
- func (lchrq *LogChatHistoriesRecapQuery) GroupBy(field string, fields ...string) *LogChatHistoriesRecapGroupBy
- func (lchrq *LogChatHistoriesRecapQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (lchrq *LogChatHistoriesRecapQuery) IDsX(ctx context.Context) []uuid.UUID
- func (lchrq *LogChatHistoriesRecapQuery) Limit(limit int) *LogChatHistoriesRecapQuery
- func (lchrq *LogChatHistoriesRecapQuery) Offset(offset int) *LogChatHistoriesRecapQuery
- func (lchrq *LogChatHistoriesRecapQuery) Only(ctx context.Context) (*LogChatHistoriesRecap, error)
- func (lchrq *LogChatHistoriesRecapQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (lchrq *LogChatHistoriesRecapQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (lchrq *LogChatHistoriesRecapQuery) OnlyX(ctx context.Context) *LogChatHistoriesRecap
- func (lchrq *LogChatHistoriesRecapQuery) Order(o ...logchathistoriesrecap.OrderOption) *LogChatHistoriesRecapQuery
- func (lchrq *LogChatHistoriesRecapQuery) Select(fields ...string) *LogChatHistoriesRecapSelect
- func (lchrq *LogChatHistoriesRecapQuery) Unique(unique bool) *LogChatHistoriesRecapQuery
- func (lchrq *LogChatHistoriesRecapQuery) Where(ps ...predicate.LogChatHistoriesRecap) *LogChatHistoriesRecapQuery
- type LogChatHistoriesRecapSelect
- func (lchrs *LogChatHistoriesRecapSelect) Aggregate(fns ...AggregateFunc) *LogChatHistoriesRecapSelect
- func (s *LogChatHistoriesRecapSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *LogChatHistoriesRecapSelect) BoolX(ctx context.Context) bool
- func (s *LogChatHistoriesRecapSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *LogChatHistoriesRecapSelect) BoolsX(ctx context.Context) []bool
- func (s *LogChatHistoriesRecapSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *LogChatHistoriesRecapSelect) Float64X(ctx context.Context) float64
- func (s *LogChatHistoriesRecapSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *LogChatHistoriesRecapSelect) Float64sX(ctx context.Context) []float64
- func (s *LogChatHistoriesRecapSelect) Int(ctx context.Context) (_ int, err error)
- func (s *LogChatHistoriesRecapSelect) IntX(ctx context.Context) int
- func (s *LogChatHistoriesRecapSelect) Ints(ctx context.Context) ([]int, error)
- func (s *LogChatHistoriesRecapSelect) IntsX(ctx context.Context) []int
- func (lchrs *LogChatHistoriesRecapSelect) Scan(ctx context.Context, v any) error
- func (s *LogChatHistoriesRecapSelect) ScanX(ctx context.Context, v any)
- func (s *LogChatHistoriesRecapSelect) String(ctx context.Context) (_ string, err error)
- func (s *LogChatHistoriesRecapSelect) StringX(ctx context.Context) string
- func (s *LogChatHistoriesRecapSelect) Strings(ctx context.Context) ([]string, error)
- func (s *LogChatHistoriesRecapSelect) StringsX(ctx context.Context) []string
- type LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) AddChatID(i int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) AddCompletionTokenUsage(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) AddCreatedAt(i int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) AddFromPlatform(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) AddPromptTokenUsage(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) AddRecapType(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) AddTotalTokenUsage(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) AddUpdatedAt(i int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) Exec(ctx context.Context) error
- func (lchru *LogChatHistoriesRecapUpdate) ExecX(ctx context.Context)
- func (lchru *LogChatHistoriesRecapUpdate) Mutation() *LogChatHistoriesRecapMutation
- func (lchru *LogChatHistoriesRecapUpdate) Save(ctx context.Context) (int, error)
- func (lchru *LogChatHistoriesRecapUpdate) SaveX(ctx context.Context) int
- func (lchru *LogChatHistoriesRecapUpdate) SetChatID(i int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetCompletionTokenUsage(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetCreatedAt(i int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetFromPlatform(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableChatID(i *int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableCompletionTokenUsage(i *int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableCreatedAt(i *int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableFromPlatform(i *int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillablePromptTokenUsage(i *int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableRecapInputs(s *string) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableRecapOutputs(s *string) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableRecapType(i *int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableTotalTokenUsage(i *int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetNillableUpdatedAt(i *int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetPromptTokenUsage(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetRecapInputs(s string) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetRecapOutputs(s string) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetRecapType(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetTotalTokenUsage(i int) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) SetUpdatedAt(i int64) *LogChatHistoriesRecapUpdate
- func (lchru *LogChatHistoriesRecapUpdate) Where(ps ...predicate.LogChatHistoriesRecap) *LogChatHistoriesRecapUpdate
- type LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) AddChatID(i int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) AddCompletionTokenUsage(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) AddCreatedAt(i int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) AddFromPlatform(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) AddPromptTokenUsage(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) AddRecapType(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) AddTotalTokenUsage(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) AddUpdatedAt(i int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) Exec(ctx context.Context) error
- func (lchruo *LogChatHistoriesRecapUpdateOne) ExecX(ctx context.Context)
- func (lchruo *LogChatHistoriesRecapUpdateOne) Mutation() *LogChatHistoriesRecapMutation
- func (lchruo *LogChatHistoriesRecapUpdateOne) Save(ctx context.Context) (*LogChatHistoriesRecap, error)
- func (lchruo *LogChatHistoriesRecapUpdateOne) SaveX(ctx context.Context) *LogChatHistoriesRecap
- func (lchruo *LogChatHistoriesRecapUpdateOne) Select(field string, fields ...string) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetChatID(i int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetCompletionTokenUsage(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetCreatedAt(i int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetFromPlatform(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableChatID(i *int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableCompletionTokenUsage(i *int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableCreatedAt(i *int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableFromPlatform(i *int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillablePromptTokenUsage(i *int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableRecapInputs(s *string) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableRecapOutputs(s *string) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableRecapType(i *int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableTotalTokenUsage(i *int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableUpdatedAt(i *int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetPromptTokenUsage(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetRecapInputs(s string) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetRecapOutputs(s string) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetRecapType(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetTotalTokenUsage(i int) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) SetUpdatedAt(i int64) *LogChatHistoriesRecapUpdateOne
- func (lchruo *LogChatHistoriesRecapUpdateOne) Where(ps ...predicate.LogChatHistoriesRecap) *LogChatHistoriesRecapUpdateOne
- type LogChatHistoriesRecaps
- type LogSummarizations
- type LogSummarizationsClient
- func (c *LogSummarizationsClient) Create() *LogSummarizationsCreate
- func (c *LogSummarizationsClient) CreateBulk(builders ...*LogSummarizationsCreate) *LogSummarizationsCreateBulk
- func (c *LogSummarizationsClient) Delete() *LogSummarizationsDelete
- func (c *LogSummarizationsClient) DeleteOne(ls *LogSummarizations) *LogSummarizationsDeleteOne
- func (c *LogSummarizationsClient) DeleteOneID(id uuid.UUID) *LogSummarizationsDeleteOne
- func (c *LogSummarizationsClient) Get(ctx context.Context, id uuid.UUID) (*LogSummarizations, error)
- func (c *LogSummarizationsClient) GetX(ctx context.Context, id uuid.UUID) *LogSummarizations
- func (c *LogSummarizationsClient) Hooks() []Hook
- func (c *LogSummarizationsClient) Intercept(interceptors ...Interceptor)
- func (c *LogSummarizationsClient) Interceptors() []Interceptor
- func (c *LogSummarizationsClient) Query() *LogSummarizationsQuery
- func (c *LogSummarizationsClient) Update() *LogSummarizationsUpdate
- func (c *LogSummarizationsClient) UpdateOne(ls *LogSummarizations) *LogSummarizationsUpdateOne
- func (c *LogSummarizationsClient) UpdateOneID(id uuid.UUID) *LogSummarizationsUpdateOne
- func (c *LogSummarizationsClient) Use(hooks ...Hook)
- type LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) Exec(ctx context.Context) error
- func (lsc *LogSummarizationsCreate) ExecX(ctx context.Context)
- func (lsc *LogSummarizationsCreate) Mutation() *LogSummarizationsMutation
- func (lsc *LogSummarizationsCreate) Save(ctx context.Context) (*LogSummarizations, error)
- func (lsc *LogSummarizationsCreate) SaveX(ctx context.Context) *LogSummarizations
- func (lsc *LogSummarizationsCreate) SetCompletionTokenUsage(i int) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetContentAuthor(s string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetContentSummarizedOutputs(s string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetContentText(s string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetContentTitle(s string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetContentURL(s string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetCreatedAt(i int64) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetFromPlatform(i int) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetID(u uuid.UUID) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableCompletionTokenUsage(i *int) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableContentAuthor(s *string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableContentSummarizedOutputs(s *string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableContentText(s *string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableContentTitle(s *string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableContentURL(s *string) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableCreatedAt(i *int64) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableFromPlatform(i *int) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableID(u *uuid.UUID) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillablePromptTokenUsage(i *int) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableTotalTokenUsage(i *int) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetNillableUpdatedAt(i *int64) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetPromptTokenUsage(i int) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetTotalTokenUsage(i int) *LogSummarizationsCreate
- func (lsc *LogSummarizationsCreate) SetUpdatedAt(i int64) *LogSummarizationsCreate
- type LogSummarizationsCreateBulk
- func (lscb *LogSummarizationsCreateBulk) Exec(ctx context.Context) error
- func (lscb *LogSummarizationsCreateBulk) ExecX(ctx context.Context)
- func (lscb *LogSummarizationsCreateBulk) Save(ctx context.Context) ([]*LogSummarizations, error)
- func (lscb *LogSummarizationsCreateBulk) SaveX(ctx context.Context) []*LogSummarizations
- type LogSummarizationsDelete
- type LogSummarizationsDeleteOne
- type LogSummarizationsGroupBy
- func (lsgb *LogSummarizationsGroupBy) Aggregate(fns ...AggregateFunc) *LogSummarizationsGroupBy
- func (s *LogSummarizationsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *LogSummarizationsGroupBy) BoolX(ctx context.Context) bool
- func (s *LogSummarizationsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *LogSummarizationsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *LogSummarizationsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *LogSummarizationsGroupBy) Float64X(ctx context.Context) float64
- func (s *LogSummarizationsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *LogSummarizationsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *LogSummarizationsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *LogSummarizationsGroupBy) IntX(ctx context.Context) int
- func (s *LogSummarizationsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *LogSummarizationsGroupBy) IntsX(ctx context.Context) []int
- func (lsgb *LogSummarizationsGroupBy) Scan(ctx context.Context, v any) error
- func (s *LogSummarizationsGroupBy) ScanX(ctx context.Context, v any)
- func (s *LogSummarizationsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *LogSummarizationsGroupBy) StringX(ctx context.Context) string
- func (s *LogSummarizationsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *LogSummarizationsGroupBy) StringsX(ctx context.Context) []string
- type LogSummarizationsMutation
- func (m *LogSummarizationsMutation) AddCompletionTokenUsage(i int)
- func (m *LogSummarizationsMutation) AddCreatedAt(i int64)
- func (m *LogSummarizationsMutation) AddField(name string, value ent.Value) error
- func (m *LogSummarizationsMutation) AddFromPlatform(i int)
- func (m *LogSummarizationsMutation) AddPromptTokenUsage(i int)
- func (m *LogSummarizationsMutation) AddTotalTokenUsage(i int)
- func (m *LogSummarizationsMutation) AddUpdatedAt(i int64)
- func (m *LogSummarizationsMutation) AddedCompletionTokenUsage() (r int, exists bool)
- func (m *LogSummarizationsMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *LogSummarizationsMutation) AddedEdges() []string
- func (m *LogSummarizationsMutation) AddedField(name string) (ent.Value, bool)
- func (m *LogSummarizationsMutation) AddedFields() []string
- func (m *LogSummarizationsMutation) AddedFromPlatform() (r int, exists bool)
- func (m *LogSummarizationsMutation) AddedIDs(name string) []ent.Value
- func (m *LogSummarizationsMutation) AddedPromptTokenUsage() (r int, exists bool)
- func (m *LogSummarizationsMutation) AddedTotalTokenUsage() (r int, exists bool)
- func (m *LogSummarizationsMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *LogSummarizationsMutation) ClearEdge(name string) error
- func (m *LogSummarizationsMutation) ClearField(name string) error
- func (m *LogSummarizationsMutation) ClearedEdges() []string
- func (m *LogSummarizationsMutation) ClearedFields() []string
- func (m LogSummarizationsMutation) Client() *Client
- func (m *LogSummarizationsMutation) CompletionTokenUsage() (r int, exists bool)
- func (m *LogSummarizationsMutation) ContentAuthor() (r string, exists bool)
- func (m *LogSummarizationsMutation) ContentSummarizedOutputs() (r string, exists bool)
- func (m *LogSummarizationsMutation) ContentText() (r string, exists bool)
- func (m *LogSummarizationsMutation) ContentTitle() (r string, exists bool)
- func (m *LogSummarizationsMutation) ContentURL() (r string, exists bool)
- func (m *LogSummarizationsMutation) CreatedAt() (r int64, exists bool)
- func (m *LogSummarizationsMutation) EdgeCleared(name string) bool
- func (m *LogSummarizationsMutation) Field(name string) (ent.Value, bool)
- func (m *LogSummarizationsMutation) FieldCleared(name string) bool
- func (m *LogSummarizationsMutation) Fields() []string
- func (m *LogSummarizationsMutation) FromPlatform() (r int, exists bool)
- func (m *LogSummarizationsMutation) ID() (id uuid.UUID, exists bool)
- func (m *LogSummarizationsMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *LogSummarizationsMutation) OldCompletionTokenUsage(ctx context.Context) (v int, err error)
- func (m *LogSummarizationsMutation) OldContentAuthor(ctx context.Context) (v string, err error)
- func (m *LogSummarizationsMutation) OldContentSummarizedOutputs(ctx context.Context) (v string, err error)
- func (m *LogSummarizationsMutation) OldContentText(ctx context.Context) (v string, err error)
- func (m *LogSummarizationsMutation) OldContentTitle(ctx context.Context) (v string, err error)
- func (m *LogSummarizationsMutation) OldContentURL(ctx context.Context) (v string, err error)
- func (m *LogSummarizationsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *LogSummarizationsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *LogSummarizationsMutation) OldFromPlatform(ctx context.Context) (v int, err error)
- func (m *LogSummarizationsMutation) OldPromptTokenUsage(ctx context.Context) (v int, err error)
- func (m *LogSummarizationsMutation) OldTotalTokenUsage(ctx context.Context) (v int, err error)
- func (m *LogSummarizationsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *LogSummarizationsMutation) Op() Op
- func (m *LogSummarizationsMutation) PromptTokenUsage() (r int, exists bool)
- func (m *LogSummarizationsMutation) RemovedEdges() []string
- func (m *LogSummarizationsMutation) RemovedIDs(name string) []ent.Value
- func (m *LogSummarizationsMutation) ResetCompletionTokenUsage()
- func (m *LogSummarizationsMutation) ResetContentAuthor()
- func (m *LogSummarizationsMutation) ResetContentSummarizedOutputs()
- func (m *LogSummarizationsMutation) ResetContentText()
- func (m *LogSummarizationsMutation) ResetContentTitle()
- func (m *LogSummarizationsMutation) ResetContentURL()
- func (m *LogSummarizationsMutation) ResetCreatedAt()
- func (m *LogSummarizationsMutation) ResetEdge(name string) error
- func (m *LogSummarizationsMutation) ResetField(name string) error
- func (m *LogSummarizationsMutation) ResetFromPlatform()
- func (m *LogSummarizationsMutation) ResetPromptTokenUsage()
- func (m *LogSummarizationsMutation) ResetTotalTokenUsage()
- func (m *LogSummarizationsMutation) ResetUpdatedAt()
- func (m *LogSummarizationsMutation) SetCompletionTokenUsage(i int)
- func (m *LogSummarizationsMutation) SetContentAuthor(s string)
- func (m *LogSummarizationsMutation) SetContentSummarizedOutputs(s string)
- func (m *LogSummarizationsMutation) SetContentText(s string)
- func (m *LogSummarizationsMutation) SetContentTitle(s string)
- func (m *LogSummarizationsMutation) SetContentURL(s string)
- func (m *LogSummarizationsMutation) SetCreatedAt(i int64)
- func (m *LogSummarizationsMutation) SetField(name string, value ent.Value) error
- func (m *LogSummarizationsMutation) SetFromPlatform(i int)
- func (m *LogSummarizationsMutation) SetID(id uuid.UUID)
- func (m *LogSummarizationsMutation) SetOp(op Op)
- func (m *LogSummarizationsMutation) SetPromptTokenUsage(i int)
- func (m *LogSummarizationsMutation) SetTotalTokenUsage(i int)
- func (m *LogSummarizationsMutation) SetUpdatedAt(i int64)
- func (m *LogSummarizationsMutation) TotalTokenUsage() (r int, exists bool)
- func (m LogSummarizationsMutation) Tx() (*Tx, error)
- func (m *LogSummarizationsMutation) Type() string
- func (m *LogSummarizationsMutation) UpdatedAt() (r int64, exists bool)
- func (m *LogSummarizationsMutation) Where(ps ...predicate.LogSummarizations)
- func (m *LogSummarizationsMutation) WhereP(ps ...func(*sql.Selector))
- type LogSummarizationsQuery
- func (lsq *LogSummarizationsQuery) Aggregate(fns ...AggregateFunc) *LogSummarizationsSelect
- func (lsq *LogSummarizationsQuery) All(ctx context.Context) ([]*LogSummarizations, error)
- func (lsq *LogSummarizationsQuery) AllX(ctx context.Context) []*LogSummarizations
- func (lsq *LogSummarizationsQuery) Clone() *LogSummarizationsQuery
- func (lsq *LogSummarizationsQuery) Count(ctx context.Context) (int, error)
- func (lsq *LogSummarizationsQuery) CountX(ctx context.Context) int
- func (lsq *LogSummarizationsQuery) Exist(ctx context.Context) (bool, error)
- func (lsq *LogSummarizationsQuery) ExistX(ctx context.Context) bool
- func (lsq *LogSummarizationsQuery) First(ctx context.Context) (*LogSummarizations, error)
- func (lsq *LogSummarizationsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (lsq *LogSummarizationsQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (lsq *LogSummarizationsQuery) FirstX(ctx context.Context) *LogSummarizations
- func (lsq *LogSummarizationsQuery) GroupBy(field string, fields ...string) *LogSummarizationsGroupBy
- func (lsq *LogSummarizationsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (lsq *LogSummarizationsQuery) IDsX(ctx context.Context) []uuid.UUID
- func (lsq *LogSummarizationsQuery) Limit(limit int) *LogSummarizationsQuery
- func (lsq *LogSummarizationsQuery) Offset(offset int) *LogSummarizationsQuery
- func (lsq *LogSummarizationsQuery) Only(ctx context.Context) (*LogSummarizations, error)
- func (lsq *LogSummarizationsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (lsq *LogSummarizationsQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (lsq *LogSummarizationsQuery) OnlyX(ctx context.Context) *LogSummarizations
- func (lsq *LogSummarizationsQuery) Order(o ...logsummarizations.OrderOption) *LogSummarizationsQuery
- func (lsq *LogSummarizationsQuery) Select(fields ...string) *LogSummarizationsSelect
- func (lsq *LogSummarizationsQuery) Unique(unique bool) *LogSummarizationsQuery
- func (lsq *LogSummarizationsQuery) Where(ps ...predicate.LogSummarizations) *LogSummarizationsQuery
- type LogSummarizationsSelect
- func (lss *LogSummarizationsSelect) Aggregate(fns ...AggregateFunc) *LogSummarizationsSelect
- func (s *LogSummarizationsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *LogSummarizationsSelect) BoolX(ctx context.Context) bool
- func (s *LogSummarizationsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *LogSummarizationsSelect) BoolsX(ctx context.Context) []bool
- func (s *LogSummarizationsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *LogSummarizationsSelect) Float64X(ctx context.Context) float64
- func (s *LogSummarizationsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *LogSummarizationsSelect) Float64sX(ctx context.Context) []float64
- func (s *LogSummarizationsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *LogSummarizationsSelect) IntX(ctx context.Context) int
- func (s *LogSummarizationsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *LogSummarizationsSelect) IntsX(ctx context.Context) []int
- func (lss *LogSummarizationsSelect) Scan(ctx context.Context, v any) error
- func (s *LogSummarizationsSelect) ScanX(ctx context.Context, v any)
- func (s *LogSummarizationsSelect) String(ctx context.Context) (_ string, err error)
- func (s *LogSummarizationsSelect) StringX(ctx context.Context) string
- func (s *LogSummarizationsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *LogSummarizationsSelect) StringsX(ctx context.Context) []string
- type LogSummarizationsSlice
- type LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) AddCompletionTokenUsage(i int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) AddCreatedAt(i int64) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) AddFromPlatform(i int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) AddPromptTokenUsage(i int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) AddTotalTokenUsage(i int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) AddUpdatedAt(i int64) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) Exec(ctx context.Context) error
- func (lsu *LogSummarizationsUpdate) ExecX(ctx context.Context)
- func (lsu *LogSummarizationsUpdate) Mutation() *LogSummarizationsMutation
- func (lsu *LogSummarizationsUpdate) Save(ctx context.Context) (int, error)
- func (lsu *LogSummarizationsUpdate) SaveX(ctx context.Context) int
- func (lsu *LogSummarizationsUpdate) SetCompletionTokenUsage(i int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetContentAuthor(s string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetContentSummarizedOutputs(s string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetContentText(s string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetContentTitle(s string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetContentURL(s string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetCreatedAt(i int64) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetFromPlatform(i int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableCompletionTokenUsage(i *int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableContentAuthor(s *string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableContentSummarizedOutputs(s *string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableContentText(s *string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableContentTitle(s *string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableContentURL(s *string) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableCreatedAt(i *int64) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableFromPlatform(i *int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillablePromptTokenUsage(i *int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableTotalTokenUsage(i *int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetNillableUpdatedAt(i *int64) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetPromptTokenUsage(i int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetTotalTokenUsage(i int) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) SetUpdatedAt(i int64) *LogSummarizationsUpdate
- func (lsu *LogSummarizationsUpdate) Where(ps ...predicate.LogSummarizations) *LogSummarizationsUpdate
- type LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) AddCompletionTokenUsage(i int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) AddCreatedAt(i int64) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) AddFromPlatform(i int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) AddPromptTokenUsage(i int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) AddTotalTokenUsage(i int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) AddUpdatedAt(i int64) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) Exec(ctx context.Context) error
- func (lsuo *LogSummarizationsUpdateOne) ExecX(ctx context.Context)
- func (lsuo *LogSummarizationsUpdateOne) Mutation() *LogSummarizationsMutation
- func (lsuo *LogSummarizationsUpdateOne) Save(ctx context.Context) (*LogSummarizations, error)
- func (lsuo *LogSummarizationsUpdateOne) SaveX(ctx context.Context) *LogSummarizations
- func (lsuo *LogSummarizationsUpdateOne) Select(field string, fields ...string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetCompletionTokenUsage(i int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetContentAuthor(s string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetContentSummarizedOutputs(s string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetContentText(s string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetContentTitle(s string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetContentURL(s string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetCreatedAt(i int64) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetFromPlatform(i int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableCompletionTokenUsage(i *int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableContentAuthor(s *string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableContentSummarizedOutputs(s *string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableContentText(s *string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableContentTitle(s *string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableContentURL(s *string) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableCreatedAt(i *int64) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableFromPlatform(i *int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillablePromptTokenUsage(i *int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableTotalTokenUsage(i *int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetNillableUpdatedAt(i *int64) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetPromptTokenUsage(i int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetTotalTokenUsage(i int) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) SetUpdatedAt(i int64) *LogSummarizationsUpdateOne
- func (lsuo *LogSummarizationsUpdateOne) Where(ps ...predicate.LogSummarizations) *LogSummarizationsUpdateOne
- type MetricOpenAIChatCompletionTokenUsage
- func (moacctu *MetricOpenAIChatCompletionTokenUsage) String() string
- func (moacctu *MetricOpenAIChatCompletionTokenUsage) Unwrap() *MetricOpenAIChatCompletionTokenUsage
- func (moacctu *MetricOpenAIChatCompletionTokenUsage) Update() *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctu *MetricOpenAIChatCompletionTokenUsage) Value(name string) (ent.Value, error)
- type MetricOpenAIChatCompletionTokenUsageClient
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Create() *MetricOpenAIChatCompletionTokenUsageCreate
- func (c *MetricOpenAIChatCompletionTokenUsageClient) CreateBulk(builders ...*MetricOpenAIChatCompletionTokenUsageCreate) *MetricOpenAIChatCompletionTokenUsageCreateBulk
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Delete() *MetricOpenAIChatCompletionTokenUsageDelete
- func (c *MetricOpenAIChatCompletionTokenUsageClient) DeleteOne(moacctu *MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageDeleteOne
- func (c *MetricOpenAIChatCompletionTokenUsageClient) DeleteOneID(id uuid.UUID) *MetricOpenAIChatCompletionTokenUsageDeleteOne
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Get(ctx context.Context, id uuid.UUID) (*MetricOpenAIChatCompletionTokenUsage, error)
- func (c *MetricOpenAIChatCompletionTokenUsageClient) GetX(ctx context.Context, id uuid.UUID) *MetricOpenAIChatCompletionTokenUsage
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Hooks() []Hook
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Intercept(interceptors ...Interceptor)
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Interceptors() []Interceptor
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Query() *MetricOpenAIChatCompletionTokenUsageQuery
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Update() *MetricOpenAIChatCompletionTokenUsageUpdate
- func (c *MetricOpenAIChatCompletionTokenUsageClient) UpdateOne(moacctu *MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (c *MetricOpenAIChatCompletionTokenUsageClient) UpdateOneID(id uuid.UUID) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (c *MetricOpenAIChatCompletionTokenUsageClient) Use(hooks ...Hook)
- type MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) Exec(ctx context.Context) error
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) ExecX(ctx context.Context)
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) Mutation() *MetricOpenAIChatCompletionTokenUsageMutation
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) Save(ctx context.Context) (*MetricOpenAIChatCompletionTokenUsage, error)
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SaveX(ctx context.Context) *MetricOpenAIChatCompletionTokenUsage
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetID(u uuid.UUID) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCompletionCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCompletionTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCreatedAt(i *int64) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableID(u *uuid.UUID) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptOperation(s *string) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableTotalTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetPromptOperation(s string) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageCreate
- func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageCreate
- type MetricOpenAIChatCompletionTokenUsageCreateBulk
- func (moacctucb *MetricOpenAIChatCompletionTokenUsageCreateBulk) Exec(ctx context.Context) error
- func (moacctucb *MetricOpenAIChatCompletionTokenUsageCreateBulk) ExecX(ctx context.Context)
- func (moacctucb *MetricOpenAIChatCompletionTokenUsageCreateBulk) Save(ctx context.Context) ([]*MetricOpenAIChatCompletionTokenUsage, error)
- func (moacctucb *MetricOpenAIChatCompletionTokenUsageCreateBulk) SaveX(ctx context.Context) []*MetricOpenAIChatCompletionTokenUsage
- type MetricOpenAIChatCompletionTokenUsageDelete
- func (moacctud *MetricOpenAIChatCompletionTokenUsageDelete) Exec(ctx context.Context) (int, error)
- func (moacctud *MetricOpenAIChatCompletionTokenUsageDelete) ExecX(ctx context.Context) int
- func (moacctud *MetricOpenAIChatCompletionTokenUsageDelete) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageDelete
- type MetricOpenAIChatCompletionTokenUsageDeleteOne
- func (moacctudo *MetricOpenAIChatCompletionTokenUsageDeleteOne) Exec(ctx context.Context) error
- func (moacctudo *MetricOpenAIChatCompletionTokenUsageDeleteOne) ExecX(ctx context.Context)
- func (moacctudo *MetricOpenAIChatCompletionTokenUsageDeleteOne) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageDeleteOne
- type MetricOpenAIChatCompletionTokenUsageGroupBy
- func (moacctugb *MetricOpenAIChatCompletionTokenUsageGroupBy) Aggregate(fns ...AggregateFunc) *MetricOpenAIChatCompletionTokenUsageGroupBy
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) BoolX(ctx context.Context) bool
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) BoolsX(ctx context.Context) []bool
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Float64X(ctx context.Context) float64
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Float64sX(ctx context.Context) []float64
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) IntX(ctx context.Context) int
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) IntsX(ctx context.Context) []int
- func (moacctugb *MetricOpenAIChatCompletionTokenUsageGroupBy) Scan(ctx context.Context, v any) error
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) ScanX(ctx context.Context, v any)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) StringX(ctx context.Context) string
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *MetricOpenAIChatCompletionTokenUsageGroupBy) StringsX(ctx context.Context) []string
- type MetricOpenAIChatCompletionTokenUsageMutation
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddCompletionCharacterLength(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddCompletionTokenUsage(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddCreatedAt(i int64)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddField(name string, value ent.Value) error
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddPromptCharacterLength(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddPromptTokenUsage(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddTotalTokenUsage(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedCompletionCharacterLength() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedCompletionTokenUsage() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedEdges() []string
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedField(name string) (ent.Value, bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedFields() []string
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedIDs(name string) []ent.Value
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedPromptCharacterLength() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedPromptTokenUsage() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedTotalTokenUsage() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ClearEdge(name string) error
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ClearField(name string) error
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ClearedEdges() []string
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ClearedFields() []string
- func (m MetricOpenAIChatCompletionTokenUsageMutation) Client() *Client
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) CompletionCharacterLength() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) CompletionTokenUsage() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) CreatedAt() (r int64, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) EdgeCleared(name string) bool
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) Field(name string) (ent.Value, bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) FieldCleared(name string) bool
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) Fields() []string
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ID() (id uuid.UUID, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldCompletionCharacterLength(ctx context.Context) (v int, err error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldCompletionTokenUsage(ctx context.Context) (v int, err error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldPromptCharacterLength(ctx context.Context) (v int, err error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldPromptOperation(ctx context.Context) (v string, err error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldPromptTokenUsage(ctx context.Context) (v int, err error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldTotalTokenUsage(ctx context.Context) (v int, err error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) Op() Op
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) PromptCharacterLength() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) PromptOperation() (r string, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) PromptTokenUsage() (r int, exists bool)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) RemovedEdges() []string
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) RemovedIDs(name string) []ent.Value
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetCompletionCharacterLength()
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetCompletionTokenUsage()
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetCreatedAt()
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetEdge(name string) error
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetField(name string) error
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptCharacterLength()
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptOperation()
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetPromptTokenUsage()
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetTotalTokenUsage()
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetCompletionCharacterLength(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetCompletionTokenUsage(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetCreatedAt(i int64)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetField(name string, value ent.Value) error
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetID(id uuid.UUID)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetOp(op Op)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetPromptCharacterLength(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetPromptOperation(s string)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetPromptTokenUsage(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetTotalTokenUsage(i int)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) TotalTokenUsage() (r int, exists bool)
- func (m MetricOpenAIChatCompletionTokenUsageMutation) Tx() (*Tx, error)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) Type() string
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage)
- func (m *MetricOpenAIChatCompletionTokenUsageMutation) WhereP(ps ...func(*sql.Selector))
- type MetricOpenAIChatCompletionTokenUsageQuery
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Aggregate(fns ...AggregateFunc) *MetricOpenAIChatCompletionTokenUsageSelect
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) All(ctx context.Context) ([]*MetricOpenAIChatCompletionTokenUsage, error)
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) AllX(ctx context.Context) []*MetricOpenAIChatCompletionTokenUsage
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Clone() *MetricOpenAIChatCompletionTokenUsageQuery
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Count(ctx context.Context) (int, error)
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) CountX(ctx context.Context) int
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Exist(ctx context.Context) (bool, error)
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) ExistX(ctx context.Context) bool
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) First(ctx context.Context) (*MetricOpenAIChatCompletionTokenUsage, error)
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) FirstX(ctx context.Context) *MetricOpenAIChatCompletionTokenUsage
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) GroupBy(field string, fields ...string) *MetricOpenAIChatCompletionTokenUsageGroupBy
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) IDsX(ctx context.Context) []uuid.UUID
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Limit(limit int) *MetricOpenAIChatCompletionTokenUsageQuery
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Offset(offset int) *MetricOpenAIChatCompletionTokenUsageQuery
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Only(ctx context.Context) (*MetricOpenAIChatCompletionTokenUsage, error)
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) OnlyX(ctx context.Context) *MetricOpenAIChatCompletionTokenUsage
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Order(o ...metricopenaichatcompletiontokenusage.OrderOption) *MetricOpenAIChatCompletionTokenUsageQuery
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Select(fields ...string) *MetricOpenAIChatCompletionTokenUsageSelect
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Unique(unique bool) *MetricOpenAIChatCompletionTokenUsageQuery
- func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageQuery
- type MetricOpenAIChatCompletionTokenUsageSelect
- func (moacctus *MetricOpenAIChatCompletionTokenUsageSelect) Aggregate(fns ...AggregateFunc) *MetricOpenAIChatCompletionTokenUsageSelect
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) BoolX(ctx context.Context) bool
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) BoolsX(ctx context.Context) []bool
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Float64X(ctx context.Context) float64
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Float64sX(ctx context.Context) []float64
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Int(ctx context.Context) (_ int, err error)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) IntX(ctx context.Context) int
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Ints(ctx context.Context) ([]int, error)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) IntsX(ctx context.Context) []int
- func (moacctus *MetricOpenAIChatCompletionTokenUsageSelect) Scan(ctx context.Context, v any) error
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) ScanX(ctx context.Context, v any)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) String(ctx context.Context) (_ string, err error)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) StringX(ctx context.Context) string
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) Strings(ctx context.Context) ([]string, error)
- func (s *MetricOpenAIChatCompletionTokenUsageSelect) StringsX(ctx context.Context) []string
- type MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) Exec(ctx context.Context) error
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) ExecX(ctx context.Context)
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) Mutation() *MetricOpenAIChatCompletionTokenUsageMutation
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) Save(ctx context.Context) (int, error)
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SaveX(ctx context.Context) int
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCompletionCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCompletionTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCreatedAt(i *int64) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptOperation(s *string) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableTotalTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptOperation(s string) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
- func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageUpdate
- type MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Exec(ctx context.Context) error
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) ExecX(ctx context.Context)
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Mutation() *MetricOpenAIChatCompletionTokenUsageMutation
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Save(ctx context.Context) (*MetricOpenAIChatCompletionTokenUsage, error)
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SaveX(ctx context.Context) *MetricOpenAIChatCompletionTokenUsage
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Select(field string, fields ...string) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCompletionCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCompletionTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCreatedAt(i *int64) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptOperation(s *string) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableTotalTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptOperation(s string) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageUpdateOne
- type MetricOpenAIChatCompletionTokenUsages
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type SchemaConfig
- type SlackOAuthCredentials
- type SlackOAuthCredentialsClient
- func (c *SlackOAuthCredentialsClient) Create() *SlackOAuthCredentialsCreate
- func (c *SlackOAuthCredentialsClient) CreateBulk(builders ...*SlackOAuthCredentialsCreate) *SlackOAuthCredentialsCreateBulk
- func (c *SlackOAuthCredentialsClient) Delete() *SlackOAuthCredentialsDelete
- func (c *SlackOAuthCredentialsClient) DeleteOne(soc *SlackOAuthCredentials) *SlackOAuthCredentialsDeleteOne
- func (c *SlackOAuthCredentialsClient) DeleteOneID(id uuid.UUID) *SlackOAuthCredentialsDeleteOne
- func (c *SlackOAuthCredentialsClient) Get(ctx context.Context, id uuid.UUID) (*SlackOAuthCredentials, error)
- func (c *SlackOAuthCredentialsClient) GetX(ctx context.Context, id uuid.UUID) *SlackOAuthCredentials
- func (c *SlackOAuthCredentialsClient) Hooks() []Hook
- func (c *SlackOAuthCredentialsClient) Intercept(interceptors ...Interceptor)
- func (c *SlackOAuthCredentialsClient) Interceptors() []Interceptor
- func (c *SlackOAuthCredentialsClient) Query() *SlackOAuthCredentialsQuery
- func (c *SlackOAuthCredentialsClient) Update() *SlackOAuthCredentialsUpdate
- func (c *SlackOAuthCredentialsClient) UpdateOne(soc *SlackOAuthCredentials) *SlackOAuthCredentialsUpdateOne
- func (c *SlackOAuthCredentialsClient) UpdateOneID(id uuid.UUID) *SlackOAuthCredentialsUpdateOne
- func (c *SlackOAuthCredentialsClient) Use(hooks ...Hook)
- type SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) Exec(ctx context.Context) error
- func (socc *SlackOAuthCredentialsCreate) ExecX(ctx context.Context)
- func (socc *SlackOAuthCredentialsCreate) Mutation() *SlackOAuthCredentialsMutation
- func (socc *SlackOAuthCredentialsCreate) Save(ctx context.Context) (*SlackOAuthCredentials, error)
- func (socc *SlackOAuthCredentialsCreate) SaveX(ctx context.Context) *SlackOAuthCredentials
- func (socc *SlackOAuthCredentialsCreate) SetAccessToken(s string) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetCreatedAt(i int64) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetID(u uuid.UUID) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetNillableCreatedAt(i *int64) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetNillableID(u *uuid.UUID) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetNillableRefreshToken(s *string) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetNillableUpdatedAt(i *int64) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetRefreshToken(s string) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetTeamID(s string) *SlackOAuthCredentialsCreate
- func (socc *SlackOAuthCredentialsCreate) SetUpdatedAt(i int64) *SlackOAuthCredentialsCreate
- type SlackOAuthCredentialsCreateBulk
- func (soccb *SlackOAuthCredentialsCreateBulk) Exec(ctx context.Context) error
- func (soccb *SlackOAuthCredentialsCreateBulk) ExecX(ctx context.Context)
- func (soccb *SlackOAuthCredentialsCreateBulk) Save(ctx context.Context) ([]*SlackOAuthCredentials, error)
- func (soccb *SlackOAuthCredentialsCreateBulk) SaveX(ctx context.Context) []*SlackOAuthCredentials
- type SlackOAuthCredentialsDelete
- type SlackOAuthCredentialsDeleteOne
- type SlackOAuthCredentialsGroupBy
- func (socgb *SlackOAuthCredentialsGroupBy) Aggregate(fns ...AggregateFunc) *SlackOAuthCredentialsGroupBy
- func (s *SlackOAuthCredentialsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SlackOAuthCredentialsGroupBy) BoolX(ctx context.Context) bool
- func (s *SlackOAuthCredentialsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SlackOAuthCredentialsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SlackOAuthCredentialsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SlackOAuthCredentialsGroupBy) Float64X(ctx context.Context) float64
- func (s *SlackOAuthCredentialsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SlackOAuthCredentialsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SlackOAuthCredentialsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SlackOAuthCredentialsGroupBy) IntX(ctx context.Context) int
- func (s *SlackOAuthCredentialsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SlackOAuthCredentialsGroupBy) IntsX(ctx context.Context) []int
- func (socgb *SlackOAuthCredentialsGroupBy) Scan(ctx context.Context, v any) error
- func (s *SlackOAuthCredentialsGroupBy) ScanX(ctx context.Context, v any)
- func (s *SlackOAuthCredentialsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SlackOAuthCredentialsGroupBy) StringX(ctx context.Context) string
- func (s *SlackOAuthCredentialsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SlackOAuthCredentialsGroupBy) StringsX(ctx context.Context) []string
- type SlackOAuthCredentialsMutation
- func (m *SlackOAuthCredentialsMutation) AccessToken() (r string, exists bool)
- func (m *SlackOAuthCredentialsMutation) AddCreatedAt(i int64)
- func (m *SlackOAuthCredentialsMutation) AddField(name string, value ent.Value) error
- func (m *SlackOAuthCredentialsMutation) AddUpdatedAt(i int64)
- func (m *SlackOAuthCredentialsMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *SlackOAuthCredentialsMutation) AddedEdges() []string
- func (m *SlackOAuthCredentialsMutation) AddedField(name string) (ent.Value, bool)
- func (m *SlackOAuthCredentialsMutation) AddedFields() []string
- func (m *SlackOAuthCredentialsMutation) AddedIDs(name string) []ent.Value
- func (m *SlackOAuthCredentialsMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *SlackOAuthCredentialsMutation) ClearEdge(name string) error
- func (m *SlackOAuthCredentialsMutation) ClearField(name string) error
- func (m *SlackOAuthCredentialsMutation) ClearedEdges() []string
- func (m *SlackOAuthCredentialsMutation) ClearedFields() []string
- func (m SlackOAuthCredentialsMutation) Client() *Client
- func (m *SlackOAuthCredentialsMutation) CreatedAt() (r int64, exists bool)
- func (m *SlackOAuthCredentialsMutation) EdgeCleared(name string) bool
- func (m *SlackOAuthCredentialsMutation) Field(name string) (ent.Value, bool)
- func (m *SlackOAuthCredentialsMutation) FieldCleared(name string) bool
- func (m *SlackOAuthCredentialsMutation) Fields() []string
- func (m *SlackOAuthCredentialsMutation) ID() (id uuid.UUID, exists bool)
- func (m *SlackOAuthCredentialsMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *SlackOAuthCredentialsMutation) OldAccessToken(ctx context.Context) (v string, err error)
- func (m *SlackOAuthCredentialsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *SlackOAuthCredentialsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SlackOAuthCredentialsMutation) OldRefreshToken(ctx context.Context) (v string, err error)
- func (m *SlackOAuthCredentialsMutation) OldTeamID(ctx context.Context) (v string, err error)
- func (m *SlackOAuthCredentialsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *SlackOAuthCredentialsMutation) Op() Op
- func (m *SlackOAuthCredentialsMutation) RefreshToken() (r string, exists bool)
- func (m *SlackOAuthCredentialsMutation) RemovedEdges() []string
- func (m *SlackOAuthCredentialsMutation) RemovedIDs(name string) []ent.Value
- func (m *SlackOAuthCredentialsMutation) ResetAccessToken()
- func (m *SlackOAuthCredentialsMutation) ResetCreatedAt()
- func (m *SlackOAuthCredentialsMutation) ResetEdge(name string) error
- func (m *SlackOAuthCredentialsMutation) ResetField(name string) error
- func (m *SlackOAuthCredentialsMutation) ResetRefreshToken()
- func (m *SlackOAuthCredentialsMutation) ResetTeamID()
- func (m *SlackOAuthCredentialsMutation) ResetUpdatedAt()
- func (m *SlackOAuthCredentialsMutation) SetAccessToken(s string)
- func (m *SlackOAuthCredentialsMutation) SetCreatedAt(i int64)
- func (m *SlackOAuthCredentialsMutation) SetField(name string, value ent.Value) error
- func (m *SlackOAuthCredentialsMutation) SetID(id uuid.UUID)
- func (m *SlackOAuthCredentialsMutation) SetOp(op Op)
- func (m *SlackOAuthCredentialsMutation) SetRefreshToken(s string)
- func (m *SlackOAuthCredentialsMutation) SetTeamID(s string)
- func (m *SlackOAuthCredentialsMutation) SetUpdatedAt(i int64)
- func (m *SlackOAuthCredentialsMutation) TeamID() (r string, exists bool)
- func (m SlackOAuthCredentialsMutation) Tx() (*Tx, error)
- func (m *SlackOAuthCredentialsMutation) Type() string
- func (m *SlackOAuthCredentialsMutation) UpdatedAt() (r int64, exists bool)
- func (m *SlackOAuthCredentialsMutation) Where(ps ...predicate.SlackOAuthCredentials)
- func (m *SlackOAuthCredentialsMutation) WhereP(ps ...func(*sql.Selector))
- type SlackOAuthCredentialsQuery
- func (socq *SlackOAuthCredentialsQuery) Aggregate(fns ...AggregateFunc) *SlackOAuthCredentialsSelect
- func (socq *SlackOAuthCredentialsQuery) All(ctx context.Context) ([]*SlackOAuthCredentials, error)
- func (socq *SlackOAuthCredentialsQuery) AllX(ctx context.Context) []*SlackOAuthCredentials
- func (socq *SlackOAuthCredentialsQuery) Clone() *SlackOAuthCredentialsQuery
- func (socq *SlackOAuthCredentialsQuery) Count(ctx context.Context) (int, error)
- func (socq *SlackOAuthCredentialsQuery) CountX(ctx context.Context) int
- func (socq *SlackOAuthCredentialsQuery) Exist(ctx context.Context) (bool, error)
- func (socq *SlackOAuthCredentialsQuery) ExistX(ctx context.Context) bool
- func (socq *SlackOAuthCredentialsQuery) First(ctx context.Context) (*SlackOAuthCredentials, error)
- func (socq *SlackOAuthCredentialsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (socq *SlackOAuthCredentialsQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (socq *SlackOAuthCredentialsQuery) FirstX(ctx context.Context) *SlackOAuthCredentials
- func (socq *SlackOAuthCredentialsQuery) GroupBy(field string, fields ...string) *SlackOAuthCredentialsGroupBy
- func (socq *SlackOAuthCredentialsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (socq *SlackOAuthCredentialsQuery) IDsX(ctx context.Context) []uuid.UUID
- func (socq *SlackOAuthCredentialsQuery) Limit(limit int) *SlackOAuthCredentialsQuery
- func (socq *SlackOAuthCredentialsQuery) Offset(offset int) *SlackOAuthCredentialsQuery
- func (socq *SlackOAuthCredentialsQuery) Only(ctx context.Context) (*SlackOAuthCredentials, error)
- func (socq *SlackOAuthCredentialsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (socq *SlackOAuthCredentialsQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (socq *SlackOAuthCredentialsQuery) OnlyX(ctx context.Context) *SlackOAuthCredentials
- func (socq *SlackOAuthCredentialsQuery) Order(o ...slackoauthcredentials.OrderOption) *SlackOAuthCredentialsQuery
- func (socq *SlackOAuthCredentialsQuery) Select(fields ...string) *SlackOAuthCredentialsSelect
- func (socq *SlackOAuthCredentialsQuery) Unique(unique bool) *SlackOAuthCredentialsQuery
- func (socq *SlackOAuthCredentialsQuery) Where(ps ...predicate.SlackOAuthCredentials) *SlackOAuthCredentialsQuery
- type SlackOAuthCredentialsSelect
- func (socs *SlackOAuthCredentialsSelect) Aggregate(fns ...AggregateFunc) *SlackOAuthCredentialsSelect
- func (s *SlackOAuthCredentialsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SlackOAuthCredentialsSelect) BoolX(ctx context.Context) bool
- func (s *SlackOAuthCredentialsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SlackOAuthCredentialsSelect) BoolsX(ctx context.Context) []bool
- func (s *SlackOAuthCredentialsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SlackOAuthCredentialsSelect) Float64X(ctx context.Context) float64
- func (s *SlackOAuthCredentialsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SlackOAuthCredentialsSelect) Float64sX(ctx context.Context) []float64
- func (s *SlackOAuthCredentialsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SlackOAuthCredentialsSelect) IntX(ctx context.Context) int
- func (s *SlackOAuthCredentialsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SlackOAuthCredentialsSelect) IntsX(ctx context.Context) []int
- func (socs *SlackOAuthCredentialsSelect) Scan(ctx context.Context, v any) error
- func (s *SlackOAuthCredentialsSelect) ScanX(ctx context.Context, v any)
- func (s *SlackOAuthCredentialsSelect) String(ctx context.Context) (_ string, err error)
- func (s *SlackOAuthCredentialsSelect) StringX(ctx context.Context) string
- func (s *SlackOAuthCredentialsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SlackOAuthCredentialsSelect) StringsX(ctx context.Context) []string
- type SlackOAuthCredentialsSlice
- type SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) AddCreatedAt(i int64) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) AddUpdatedAt(i int64) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) Exec(ctx context.Context) error
- func (socu *SlackOAuthCredentialsUpdate) ExecX(ctx context.Context)
- func (socu *SlackOAuthCredentialsUpdate) Mutation() *SlackOAuthCredentialsMutation
- func (socu *SlackOAuthCredentialsUpdate) Save(ctx context.Context) (int, error)
- func (socu *SlackOAuthCredentialsUpdate) SaveX(ctx context.Context) int
- func (socu *SlackOAuthCredentialsUpdate) SetAccessToken(s string) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) SetCreatedAt(i int64) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) SetNillableCreatedAt(i *int64) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) SetNillableRefreshToken(s *string) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) SetNillableUpdatedAt(i *int64) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) SetRefreshToken(s string) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) SetUpdatedAt(i int64) *SlackOAuthCredentialsUpdate
- func (socu *SlackOAuthCredentialsUpdate) Where(ps ...predicate.SlackOAuthCredentials) *SlackOAuthCredentialsUpdate
- type SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) AddCreatedAt(i int64) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) AddUpdatedAt(i int64) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) Exec(ctx context.Context) error
- func (socuo *SlackOAuthCredentialsUpdateOne) ExecX(ctx context.Context)
- func (socuo *SlackOAuthCredentialsUpdateOne) Mutation() *SlackOAuthCredentialsMutation
- func (socuo *SlackOAuthCredentialsUpdateOne) Save(ctx context.Context) (*SlackOAuthCredentials, error)
- func (socuo *SlackOAuthCredentialsUpdateOne) SaveX(ctx context.Context) *SlackOAuthCredentials
- func (socuo *SlackOAuthCredentialsUpdateOne) Select(field string, fields ...string) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) SetAccessToken(s string) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) SetCreatedAt(i int64) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) SetNillableCreatedAt(i *int64) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) SetNillableRefreshToken(s *string) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) SetNillableUpdatedAt(i *int64) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) SetRefreshToken(s string) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) SetUpdatedAt(i int64) *SlackOAuthCredentialsUpdateOne
- func (socuo *SlackOAuthCredentialsUpdateOne) Where(ps ...predicate.SlackOAuthCredentials) *SlackOAuthCredentialsUpdateOne
- type TelegramChatAutoRecapsSubscribers
- func (tcars *TelegramChatAutoRecapsSubscribers) String() string
- func (tcars *TelegramChatAutoRecapsSubscribers) Unwrap() *TelegramChatAutoRecapsSubscribers
- func (tcars *TelegramChatAutoRecapsSubscribers) Update() *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcars *TelegramChatAutoRecapsSubscribers) Value(name string) (ent.Value, error)
- type TelegramChatAutoRecapsSubscribersClient
- func (c *TelegramChatAutoRecapsSubscribersClient) Create() *TelegramChatAutoRecapsSubscribersCreate
- func (c *TelegramChatAutoRecapsSubscribersClient) CreateBulk(builders ...*TelegramChatAutoRecapsSubscribersCreate) *TelegramChatAutoRecapsSubscribersCreateBulk
- func (c *TelegramChatAutoRecapsSubscribersClient) Delete() *TelegramChatAutoRecapsSubscribersDelete
- func (c *TelegramChatAutoRecapsSubscribersClient) DeleteOne(tcars *TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersDeleteOne
- func (c *TelegramChatAutoRecapsSubscribersClient) DeleteOneID(id uuid.UUID) *TelegramChatAutoRecapsSubscribersDeleteOne
- func (c *TelegramChatAutoRecapsSubscribersClient) Get(ctx context.Context, id uuid.UUID) (*TelegramChatAutoRecapsSubscribers, error)
- func (c *TelegramChatAutoRecapsSubscribersClient) GetX(ctx context.Context, id uuid.UUID) *TelegramChatAutoRecapsSubscribers
- func (c *TelegramChatAutoRecapsSubscribersClient) Hooks() []Hook
- func (c *TelegramChatAutoRecapsSubscribersClient) Intercept(interceptors ...Interceptor)
- func (c *TelegramChatAutoRecapsSubscribersClient) Interceptors() []Interceptor
- func (c *TelegramChatAutoRecapsSubscribersClient) Query() *TelegramChatAutoRecapsSubscribersQuery
- func (c *TelegramChatAutoRecapsSubscribersClient) Update() *TelegramChatAutoRecapsSubscribersUpdate
- func (c *TelegramChatAutoRecapsSubscribersClient) UpdateOne(tcars *TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (c *TelegramChatAutoRecapsSubscribersClient) UpdateOneID(id uuid.UUID) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (c *TelegramChatAutoRecapsSubscribersClient) Use(hooks ...Hook)
- type TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) Exec(ctx context.Context) error
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) ExecX(ctx context.Context)
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) Mutation() *TelegramChatAutoRecapsSubscribersMutation
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) Save(ctx context.Context) (*TelegramChatAutoRecapsSubscribers, error)
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SaveX(ctx context.Context) *TelegramChatAutoRecapsSubscribers
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetChatID(i int64) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetID(u uuid.UUID) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableChatID(i *int64) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableCreatedAt(i *int64) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableID(u *uuid.UUID) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableUpdatedAt(i *int64) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableUserID(i *int64) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersCreate
- func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetUserID(i int64) *TelegramChatAutoRecapsSubscribersCreate
- type TelegramChatAutoRecapsSubscribersCreateBulk
- func (tcarscb *TelegramChatAutoRecapsSubscribersCreateBulk) Exec(ctx context.Context) error
- func (tcarscb *TelegramChatAutoRecapsSubscribersCreateBulk) ExecX(ctx context.Context)
- func (tcarscb *TelegramChatAutoRecapsSubscribersCreateBulk) Save(ctx context.Context) ([]*TelegramChatAutoRecapsSubscribers, error)
- func (tcarscb *TelegramChatAutoRecapsSubscribersCreateBulk) SaveX(ctx context.Context) []*TelegramChatAutoRecapsSubscribers
- type TelegramChatAutoRecapsSubscribersDelete
- func (tcarsd *TelegramChatAutoRecapsSubscribersDelete) Exec(ctx context.Context) (int, error)
- func (tcarsd *TelegramChatAutoRecapsSubscribersDelete) ExecX(ctx context.Context) int
- func (tcarsd *TelegramChatAutoRecapsSubscribersDelete) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersDelete
- type TelegramChatAutoRecapsSubscribersDeleteOne
- func (tcarsdo *TelegramChatAutoRecapsSubscribersDeleteOne) Exec(ctx context.Context) error
- func (tcarsdo *TelegramChatAutoRecapsSubscribersDeleteOne) ExecX(ctx context.Context)
- func (tcarsdo *TelegramChatAutoRecapsSubscribersDeleteOne) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersDeleteOne
- type TelegramChatAutoRecapsSubscribersGroupBy
- func (tcarsgb *TelegramChatAutoRecapsSubscribersGroupBy) Aggregate(fns ...AggregateFunc) *TelegramChatAutoRecapsSubscribersGroupBy
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) BoolX(ctx context.Context) bool
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Float64X(ctx context.Context) float64
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) IntX(ctx context.Context) int
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) IntsX(ctx context.Context) []int
- func (tcarsgb *TelegramChatAutoRecapsSubscribersGroupBy) Scan(ctx context.Context, v any) error
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) ScanX(ctx context.Context, v any)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) StringX(ctx context.Context) string
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TelegramChatAutoRecapsSubscribersGroupBy) StringsX(ctx context.Context) []string
- type TelegramChatAutoRecapsSubscribersMutation
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddChatID(i int64)
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddCreatedAt(i int64)
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddField(name string, value ent.Value) error
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddUpdatedAt(i int64)
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddUserID(i int64)
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddedChatID() (r int64, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddedEdges() []string
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddedField(name string) (ent.Value, bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddedFields() []string
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddedIDs(name string) []ent.Value
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) AddedUserID() (r int64, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) ChatID() (r int64, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) ClearEdge(name string) error
- func (m *TelegramChatAutoRecapsSubscribersMutation) ClearField(name string) error
- func (m *TelegramChatAutoRecapsSubscribersMutation) ClearedEdges() []string
- func (m *TelegramChatAutoRecapsSubscribersMutation) ClearedFields() []string
- func (m TelegramChatAutoRecapsSubscribersMutation) Client() *Client
- func (m *TelegramChatAutoRecapsSubscribersMutation) CreatedAt() (r int64, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) EdgeCleared(name string) bool
- func (m *TelegramChatAutoRecapsSubscribersMutation) Field(name string) (ent.Value, bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) FieldCleared(name string) bool
- func (m *TelegramChatAutoRecapsSubscribersMutation) Fields() []string
- func (m *TelegramChatAutoRecapsSubscribersMutation) ID() (id uuid.UUID, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *TelegramChatAutoRecapsSubscribersMutation) OldChatID(ctx context.Context) (v int64, err error)
- func (m *TelegramChatAutoRecapsSubscribersMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *TelegramChatAutoRecapsSubscribersMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TelegramChatAutoRecapsSubscribersMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *TelegramChatAutoRecapsSubscribersMutation) OldUserID(ctx context.Context) (v int64, err error)
- func (m *TelegramChatAutoRecapsSubscribersMutation) Op() Op
- func (m *TelegramChatAutoRecapsSubscribersMutation) RemovedEdges() []string
- func (m *TelegramChatAutoRecapsSubscribersMutation) RemovedIDs(name string) []ent.Value
- func (m *TelegramChatAutoRecapsSubscribersMutation) ResetChatID()
- func (m *TelegramChatAutoRecapsSubscribersMutation) ResetCreatedAt()
- func (m *TelegramChatAutoRecapsSubscribersMutation) ResetEdge(name string) error
- func (m *TelegramChatAutoRecapsSubscribersMutation) ResetField(name string) error
- func (m *TelegramChatAutoRecapsSubscribersMutation) ResetUpdatedAt()
- func (m *TelegramChatAutoRecapsSubscribersMutation) ResetUserID()
- func (m *TelegramChatAutoRecapsSubscribersMutation) SetChatID(i int64)
- func (m *TelegramChatAutoRecapsSubscribersMutation) SetCreatedAt(i int64)
- func (m *TelegramChatAutoRecapsSubscribersMutation) SetField(name string, value ent.Value) error
- func (m *TelegramChatAutoRecapsSubscribersMutation) SetID(id uuid.UUID)
- func (m *TelegramChatAutoRecapsSubscribersMutation) SetOp(op Op)
- func (m *TelegramChatAutoRecapsSubscribersMutation) SetUpdatedAt(i int64)
- func (m *TelegramChatAutoRecapsSubscribersMutation) SetUserID(i int64)
- func (m TelegramChatAutoRecapsSubscribersMutation) Tx() (*Tx, error)
- func (m *TelegramChatAutoRecapsSubscribersMutation) Type() string
- func (m *TelegramChatAutoRecapsSubscribersMutation) UpdatedAt() (r int64, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) UserID() (r int64, exists bool)
- func (m *TelegramChatAutoRecapsSubscribersMutation) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers)
- func (m *TelegramChatAutoRecapsSubscribersMutation) WhereP(ps ...func(*sql.Selector))
- type TelegramChatAutoRecapsSubscribersQuery
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Aggregate(fns ...AggregateFunc) *TelegramChatAutoRecapsSubscribersSelect
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) All(ctx context.Context) ([]*TelegramChatAutoRecapsSubscribers, error)
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) AllX(ctx context.Context) []*TelegramChatAutoRecapsSubscribers
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Clone() *TelegramChatAutoRecapsSubscribersQuery
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Count(ctx context.Context) (int, error)
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) CountX(ctx context.Context) int
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Exist(ctx context.Context) (bool, error)
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) ExistX(ctx context.Context) bool
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) First(ctx context.Context) (*TelegramChatAutoRecapsSubscribers, error)
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) FirstX(ctx context.Context) *TelegramChatAutoRecapsSubscribers
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) GroupBy(field string, fields ...string) *TelegramChatAutoRecapsSubscribersGroupBy
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Limit(limit int) *TelegramChatAutoRecapsSubscribersQuery
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Offset(offset int) *TelegramChatAutoRecapsSubscribersQuery
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Only(ctx context.Context) (*TelegramChatAutoRecapsSubscribers, error)
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) OnlyX(ctx context.Context) *TelegramChatAutoRecapsSubscribers
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Order(o ...telegramchatautorecapssubscribers.OrderOption) *TelegramChatAutoRecapsSubscribersQuery
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Select(fields ...string) *TelegramChatAutoRecapsSubscribersSelect
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Unique(unique bool) *TelegramChatAutoRecapsSubscribersQuery
- func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersQuery
- type TelegramChatAutoRecapsSubscribersSelect
- func (tcarss *TelegramChatAutoRecapsSubscribersSelect) Aggregate(fns ...AggregateFunc) *TelegramChatAutoRecapsSubscribersSelect
- func (s *TelegramChatAutoRecapsSubscribersSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TelegramChatAutoRecapsSubscribersSelect) BoolX(ctx context.Context) bool
- func (s *TelegramChatAutoRecapsSubscribersSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TelegramChatAutoRecapsSubscribersSelect) BoolsX(ctx context.Context) []bool
- func (s *TelegramChatAutoRecapsSubscribersSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TelegramChatAutoRecapsSubscribersSelect) Float64X(ctx context.Context) float64
- func (s *TelegramChatAutoRecapsSubscribersSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TelegramChatAutoRecapsSubscribersSelect) Float64sX(ctx context.Context) []float64
- func (s *TelegramChatAutoRecapsSubscribersSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TelegramChatAutoRecapsSubscribersSelect) IntX(ctx context.Context) int
- func (s *TelegramChatAutoRecapsSubscribersSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TelegramChatAutoRecapsSubscribersSelect) IntsX(ctx context.Context) []int
- func (tcarss *TelegramChatAutoRecapsSubscribersSelect) Scan(ctx context.Context, v any) error
- func (s *TelegramChatAutoRecapsSubscribersSelect) ScanX(ctx context.Context, v any)
- func (s *TelegramChatAutoRecapsSubscribersSelect) String(ctx context.Context) (_ string, err error)
- func (s *TelegramChatAutoRecapsSubscribersSelect) StringX(ctx context.Context) string
- func (s *TelegramChatAutoRecapsSubscribersSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TelegramChatAutoRecapsSubscribersSelect) StringsX(ctx context.Context) []string
- type TelegramChatAutoRecapsSubscribersSlice
- type TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) AddChatID(i int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) AddCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) AddUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) AddUserID(i int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) Exec(ctx context.Context) error
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) ExecX(ctx context.Context)
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) Mutation() *TelegramChatAutoRecapsSubscribersMutation
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) Save(ctx context.Context) (int, error)
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SaveX(ctx context.Context) int
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetChatID(i int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetNillableChatID(i *int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetNillableCreatedAt(i *int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetNillableUpdatedAt(i *int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetNillableUserID(i *int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetUserID(i int64) *TelegramChatAutoRecapsSubscribersUpdate
- func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersUpdate
- type TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) AddChatID(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) AddCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) AddUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) AddUserID(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Exec(ctx context.Context) error
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) ExecX(ctx context.Context)
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Mutation() *TelegramChatAutoRecapsSubscribersMutation
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Save(ctx context.Context) (*TelegramChatAutoRecapsSubscribers, error)
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SaveX(ctx context.Context) *TelegramChatAutoRecapsSubscribers
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Select(field string, fields ...string) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetChatID(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableChatID(i *int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableCreatedAt(i *int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableUpdatedAt(i *int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableUserID(i *int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetUserID(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
- func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersUpdateOne
- type TelegramChatFeatureFlags
- type TelegramChatFeatureFlagsClient
- func (c *TelegramChatFeatureFlagsClient) Create() *TelegramChatFeatureFlagsCreate
- func (c *TelegramChatFeatureFlagsClient) CreateBulk(builders ...*TelegramChatFeatureFlagsCreate) *TelegramChatFeatureFlagsCreateBulk
- func (c *TelegramChatFeatureFlagsClient) Delete() *TelegramChatFeatureFlagsDelete
- func (c *TelegramChatFeatureFlagsClient) DeleteOne(tcff *TelegramChatFeatureFlags) *TelegramChatFeatureFlagsDeleteOne
- func (c *TelegramChatFeatureFlagsClient) DeleteOneID(id uuid.UUID) *TelegramChatFeatureFlagsDeleteOne
- func (c *TelegramChatFeatureFlagsClient) Get(ctx context.Context, id uuid.UUID) (*TelegramChatFeatureFlags, error)
- func (c *TelegramChatFeatureFlagsClient) GetX(ctx context.Context, id uuid.UUID) *TelegramChatFeatureFlags
- func (c *TelegramChatFeatureFlagsClient) Hooks() []Hook
- func (c *TelegramChatFeatureFlagsClient) Intercept(interceptors ...Interceptor)
- func (c *TelegramChatFeatureFlagsClient) Interceptors() []Interceptor
- func (c *TelegramChatFeatureFlagsClient) Query() *TelegramChatFeatureFlagsQuery
- func (c *TelegramChatFeatureFlagsClient) Update() *TelegramChatFeatureFlagsUpdate
- func (c *TelegramChatFeatureFlagsClient) UpdateOne(tcff *TelegramChatFeatureFlags) *TelegramChatFeatureFlagsUpdateOne
- func (c *TelegramChatFeatureFlagsClient) UpdateOneID(id uuid.UUID) *TelegramChatFeatureFlagsUpdateOne
- func (c *TelegramChatFeatureFlagsClient) Use(hooks ...Hook)
- type TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) Exec(ctx context.Context) error
- func (tcffc *TelegramChatFeatureFlagsCreate) ExecX(ctx context.Context)
- func (tcffc *TelegramChatFeatureFlagsCreate) Mutation() *TelegramChatFeatureFlagsMutation
- func (tcffc *TelegramChatFeatureFlagsCreate) Save(ctx context.Context) (*TelegramChatFeatureFlags, error)
- func (tcffc *TelegramChatFeatureFlagsCreate) SaveX(ctx context.Context) *TelegramChatFeatureFlags
- func (tcffc *TelegramChatFeatureFlagsCreate) SetChatID(i int64) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetChatTitle(s string) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetChatType(s string) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetCreatedAt(i int64) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetFeatureChatHistoriesRecap(b bool) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetID(u uuid.UUID) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetNillableChatTitle(s *string) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetNillableCreatedAt(i *int64) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetNillableID(u *uuid.UUID) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetNillableUpdatedAt(i *int64) *TelegramChatFeatureFlagsCreate
- func (tcffc *TelegramChatFeatureFlagsCreate) SetUpdatedAt(i int64) *TelegramChatFeatureFlagsCreate
- type TelegramChatFeatureFlagsCreateBulk
- func (tcffcb *TelegramChatFeatureFlagsCreateBulk) Exec(ctx context.Context) error
- func (tcffcb *TelegramChatFeatureFlagsCreateBulk) ExecX(ctx context.Context)
- func (tcffcb *TelegramChatFeatureFlagsCreateBulk) Save(ctx context.Context) ([]*TelegramChatFeatureFlags, error)
- func (tcffcb *TelegramChatFeatureFlagsCreateBulk) SaveX(ctx context.Context) []*TelegramChatFeatureFlags
- type TelegramChatFeatureFlagsDelete
- type TelegramChatFeatureFlagsDeleteOne
- type TelegramChatFeatureFlagsGroupBy
- func (tcffgb *TelegramChatFeatureFlagsGroupBy) Aggregate(fns ...AggregateFunc) *TelegramChatFeatureFlagsGroupBy
- func (s *TelegramChatFeatureFlagsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TelegramChatFeatureFlagsGroupBy) BoolX(ctx context.Context) bool
- func (s *TelegramChatFeatureFlagsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TelegramChatFeatureFlagsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TelegramChatFeatureFlagsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TelegramChatFeatureFlagsGroupBy) Float64X(ctx context.Context) float64
- func (s *TelegramChatFeatureFlagsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TelegramChatFeatureFlagsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TelegramChatFeatureFlagsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TelegramChatFeatureFlagsGroupBy) IntX(ctx context.Context) int
- func (s *TelegramChatFeatureFlagsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TelegramChatFeatureFlagsGroupBy) IntsX(ctx context.Context) []int
- func (tcffgb *TelegramChatFeatureFlagsGroupBy) Scan(ctx context.Context, v any) error
- func (s *TelegramChatFeatureFlagsGroupBy) ScanX(ctx context.Context, v any)
- func (s *TelegramChatFeatureFlagsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TelegramChatFeatureFlagsGroupBy) StringX(ctx context.Context) string
- func (s *TelegramChatFeatureFlagsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TelegramChatFeatureFlagsGroupBy) StringsX(ctx context.Context) []string
- type TelegramChatFeatureFlagsMutation
- func (m *TelegramChatFeatureFlagsMutation) AddChatID(i int64)
- func (m *TelegramChatFeatureFlagsMutation) AddCreatedAt(i int64)
- func (m *TelegramChatFeatureFlagsMutation) AddField(name string, value ent.Value) error
- func (m *TelegramChatFeatureFlagsMutation) AddUpdatedAt(i int64)
- func (m *TelegramChatFeatureFlagsMutation) AddedChatID() (r int64, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) AddedEdges() []string
- func (m *TelegramChatFeatureFlagsMutation) AddedField(name string) (ent.Value, bool)
- func (m *TelegramChatFeatureFlagsMutation) AddedFields() []string
- func (m *TelegramChatFeatureFlagsMutation) AddedIDs(name string) []ent.Value
- func (m *TelegramChatFeatureFlagsMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) ChatID() (r int64, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) ChatTitle() (r string, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) ChatType() (r string, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) ClearEdge(name string) error
- func (m *TelegramChatFeatureFlagsMutation) ClearField(name string) error
- func (m *TelegramChatFeatureFlagsMutation) ClearedEdges() []string
- func (m *TelegramChatFeatureFlagsMutation) ClearedFields() []string
- func (m TelegramChatFeatureFlagsMutation) Client() *Client
- func (m *TelegramChatFeatureFlagsMutation) CreatedAt() (r int64, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) EdgeCleared(name string) bool
- func (m *TelegramChatFeatureFlagsMutation) FeatureChatHistoriesRecap() (r bool, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) Field(name string) (ent.Value, bool)
- func (m *TelegramChatFeatureFlagsMutation) FieldCleared(name string) bool
- func (m *TelegramChatFeatureFlagsMutation) Fields() []string
- func (m *TelegramChatFeatureFlagsMutation) ID() (id uuid.UUID, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *TelegramChatFeatureFlagsMutation) OldChatID(ctx context.Context) (v int64, err error)
- func (m *TelegramChatFeatureFlagsMutation) OldChatTitle(ctx context.Context) (v string, err error)
- func (m *TelegramChatFeatureFlagsMutation) OldChatType(ctx context.Context) (v string, err error)
- func (m *TelegramChatFeatureFlagsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *TelegramChatFeatureFlagsMutation) OldFeatureChatHistoriesRecap(ctx context.Context) (v bool, err error)
- func (m *TelegramChatFeatureFlagsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TelegramChatFeatureFlagsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *TelegramChatFeatureFlagsMutation) Op() Op
- func (m *TelegramChatFeatureFlagsMutation) RemovedEdges() []string
- func (m *TelegramChatFeatureFlagsMutation) RemovedIDs(name string) []ent.Value
- func (m *TelegramChatFeatureFlagsMutation) ResetChatID()
- func (m *TelegramChatFeatureFlagsMutation) ResetChatTitle()
- func (m *TelegramChatFeatureFlagsMutation) ResetChatType()
- func (m *TelegramChatFeatureFlagsMutation) ResetCreatedAt()
- func (m *TelegramChatFeatureFlagsMutation) ResetEdge(name string) error
- func (m *TelegramChatFeatureFlagsMutation) ResetFeatureChatHistoriesRecap()
- func (m *TelegramChatFeatureFlagsMutation) ResetField(name string) error
- func (m *TelegramChatFeatureFlagsMutation) ResetUpdatedAt()
- func (m *TelegramChatFeatureFlagsMutation) SetChatID(i int64)
- func (m *TelegramChatFeatureFlagsMutation) SetChatTitle(s string)
- func (m *TelegramChatFeatureFlagsMutation) SetChatType(s string)
- func (m *TelegramChatFeatureFlagsMutation) SetCreatedAt(i int64)
- func (m *TelegramChatFeatureFlagsMutation) SetFeatureChatHistoriesRecap(b bool)
- func (m *TelegramChatFeatureFlagsMutation) SetField(name string, value ent.Value) error
- func (m *TelegramChatFeatureFlagsMutation) SetID(id uuid.UUID)
- func (m *TelegramChatFeatureFlagsMutation) SetOp(op Op)
- func (m *TelegramChatFeatureFlagsMutation) SetUpdatedAt(i int64)
- func (m TelegramChatFeatureFlagsMutation) Tx() (*Tx, error)
- func (m *TelegramChatFeatureFlagsMutation) Type() string
- func (m *TelegramChatFeatureFlagsMutation) UpdatedAt() (r int64, exists bool)
- func (m *TelegramChatFeatureFlagsMutation) Where(ps ...predicate.TelegramChatFeatureFlags)
- func (m *TelegramChatFeatureFlagsMutation) WhereP(ps ...func(*sql.Selector))
- type TelegramChatFeatureFlagsQuery
- func (tcffq *TelegramChatFeatureFlagsQuery) Aggregate(fns ...AggregateFunc) *TelegramChatFeatureFlagsSelect
- func (tcffq *TelegramChatFeatureFlagsQuery) All(ctx context.Context) ([]*TelegramChatFeatureFlags, error)
- func (tcffq *TelegramChatFeatureFlagsQuery) AllX(ctx context.Context) []*TelegramChatFeatureFlags
- func (tcffq *TelegramChatFeatureFlagsQuery) Clone() *TelegramChatFeatureFlagsQuery
- func (tcffq *TelegramChatFeatureFlagsQuery) Count(ctx context.Context) (int, error)
- func (tcffq *TelegramChatFeatureFlagsQuery) CountX(ctx context.Context) int
- func (tcffq *TelegramChatFeatureFlagsQuery) Exist(ctx context.Context) (bool, error)
- func (tcffq *TelegramChatFeatureFlagsQuery) ExistX(ctx context.Context) bool
- func (tcffq *TelegramChatFeatureFlagsQuery) First(ctx context.Context) (*TelegramChatFeatureFlags, error)
- func (tcffq *TelegramChatFeatureFlagsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tcffq *TelegramChatFeatureFlagsQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (tcffq *TelegramChatFeatureFlagsQuery) FirstX(ctx context.Context) *TelegramChatFeatureFlags
- func (tcffq *TelegramChatFeatureFlagsQuery) GroupBy(field string, fields ...string) *TelegramChatFeatureFlagsGroupBy
- func (tcffq *TelegramChatFeatureFlagsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (tcffq *TelegramChatFeatureFlagsQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tcffq *TelegramChatFeatureFlagsQuery) Limit(limit int) *TelegramChatFeatureFlagsQuery
- func (tcffq *TelegramChatFeatureFlagsQuery) Offset(offset int) *TelegramChatFeatureFlagsQuery
- func (tcffq *TelegramChatFeatureFlagsQuery) Only(ctx context.Context) (*TelegramChatFeatureFlags, error)
- func (tcffq *TelegramChatFeatureFlagsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tcffq *TelegramChatFeatureFlagsQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (tcffq *TelegramChatFeatureFlagsQuery) OnlyX(ctx context.Context) *TelegramChatFeatureFlags
- func (tcffq *TelegramChatFeatureFlagsQuery) Order(o ...telegramchatfeatureflags.OrderOption) *TelegramChatFeatureFlagsQuery
- func (tcffq *TelegramChatFeatureFlagsQuery) Select(fields ...string) *TelegramChatFeatureFlagsSelect
- func (tcffq *TelegramChatFeatureFlagsQuery) Unique(unique bool) *TelegramChatFeatureFlagsQuery
- func (tcffq *TelegramChatFeatureFlagsQuery) Where(ps ...predicate.TelegramChatFeatureFlags) *TelegramChatFeatureFlagsQuery
- type TelegramChatFeatureFlagsSelect
- func (tcffs *TelegramChatFeatureFlagsSelect) Aggregate(fns ...AggregateFunc) *TelegramChatFeatureFlagsSelect
- func (s *TelegramChatFeatureFlagsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TelegramChatFeatureFlagsSelect) BoolX(ctx context.Context) bool
- func (s *TelegramChatFeatureFlagsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TelegramChatFeatureFlagsSelect) BoolsX(ctx context.Context) []bool
- func (s *TelegramChatFeatureFlagsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TelegramChatFeatureFlagsSelect) Float64X(ctx context.Context) float64
- func (s *TelegramChatFeatureFlagsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TelegramChatFeatureFlagsSelect) Float64sX(ctx context.Context) []float64
- func (s *TelegramChatFeatureFlagsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TelegramChatFeatureFlagsSelect) IntX(ctx context.Context) int
- func (s *TelegramChatFeatureFlagsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TelegramChatFeatureFlagsSelect) IntsX(ctx context.Context) []int
- func (tcffs *TelegramChatFeatureFlagsSelect) Scan(ctx context.Context, v any) error
- func (s *TelegramChatFeatureFlagsSelect) ScanX(ctx context.Context, v any)
- func (s *TelegramChatFeatureFlagsSelect) String(ctx context.Context) (_ string, err error)
- func (s *TelegramChatFeatureFlagsSelect) StringX(ctx context.Context) string
- func (s *TelegramChatFeatureFlagsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TelegramChatFeatureFlagsSelect) StringsX(ctx context.Context) []string
- type TelegramChatFeatureFlagsSlice
- type TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) AddChatID(i int64) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) AddCreatedAt(i int64) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) AddUpdatedAt(i int64) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) Exec(ctx context.Context) error
- func (tcffu *TelegramChatFeatureFlagsUpdate) ExecX(ctx context.Context)
- func (tcffu *TelegramChatFeatureFlagsUpdate) Mutation() *TelegramChatFeatureFlagsMutation
- func (tcffu *TelegramChatFeatureFlagsUpdate) Save(ctx context.Context) (int, error)
- func (tcffu *TelegramChatFeatureFlagsUpdate) SaveX(ctx context.Context) int
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetChatID(i int64) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetChatTitle(s string) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetChatType(s string) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetCreatedAt(i int64) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetFeatureChatHistoriesRecap(b bool) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableChatTitle(s *string) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableCreatedAt(i *int64) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableUpdatedAt(i *int64) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) SetUpdatedAt(i int64) *TelegramChatFeatureFlagsUpdate
- func (tcffu *TelegramChatFeatureFlagsUpdate) Where(ps ...predicate.TelegramChatFeatureFlags) *TelegramChatFeatureFlagsUpdate
- type TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) AddChatID(i int64) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) AddCreatedAt(i int64) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) AddUpdatedAt(i int64) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Exec(ctx context.Context) error
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) ExecX(ctx context.Context)
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Mutation() *TelegramChatFeatureFlagsMutation
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Save(ctx context.Context) (*TelegramChatFeatureFlags, error)
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SaveX(ctx context.Context) *TelegramChatFeatureFlags
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Select(field string, fields ...string) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetChatID(i int64) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetChatTitle(s string) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetChatType(s string) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetCreatedAt(i int64) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetFeatureChatHistoriesRecap(b bool) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetNillableChatTitle(s *string) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetNillableCreatedAt(i *int64) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetNillableUpdatedAt(i *int64) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetUpdatedAt(i int64) *TelegramChatFeatureFlagsUpdateOne
- func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Where(ps ...predicate.TelegramChatFeatureFlags) *TelegramChatFeatureFlagsUpdateOne
- type TelegramChatRecapsOptions
- type TelegramChatRecapsOptionsClient
- func (c *TelegramChatRecapsOptionsClient) Create() *TelegramChatRecapsOptionsCreate
- func (c *TelegramChatRecapsOptionsClient) CreateBulk(builders ...*TelegramChatRecapsOptionsCreate) *TelegramChatRecapsOptionsCreateBulk
- func (c *TelegramChatRecapsOptionsClient) Delete() *TelegramChatRecapsOptionsDelete
- func (c *TelegramChatRecapsOptionsClient) DeleteOne(tcro *TelegramChatRecapsOptions) *TelegramChatRecapsOptionsDeleteOne
- func (c *TelegramChatRecapsOptionsClient) DeleteOneID(id uuid.UUID) *TelegramChatRecapsOptionsDeleteOne
- func (c *TelegramChatRecapsOptionsClient) Get(ctx context.Context, id uuid.UUID) (*TelegramChatRecapsOptions, error)
- func (c *TelegramChatRecapsOptionsClient) GetX(ctx context.Context, id uuid.UUID) *TelegramChatRecapsOptions
- func (c *TelegramChatRecapsOptionsClient) Hooks() []Hook
- func (c *TelegramChatRecapsOptionsClient) Intercept(interceptors ...Interceptor)
- func (c *TelegramChatRecapsOptionsClient) Interceptors() []Interceptor
- func (c *TelegramChatRecapsOptionsClient) Query() *TelegramChatRecapsOptionsQuery
- func (c *TelegramChatRecapsOptionsClient) Update() *TelegramChatRecapsOptionsUpdate
- func (c *TelegramChatRecapsOptionsClient) UpdateOne(tcro *TelegramChatRecapsOptions) *TelegramChatRecapsOptionsUpdateOne
- func (c *TelegramChatRecapsOptionsClient) UpdateOneID(id uuid.UUID) *TelegramChatRecapsOptionsUpdateOne
- func (c *TelegramChatRecapsOptionsClient) Use(hooks ...Hook)
- type TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) Exec(ctx context.Context) error
- func (tcroc *TelegramChatRecapsOptionsCreate) ExecX(ctx context.Context)
- func (tcroc *TelegramChatRecapsOptionsCreate) Mutation() *TelegramChatRecapsOptionsMutation
- func (tcroc *TelegramChatRecapsOptionsCreate) Save(ctx context.Context) (*TelegramChatRecapsOptions, error)
- func (tcroc *TelegramChatRecapsOptionsCreate) SaveX(ctx context.Context) *TelegramChatRecapsOptions
- func (tcroc *TelegramChatRecapsOptionsCreate) SetAutoRecapSendMode(i int) *TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) SetChatID(i int64) *TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) SetCreatedAt(i int64) *TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) SetID(u uuid.UUID) *TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableAutoRecapSendMode(i *int) *TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableCreatedAt(i *int64) *TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableID(u *uuid.UUID) *TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableUpdatedAt(i *int64) *TelegramChatRecapsOptionsCreate
- func (tcroc *TelegramChatRecapsOptionsCreate) SetUpdatedAt(i int64) *TelegramChatRecapsOptionsCreate
- type TelegramChatRecapsOptionsCreateBulk
- func (tcrocb *TelegramChatRecapsOptionsCreateBulk) Exec(ctx context.Context) error
- func (tcrocb *TelegramChatRecapsOptionsCreateBulk) ExecX(ctx context.Context)
- func (tcrocb *TelegramChatRecapsOptionsCreateBulk) Save(ctx context.Context) ([]*TelegramChatRecapsOptions, error)
- func (tcrocb *TelegramChatRecapsOptionsCreateBulk) SaveX(ctx context.Context) []*TelegramChatRecapsOptions
- type TelegramChatRecapsOptionsDelete
- type TelegramChatRecapsOptionsDeleteOne
- type TelegramChatRecapsOptionsGroupBy
- func (tcrogb *TelegramChatRecapsOptionsGroupBy) Aggregate(fns ...AggregateFunc) *TelegramChatRecapsOptionsGroupBy
- func (s *TelegramChatRecapsOptionsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TelegramChatRecapsOptionsGroupBy) BoolX(ctx context.Context) bool
- func (s *TelegramChatRecapsOptionsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TelegramChatRecapsOptionsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TelegramChatRecapsOptionsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TelegramChatRecapsOptionsGroupBy) Float64X(ctx context.Context) float64
- func (s *TelegramChatRecapsOptionsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TelegramChatRecapsOptionsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TelegramChatRecapsOptionsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TelegramChatRecapsOptionsGroupBy) IntX(ctx context.Context) int
- func (s *TelegramChatRecapsOptionsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TelegramChatRecapsOptionsGroupBy) IntsX(ctx context.Context) []int
- func (tcrogb *TelegramChatRecapsOptionsGroupBy) Scan(ctx context.Context, v any) error
- func (s *TelegramChatRecapsOptionsGroupBy) ScanX(ctx context.Context, v any)
- func (s *TelegramChatRecapsOptionsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TelegramChatRecapsOptionsGroupBy) StringX(ctx context.Context) string
- func (s *TelegramChatRecapsOptionsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TelegramChatRecapsOptionsGroupBy) StringsX(ctx context.Context) []string
- type TelegramChatRecapsOptionsMutation
- func (m *TelegramChatRecapsOptionsMutation) AddAutoRecapSendMode(i int)
- func (m *TelegramChatRecapsOptionsMutation) AddChatID(i int64)
- func (m *TelegramChatRecapsOptionsMutation) AddCreatedAt(i int64)
- func (m *TelegramChatRecapsOptionsMutation) AddField(name string, value ent.Value) error
- func (m *TelegramChatRecapsOptionsMutation) AddUpdatedAt(i int64)
- func (m *TelegramChatRecapsOptionsMutation) AddedAutoRecapSendMode() (r int, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) AddedChatID() (r int64, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) AddedEdges() []string
- func (m *TelegramChatRecapsOptionsMutation) AddedField(name string) (ent.Value, bool)
- func (m *TelegramChatRecapsOptionsMutation) AddedFields() []string
- func (m *TelegramChatRecapsOptionsMutation) AddedIDs(name string) []ent.Value
- func (m *TelegramChatRecapsOptionsMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) AutoRecapSendMode() (r int, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) ChatID() (r int64, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) ClearEdge(name string) error
- func (m *TelegramChatRecapsOptionsMutation) ClearField(name string) error
- func (m *TelegramChatRecapsOptionsMutation) ClearedEdges() []string
- func (m *TelegramChatRecapsOptionsMutation) ClearedFields() []string
- func (m TelegramChatRecapsOptionsMutation) Client() *Client
- func (m *TelegramChatRecapsOptionsMutation) CreatedAt() (r int64, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) EdgeCleared(name string) bool
- func (m *TelegramChatRecapsOptionsMutation) Field(name string) (ent.Value, bool)
- func (m *TelegramChatRecapsOptionsMutation) FieldCleared(name string) bool
- func (m *TelegramChatRecapsOptionsMutation) Fields() []string
- func (m *TelegramChatRecapsOptionsMutation) ID() (id uuid.UUID, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *TelegramChatRecapsOptionsMutation) OldAutoRecapSendMode(ctx context.Context) (v int, err error)
- func (m *TelegramChatRecapsOptionsMutation) OldChatID(ctx context.Context) (v int64, err error)
- func (m *TelegramChatRecapsOptionsMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *TelegramChatRecapsOptionsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TelegramChatRecapsOptionsMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *TelegramChatRecapsOptionsMutation) Op() Op
- func (m *TelegramChatRecapsOptionsMutation) RemovedEdges() []string
- func (m *TelegramChatRecapsOptionsMutation) RemovedIDs(name string) []ent.Value
- func (m *TelegramChatRecapsOptionsMutation) ResetAutoRecapSendMode()
- func (m *TelegramChatRecapsOptionsMutation) ResetChatID()
- func (m *TelegramChatRecapsOptionsMutation) ResetCreatedAt()
- func (m *TelegramChatRecapsOptionsMutation) ResetEdge(name string) error
- func (m *TelegramChatRecapsOptionsMutation) ResetField(name string) error
- func (m *TelegramChatRecapsOptionsMutation) ResetUpdatedAt()
- func (m *TelegramChatRecapsOptionsMutation) SetAutoRecapSendMode(i int)
- func (m *TelegramChatRecapsOptionsMutation) SetChatID(i int64)
- func (m *TelegramChatRecapsOptionsMutation) SetCreatedAt(i int64)
- func (m *TelegramChatRecapsOptionsMutation) SetField(name string, value ent.Value) error
- func (m *TelegramChatRecapsOptionsMutation) SetID(id uuid.UUID)
- func (m *TelegramChatRecapsOptionsMutation) SetOp(op Op)
- func (m *TelegramChatRecapsOptionsMutation) SetUpdatedAt(i int64)
- func (m TelegramChatRecapsOptionsMutation) Tx() (*Tx, error)
- func (m *TelegramChatRecapsOptionsMutation) Type() string
- func (m *TelegramChatRecapsOptionsMutation) UpdatedAt() (r int64, exists bool)
- func (m *TelegramChatRecapsOptionsMutation) Where(ps ...predicate.TelegramChatRecapsOptions)
- func (m *TelegramChatRecapsOptionsMutation) WhereP(ps ...func(*sql.Selector))
- type TelegramChatRecapsOptionsQuery
- func (tcroq *TelegramChatRecapsOptionsQuery) Aggregate(fns ...AggregateFunc) *TelegramChatRecapsOptionsSelect
- func (tcroq *TelegramChatRecapsOptionsQuery) All(ctx context.Context) ([]*TelegramChatRecapsOptions, error)
- func (tcroq *TelegramChatRecapsOptionsQuery) AllX(ctx context.Context) []*TelegramChatRecapsOptions
- func (tcroq *TelegramChatRecapsOptionsQuery) Clone() *TelegramChatRecapsOptionsQuery
- func (tcroq *TelegramChatRecapsOptionsQuery) Count(ctx context.Context) (int, error)
- func (tcroq *TelegramChatRecapsOptionsQuery) CountX(ctx context.Context) int
- func (tcroq *TelegramChatRecapsOptionsQuery) Exist(ctx context.Context) (bool, error)
- func (tcroq *TelegramChatRecapsOptionsQuery) ExistX(ctx context.Context) bool
- func (tcroq *TelegramChatRecapsOptionsQuery) First(ctx context.Context) (*TelegramChatRecapsOptions, error)
- func (tcroq *TelegramChatRecapsOptionsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tcroq *TelegramChatRecapsOptionsQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (tcroq *TelegramChatRecapsOptionsQuery) FirstX(ctx context.Context) *TelegramChatRecapsOptions
- func (tcroq *TelegramChatRecapsOptionsQuery) GroupBy(field string, fields ...string) *TelegramChatRecapsOptionsGroupBy
- func (tcroq *TelegramChatRecapsOptionsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (tcroq *TelegramChatRecapsOptionsQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tcroq *TelegramChatRecapsOptionsQuery) Limit(limit int) *TelegramChatRecapsOptionsQuery
- func (tcroq *TelegramChatRecapsOptionsQuery) Offset(offset int) *TelegramChatRecapsOptionsQuery
- func (tcroq *TelegramChatRecapsOptionsQuery) Only(ctx context.Context) (*TelegramChatRecapsOptions, error)
- func (tcroq *TelegramChatRecapsOptionsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tcroq *TelegramChatRecapsOptionsQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (tcroq *TelegramChatRecapsOptionsQuery) OnlyX(ctx context.Context) *TelegramChatRecapsOptions
- func (tcroq *TelegramChatRecapsOptionsQuery) Order(o ...telegramchatrecapsoptions.OrderOption) *TelegramChatRecapsOptionsQuery
- func (tcroq *TelegramChatRecapsOptionsQuery) Select(fields ...string) *TelegramChatRecapsOptionsSelect
- func (tcroq *TelegramChatRecapsOptionsQuery) Unique(unique bool) *TelegramChatRecapsOptionsQuery
- func (tcroq *TelegramChatRecapsOptionsQuery) Where(ps ...predicate.TelegramChatRecapsOptions) *TelegramChatRecapsOptionsQuery
- type TelegramChatRecapsOptionsSelect
- func (tcros *TelegramChatRecapsOptionsSelect) Aggregate(fns ...AggregateFunc) *TelegramChatRecapsOptionsSelect
- func (s *TelegramChatRecapsOptionsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TelegramChatRecapsOptionsSelect) BoolX(ctx context.Context) bool
- func (s *TelegramChatRecapsOptionsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TelegramChatRecapsOptionsSelect) BoolsX(ctx context.Context) []bool
- func (s *TelegramChatRecapsOptionsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TelegramChatRecapsOptionsSelect) Float64X(ctx context.Context) float64
- func (s *TelegramChatRecapsOptionsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TelegramChatRecapsOptionsSelect) Float64sX(ctx context.Context) []float64
- func (s *TelegramChatRecapsOptionsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TelegramChatRecapsOptionsSelect) IntX(ctx context.Context) int
- func (s *TelegramChatRecapsOptionsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TelegramChatRecapsOptionsSelect) IntsX(ctx context.Context) []int
- func (tcros *TelegramChatRecapsOptionsSelect) Scan(ctx context.Context, v any) error
- func (s *TelegramChatRecapsOptionsSelect) ScanX(ctx context.Context, v any)
- func (s *TelegramChatRecapsOptionsSelect) String(ctx context.Context) (_ string, err error)
- func (s *TelegramChatRecapsOptionsSelect) StringX(ctx context.Context) string
- func (s *TelegramChatRecapsOptionsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TelegramChatRecapsOptionsSelect) StringsX(ctx context.Context) []string
- type TelegramChatRecapsOptionsSlice
- type TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) AddAutoRecapSendMode(i int) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) AddChatID(i int64) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) AddCreatedAt(i int64) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) AddUpdatedAt(i int64) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) Exec(ctx context.Context) error
- func (tcrou *TelegramChatRecapsOptionsUpdate) ExecX(ctx context.Context)
- func (tcrou *TelegramChatRecapsOptionsUpdate) Mutation() *TelegramChatRecapsOptionsMutation
- func (tcrou *TelegramChatRecapsOptionsUpdate) Save(ctx context.Context) (int, error)
- func (tcrou *TelegramChatRecapsOptionsUpdate) SaveX(ctx context.Context) int
- func (tcrou *TelegramChatRecapsOptionsUpdate) SetAutoRecapSendMode(i int) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) SetChatID(i int64) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) SetCreatedAt(i int64) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) SetNillableAutoRecapSendMode(i *int) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) SetNillableCreatedAt(i *int64) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) SetNillableUpdatedAt(i *int64) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) SetUpdatedAt(i int64) *TelegramChatRecapsOptionsUpdate
- func (tcrou *TelegramChatRecapsOptionsUpdate) Where(ps ...predicate.TelegramChatRecapsOptions) *TelegramChatRecapsOptionsUpdate
- type TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddAutoRecapSendMode(i int) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddChatID(i int64) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddCreatedAt(i int64) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddUpdatedAt(i int64) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Exec(ctx context.Context) error
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) ExecX(ctx context.Context)
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Mutation() *TelegramChatRecapsOptionsMutation
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Save(ctx context.Context) (*TelegramChatRecapsOptions, error)
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SaveX(ctx context.Context) *TelegramChatRecapsOptions
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Select(field string, fields ...string) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetAutoRecapSendMode(i int) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetChatID(i int64) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetCreatedAt(i int64) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetNillableAutoRecapSendMode(i *int) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetNillableCreatedAt(i *int64) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetNillableUpdatedAt(i *int64) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetUpdatedAt(i int64) *TelegramChatRecapsOptionsUpdateOne
- func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Where(ps ...predicate.TelegramChatRecapsOptions) *TelegramChatRecapsOptionsUpdateOne
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeChatHistories = "ChatHistories" TypeLogChatHistoriesRecap = "LogChatHistoriesRecap" TypeLogSummarizations = "LogSummarizations" TypeMetricOpenAIChatCompletionTokenUsage = "MetricOpenAIChatCompletionTokenUsage" TypeSlackOAuthCredentials = "SlackOAuthCredentials" TypeTelegramChatAutoRecapsSubscribers = "TelegramChatAutoRecapsSubscribers" TypeTelegramChatFeatureFlags = "TelegramChatFeatureFlags" TypeTelegramChatRecapsOptions = "TelegramChatRecapsOptions" )
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
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.
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 ¶
func (c *ChatHistoriesClient) Create() *ChatHistoriesCreate
Create returns a builder for creating a ChatHistories entity.
func (*ChatHistoriesClient) CreateBulk ¶
func (c *ChatHistoriesClient) CreateBulk(builders ...*ChatHistoriesCreate) *ChatHistoriesCreateBulk
CreateBulk returns a builder for creating a bulk of ChatHistories entities.
func (*ChatHistoriesClient) Delete ¶
func (c *ChatHistoriesClient) Delete() *ChatHistoriesDelete
Delete returns a delete builder for ChatHistories.
func (*ChatHistoriesClient) DeleteOne ¶
func (c *ChatHistoriesClient) DeleteOne(ch *ChatHistories) *ChatHistoriesDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ChatHistoriesClient) DeleteOneID ¶
func (c *ChatHistoriesClient) DeleteOneID(id uuid.UUID) *ChatHistoriesDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ChatHistoriesClient) Get ¶
func (c *ChatHistoriesClient) Get(ctx context.Context, id uuid.UUID) (*ChatHistories, error)
Get returns a ChatHistories entity by its id.
func (*ChatHistoriesClient) GetX ¶
func (c *ChatHistoriesClient) GetX(ctx context.Context, id uuid.UUID) *ChatHistories
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) Query ¶
func (c *ChatHistoriesClient) Query() *ChatHistoriesQuery
Query returns a query builder for ChatHistories.
func (*ChatHistoriesClient) Update ¶
func (c *ChatHistoriesClient) Update() *ChatHistoriesUpdate
Update returns an update builder for ChatHistories.
func (*ChatHistoriesClient) UpdateOne ¶
func (c *ChatHistoriesClient) UpdateOne(ch *ChatHistories) *ChatHistoriesUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ChatHistoriesClient) UpdateOneID ¶
func (c *ChatHistoriesClient) UpdateOneID(id uuid.UUID) *ChatHistoriesUpdateOne
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 ¶
func (chc *ChatHistoriesCreate) Save(ctx context.Context) (*ChatHistories, error)
Save creates the ChatHistories in the database.
func (*ChatHistoriesCreate) SaveX ¶
func (chc *ChatHistoriesCreate) SaveX(ctx context.Context) *ChatHistories
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 ¶
func (chc *ChatHistoriesCreate) SetID(u uuid.UUID) *ChatHistoriesCreate
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 ¶
func (chc *ChatHistoriesCreate) SetText(s string) *ChatHistoriesCreate
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 ¶
func (chcb *ChatHistoriesCreateBulk) Save(ctx context.Context) ([]*ChatHistories, error)
Save creates the ChatHistories entities in the database.
func (*ChatHistoriesCreateBulk) SaveX ¶
func (chcb *ChatHistoriesCreateBulk) SaveX(ctx context.Context) []*ChatHistories
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 ¶
func (chd *ChatHistoriesDelete) Where(ps ...predicate.ChatHistories) *ChatHistoriesDelete
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 ¶
func (chdo *ChatHistoriesDeleteOne) Where(ps ...predicate.ChatHistories) *ChatHistoriesDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
func (m *ChatHistoriesMutation) Where(ps ...predicate.ChatHistories)
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 ¶
func (chq *ChatHistoriesQuery) All(ctx context.Context) ([]*ChatHistories, error)
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 ¶
func (chq *ChatHistoriesQuery) First(ctx context.Context) (*ChatHistories, error)
First returns the first ChatHistories entity from the query. Returns a *NotFoundError when no ChatHistories was found.
func (*ChatHistoriesQuery) FirstID ¶
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) 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 ¶
func (chq *ChatHistoriesQuery) Only(ctx context.Context) (*ChatHistories, error)
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 ¶
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 ¶
func (chq *ChatHistoriesQuery) OnlyX(ctx context.Context) *ChatHistories
OnlyX is like Only, but panics if an error occurs.
func (*ChatHistoriesQuery) Order ¶
func (chq *ChatHistoriesQuery) Order(o ...chathistories.OrderOption) *ChatHistoriesQuery
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 ¶
func (chq *ChatHistoriesQuery) Where(ps ...predicate.ChatHistories) *ChatHistoriesQuery
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ChatHistoriesSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (chu *ChatHistoriesUpdate) SetText(s string) *ChatHistoriesUpdate
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 ¶
func (chu *ChatHistoriesUpdate) Where(ps ...predicate.ChatHistories) *ChatHistoriesUpdate
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 ¶
func (chuo *ChatHistoriesUpdateOne) AddChatID(i int64) *ChatHistoriesUpdateOne
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 ¶
func (chuo *ChatHistoriesUpdateOne) AddUserID(i int64) *ChatHistoriesUpdateOne
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 ¶
func (chuo *ChatHistoriesUpdateOne) Mutation() *ChatHistoriesMutation
Mutation returns the ChatHistoriesMutation object of the builder.
func (*ChatHistoriesUpdateOne) Save ¶
func (chuo *ChatHistoriesUpdateOne) Save(ctx context.Context) (*ChatHistories, error)
Save executes the query and returns the updated ChatHistories entity.
func (*ChatHistoriesUpdateOne) SaveX ¶
func (chuo *ChatHistoriesUpdateOne) SaveX(ctx context.Context) *ChatHistories
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 ¶
func (chuo *ChatHistoriesUpdateOne) SetChatID(i int64) *ChatHistoriesUpdateOne
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
func (chuo *ChatHistoriesUpdateOne) SetChatType(s string) *ChatHistoriesUpdateOne
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 ¶
func (chuo *ChatHistoriesUpdateOne) SetFullName(s string) *ChatHistoriesUpdateOne
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 ¶
func (chuo *ChatHistoriesUpdateOne) SetText(s string) *ChatHistoriesUpdateOne
SetText sets the "text" field.
func (*ChatHistoriesUpdateOne) SetUpdatedAt ¶
func (chuo *ChatHistoriesUpdateOne) SetUpdatedAt(i int64) *ChatHistoriesUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ChatHistoriesUpdateOne) SetUserID ¶
func (chuo *ChatHistoriesUpdateOne) SetUserID(i int64) *ChatHistoriesUpdateOne
SetUserID sets the "user_id" field.
func (*ChatHistoriesUpdateOne) SetUsername ¶
func (chuo *ChatHistoriesUpdateOne) SetUsername(s string) *ChatHistoriesUpdateOne
SetUsername sets the "username" field.
func (*ChatHistoriesUpdateOne) Where ¶
func (chuo *ChatHistoriesUpdateOne) Where(ps ...predicate.ChatHistories) *ChatHistoriesUpdateOne
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 // 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 ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
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) Debug ¶
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(...)`.
type CommitFunc ¶
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.
type CommitHook ¶
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 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 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"` // 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 ¶
func (lchr *LogChatHistoriesRecap) Unwrap() *LogChatHistoriesRecap
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 ¶
func (lchr *LogChatHistoriesRecap) Update() *LogChatHistoriesRecapUpdateOne
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.
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 ¶
func (c *LogChatHistoriesRecapClient) Create() *LogChatHistoriesRecapCreate
Create returns a builder for creating a LogChatHistoriesRecap entity.
func (*LogChatHistoriesRecapClient) CreateBulk ¶
func (c *LogChatHistoriesRecapClient) CreateBulk(builders ...*LogChatHistoriesRecapCreate) *LogChatHistoriesRecapCreateBulk
CreateBulk returns a builder for creating a bulk of LogChatHistoriesRecap entities.
func (*LogChatHistoriesRecapClient) Delete ¶
func (c *LogChatHistoriesRecapClient) Delete() *LogChatHistoriesRecapDelete
Delete returns a delete builder for LogChatHistoriesRecap.
func (*LogChatHistoriesRecapClient) DeleteOne ¶
func (c *LogChatHistoriesRecapClient) DeleteOne(lchr *LogChatHistoriesRecap) *LogChatHistoriesRecapDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*LogChatHistoriesRecapClient) DeleteOneID ¶
func (c *LogChatHistoriesRecapClient) DeleteOneID(id uuid.UUID) *LogChatHistoriesRecapDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*LogChatHistoriesRecapClient) Get ¶
func (c *LogChatHistoriesRecapClient) Get(ctx context.Context, id uuid.UUID) (*LogChatHistoriesRecap, error)
Get returns a LogChatHistoriesRecap entity by its id.
func (*LogChatHistoriesRecapClient) GetX ¶
func (c *LogChatHistoriesRecapClient) GetX(ctx context.Context, id uuid.UUID) *LogChatHistoriesRecap
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) Query ¶
func (c *LogChatHistoriesRecapClient) Query() *LogChatHistoriesRecapQuery
Query returns a query builder for LogChatHistoriesRecap.
func (*LogChatHistoriesRecapClient) Update ¶
func (c *LogChatHistoriesRecapClient) Update() *LogChatHistoriesRecapUpdate
Update returns an update builder for LogChatHistoriesRecap.
func (*LogChatHistoriesRecapClient) UpdateOne ¶
func (c *LogChatHistoriesRecapClient) UpdateOne(lchr *LogChatHistoriesRecap) *LogChatHistoriesRecapUpdateOne
UpdateOne returns an update builder for the given entity.
func (*LogChatHistoriesRecapClient) UpdateOneID ¶
func (c *LogChatHistoriesRecapClient) UpdateOneID(id uuid.UUID) *LogChatHistoriesRecapUpdateOne
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 ¶
func (lchrc *LogChatHistoriesRecapCreate) Exec(ctx context.Context) error
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 ¶
func (lchrc *LogChatHistoriesRecapCreate) Mutation() *LogChatHistoriesRecapMutation
Mutation returns the LogChatHistoriesRecapMutation object of the builder.
func (*LogChatHistoriesRecapCreate) Save ¶
func (lchrc *LogChatHistoriesRecapCreate) Save(ctx context.Context) (*LogChatHistoriesRecap, error)
Save creates the LogChatHistoriesRecap in the database.
func (*LogChatHistoriesRecapCreate) SaveX ¶
func (lchrc *LogChatHistoriesRecapCreate) SaveX(ctx context.Context) *LogChatHistoriesRecap
SaveX calls Save and panics if Save returns an error.
func (*LogChatHistoriesRecapCreate) SetChatID ¶
func (lchrc *LogChatHistoriesRecapCreate) SetChatID(i int64) *LogChatHistoriesRecapCreate
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 ¶
func (lchrc *LogChatHistoriesRecapCreate) SetCreatedAt(i int64) *LogChatHistoriesRecapCreate
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 ¶
func (lchrc *LogChatHistoriesRecapCreate) SetID(u uuid.UUID) *LogChatHistoriesRecapCreate
SetID sets the "id" 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 ¶
func (lchrc *LogChatHistoriesRecapCreate) SetNillableID(u *uuid.UUID) *LogChatHistoriesRecapCreate
SetNillableID sets the "id" 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 ¶
func (lchrc *LogChatHistoriesRecapCreate) SetRecapInputs(s string) *LogChatHistoriesRecapCreate
SetRecapInputs sets the "recap_inputs" field.
func (*LogChatHistoriesRecapCreate) SetRecapOutputs ¶
func (lchrc *LogChatHistoriesRecapCreate) SetRecapOutputs(s string) *LogChatHistoriesRecapCreate
SetRecapOutputs sets the "recap_outputs" field.
func (*LogChatHistoriesRecapCreate) SetRecapType ¶ added in v0.14.0
func (lchrc *LogChatHistoriesRecapCreate) SetRecapType(i int) *LogChatHistoriesRecapCreate
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 ¶
func (lchrc *LogChatHistoriesRecapCreate) SetUpdatedAt(i int64) *LogChatHistoriesRecapCreate
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 ¶
func (lchrcb *LogChatHistoriesRecapCreateBulk) Exec(ctx context.Context) error
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 ¶
func (lchrcb *LogChatHistoriesRecapCreateBulk) Save(ctx context.Context) ([]*LogChatHistoriesRecap, error)
Save creates the LogChatHistoriesRecap entities in the database.
func (*LogChatHistoriesRecapCreateBulk) SaveX ¶
func (lchrcb *LogChatHistoriesRecapCreateBulk) SaveX(ctx context.Context) []*LogChatHistoriesRecap
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 ¶
func (lchrd *LogChatHistoriesRecapDelete) Where(ps ...predicate.LogChatHistoriesRecap) *LogChatHistoriesRecapDelete
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 ¶
func (lchrdo *LogChatHistoriesRecapDeleteOne) Exec(ctx context.Context) error
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 ¶
func (lchrdo *LogChatHistoriesRecapDeleteOne) Where(ps ...predicate.LogChatHistoriesRecap) *LogChatHistoriesRecapDeleteOne
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 ¶
func (lchrgb *LogChatHistoriesRecapGroupBy) Aggregate(fns ...AggregateFunc) *LogChatHistoriesRecapGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*LogChatHistoriesRecapGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*LogChatHistoriesRecapGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*LogChatHistoriesRecapGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapGroupBy) StringX ¶
StringX is like String, 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 ¶
func (m LogChatHistoriesRecapMutation) 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 (*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 ¶
func (m *LogChatHistoriesRecapMutation) 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 (*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) 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 ¶
func (m *LogChatHistoriesRecapMutation) 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 (*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) 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 ¶
func (m *LogChatHistoriesRecapMutation) Op() 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) 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 ¶
func (m *LogChatHistoriesRecapMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of LogChatHistoriesRecap entities.
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 ¶
func (m LogChatHistoriesRecapMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*LogChatHistoriesRecapMutation) Type ¶
func (m *LogChatHistoriesRecapMutation) Type() string
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 ¶
func (m *LogChatHistoriesRecapMutation) Where(ps ...predicate.LogChatHistoriesRecap)
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 ¶
func (lchrq *LogChatHistoriesRecapQuery) Aggregate(fns ...AggregateFunc) *LogChatHistoriesRecapSelect
Aggregate returns a LogChatHistoriesRecapSelect configured with the given aggregations.
func (*LogChatHistoriesRecapQuery) All ¶
func (lchrq *LogChatHistoriesRecapQuery) All(ctx context.Context) ([]*LogChatHistoriesRecap, error)
All executes the query and returns a list of LogChatHistoriesRecaps.
func (*LogChatHistoriesRecapQuery) AllX ¶
func (lchrq *LogChatHistoriesRecapQuery) AllX(ctx context.Context) []*LogChatHistoriesRecap
AllX is like All, but panics if an error occurs.
func (*LogChatHistoriesRecapQuery) Clone ¶
func (lchrq *LogChatHistoriesRecapQuery) Clone() *LogChatHistoriesRecapQuery
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 ¶
func (lchrq *LogChatHistoriesRecapQuery) First(ctx context.Context) (*LogChatHistoriesRecap, error)
First returns the first LogChatHistoriesRecap entity from the query. Returns a *NotFoundError when no LogChatHistoriesRecap was found.
func (*LogChatHistoriesRecapQuery) FirstID ¶
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 ¶
func (lchrq *LogChatHistoriesRecapQuery) FirstX(ctx context.Context) *LogChatHistoriesRecap
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 ¶
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 ¶
func (lchrq *LogChatHistoriesRecapQuery) Limit(limit int) *LogChatHistoriesRecapQuery
Limit the number of records to be returned by this query.
func (*LogChatHistoriesRecapQuery) Offset ¶
func (lchrq *LogChatHistoriesRecapQuery) Offset(offset int) *LogChatHistoriesRecapQuery
Offset to start from.
func (*LogChatHistoriesRecapQuery) Only ¶
func (lchrq *LogChatHistoriesRecapQuery) Only(ctx context.Context) (*LogChatHistoriesRecap, error)
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 ¶
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 ¶
func (lchrq *LogChatHistoriesRecapQuery) OnlyX(ctx context.Context) *LogChatHistoriesRecap
OnlyX is like Only, but panics if an error occurs.
func (*LogChatHistoriesRecapQuery) Order ¶
func (lchrq *LogChatHistoriesRecapQuery) Order(o ...logchathistoriesrecap.OrderOption) *LogChatHistoriesRecapQuery
Order specifies how the records should be ordered.
func (*LogChatHistoriesRecapQuery) Select ¶
func (lchrq *LogChatHistoriesRecapQuery) Select(fields ...string) *LogChatHistoriesRecapSelect
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 ¶
func (lchrq *LogChatHistoriesRecapQuery) Unique(unique bool) *LogChatHistoriesRecapQuery
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 ¶
func (lchrq *LogChatHistoriesRecapQuery) Where(ps ...predicate.LogChatHistoriesRecap) *LogChatHistoriesRecapQuery
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 ¶
func (lchrs *LogChatHistoriesRecapSelect) Aggregate(fns ...AggregateFunc) *LogChatHistoriesRecapSelect
Aggregate adds the given aggregation functions to the selector query.
func (*LogChatHistoriesRecapSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*LogChatHistoriesRecapSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*LogChatHistoriesRecapSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*LogChatHistoriesRecapSelect) StringX ¶
StringX is like String, 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 ¶
func (lchru *LogChatHistoriesRecapUpdate) AddChatID(i int64) *LogChatHistoriesRecapUpdate
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 ¶
func (lchru *LogChatHistoriesRecapUpdate) AddCreatedAt(i int64) *LogChatHistoriesRecapUpdate
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
func (lchru *LogChatHistoriesRecapUpdate) AddRecapType(i int) *LogChatHistoriesRecapUpdate
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 ¶
func (lchru *LogChatHistoriesRecapUpdate) AddUpdatedAt(i int64) *LogChatHistoriesRecapUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*LogChatHistoriesRecapUpdate) Exec ¶
func (lchru *LogChatHistoriesRecapUpdate) Exec(ctx context.Context) error
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 ¶
func (lchru *LogChatHistoriesRecapUpdate) Mutation() *LogChatHistoriesRecapMutation
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 ¶
func (lchru *LogChatHistoriesRecapUpdate) SetChatID(i int64) *LogChatHistoriesRecapUpdate
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 ¶
func (lchru *LogChatHistoriesRecapUpdate) SetCreatedAt(i int64) *LogChatHistoriesRecapUpdate
SetCreatedAt sets the "created_at" field.
func (*LogChatHistoriesRecapUpdate) SetFromPlatform ¶
func (lchru *LogChatHistoriesRecapUpdate) SetFromPlatform(i int) *LogChatHistoriesRecapUpdate
SetFromPlatform sets the "from_platform" 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) 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 ¶
func (lchru *LogChatHistoriesRecapUpdate) SetRecapInputs(s string) *LogChatHistoriesRecapUpdate
SetRecapInputs sets the "recap_inputs" field.
func (*LogChatHistoriesRecapUpdate) SetRecapOutputs ¶
func (lchru *LogChatHistoriesRecapUpdate) SetRecapOutputs(s string) *LogChatHistoriesRecapUpdate
SetRecapOutputs sets the "recap_outputs" field.
func (*LogChatHistoriesRecapUpdate) SetRecapType ¶ added in v0.14.0
func (lchru *LogChatHistoriesRecapUpdate) SetRecapType(i int) *LogChatHistoriesRecapUpdate
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 ¶
func (lchru *LogChatHistoriesRecapUpdate) SetUpdatedAt(i int64) *LogChatHistoriesRecapUpdate
SetUpdatedAt sets the "updated_at" field.
func (*LogChatHistoriesRecapUpdate) Where ¶
func (lchru *LogChatHistoriesRecapUpdate) Where(ps ...predicate.LogChatHistoriesRecap) *LogChatHistoriesRecapUpdate
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 ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) AddChatID(i int64) *LogChatHistoriesRecapUpdateOne
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 ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) AddCreatedAt(i int64) *LogChatHistoriesRecapUpdateOne
AddCreatedAt adds i to the "created_at" field.
func (*LogChatHistoriesRecapUpdateOne) AddFromPlatform ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) AddFromPlatform(i int) *LogChatHistoriesRecapUpdateOne
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
func (lchruo *LogChatHistoriesRecapUpdateOne) AddRecapType(i int) *LogChatHistoriesRecapUpdateOne
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 ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) AddUpdatedAt(i int64) *LogChatHistoriesRecapUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*LogChatHistoriesRecapUpdateOne) Exec ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) Exec(ctx context.Context) error
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 ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) Mutation() *LogChatHistoriesRecapMutation
Mutation returns the LogChatHistoriesRecapMutation object of the builder.
func (*LogChatHistoriesRecapUpdateOne) Save ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) Save(ctx context.Context) (*LogChatHistoriesRecap, error)
Save executes the query and returns the updated LogChatHistoriesRecap entity.
func (*LogChatHistoriesRecapUpdateOne) SaveX ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) SaveX(ctx context.Context) *LogChatHistoriesRecap
SaveX is like Save, but panics if an error occurs.
func (*LogChatHistoriesRecapUpdateOne) Select ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) Select(field string, fields ...string) *LogChatHistoriesRecapUpdateOne
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 ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) SetChatID(i int64) *LogChatHistoriesRecapUpdateOne
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 ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) SetCreatedAt(i int64) *LogChatHistoriesRecapUpdateOne
SetCreatedAt sets the "created_at" field.
func (*LogChatHistoriesRecapUpdateOne) SetFromPlatform ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) SetFromPlatform(i int) *LogChatHistoriesRecapUpdateOne
SetFromPlatform sets the "from_platform" field.
func (*LogChatHistoriesRecapUpdateOne) SetNillableChatID ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) SetNillableChatID(i *int64) *LogChatHistoriesRecapUpdateOne
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) 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 ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) SetRecapInputs(s string) *LogChatHistoriesRecapUpdateOne
SetRecapInputs sets the "recap_inputs" field.
func (*LogChatHistoriesRecapUpdateOne) SetRecapOutputs ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) SetRecapOutputs(s string) *LogChatHistoriesRecapUpdateOne
SetRecapOutputs sets the "recap_outputs" field.
func (*LogChatHistoriesRecapUpdateOne) SetRecapType ¶ added in v0.14.0
func (lchruo *LogChatHistoriesRecapUpdateOne) SetRecapType(i int) *LogChatHistoriesRecapUpdateOne
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 ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) SetUpdatedAt(i int64) *LogChatHistoriesRecapUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*LogChatHistoriesRecapUpdateOne) Where ¶
func (lchruo *LogChatHistoriesRecapUpdateOne) Where(ps ...predicate.LogChatHistoriesRecap) *LogChatHistoriesRecapUpdateOne
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"` // 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 ¶
func (ls *LogSummarizations) Update() *LogSummarizationsUpdateOne
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.
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 ¶
func (c *LogSummarizationsClient) Create() *LogSummarizationsCreate
Create returns a builder for creating a LogSummarizations entity.
func (*LogSummarizationsClient) CreateBulk ¶
func (c *LogSummarizationsClient) CreateBulk(builders ...*LogSummarizationsCreate) *LogSummarizationsCreateBulk
CreateBulk returns a builder for creating a bulk of LogSummarizations entities.
func (*LogSummarizationsClient) Delete ¶
func (c *LogSummarizationsClient) Delete() *LogSummarizationsDelete
Delete returns a delete builder for LogSummarizations.
func (*LogSummarizationsClient) DeleteOne ¶
func (c *LogSummarizationsClient) DeleteOne(ls *LogSummarizations) *LogSummarizationsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*LogSummarizationsClient) DeleteOneID ¶
func (c *LogSummarizationsClient) DeleteOneID(id uuid.UUID) *LogSummarizationsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*LogSummarizationsClient) Get ¶
func (c *LogSummarizationsClient) Get(ctx context.Context, id uuid.UUID) (*LogSummarizations, error)
Get returns a LogSummarizations entity by its id.
func (*LogSummarizationsClient) GetX ¶
func (c *LogSummarizationsClient) GetX(ctx context.Context, id uuid.UUID) *LogSummarizations
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) Query ¶
func (c *LogSummarizationsClient) Query() *LogSummarizationsQuery
Query returns a query builder for LogSummarizations.
func (*LogSummarizationsClient) Update ¶
func (c *LogSummarizationsClient) Update() *LogSummarizationsUpdate
Update returns an update builder for LogSummarizations.
func (*LogSummarizationsClient) UpdateOne ¶
func (c *LogSummarizationsClient) UpdateOne(ls *LogSummarizations) *LogSummarizationsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*LogSummarizationsClient) UpdateOneID ¶
func (c *LogSummarizationsClient) UpdateOneID(id uuid.UUID) *LogSummarizationsUpdateOne
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 ¶
func (lsc *LogSummarizationsCreate) Exec(ctx context.Context) error
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 ¶
func (lsc *LogSummarizationsCreate) Mutation() *LogSummarizationsMutation
Mutation returns the LogSummarizationsMutation object of the builder.
func (*LogSummarizationsCreate) Save ¶
func (lsc *LogSummarizationsCreate) Save(ctx context.Context) (*LogSummarizations, error)
Save creates the LogSummarizations in the database.
func (*LogSummarizationsCreate) SaveX ¶
func (lsc *LogSummarizationsCreate) SaveX(ctx context.Context) *LogSummarizations
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 ¶
func (lsc *LogSummarizationsCreate) SetContentURL(s string) *LogSummarizationsCreate
SetContentURL sets the "content_url" field.
func (*LogSummarizationsCreate) SetCreatedAt ¶
func (lsc *LogSummarizationsCreate) SetCreatedAt(i int64) *LogSummarizationsCreate
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 ¶
func (lsc *LogSummarizationsCreate) SetID(u uuid.UUID) *LogSummarizationsCreate
SetID sets the "id" 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) 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 ¶
func (lsc *LogSummarizationsCreate) SetUpdatedAt(i int64) *LogSummarizationsCreate
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 ¶
func (lscb *LogSummarizationsCreateBulk) Exec(ctx context.Context) error
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 ¶
func (lscb *LogSummarizationsCreateBulk) Save(ctx context.Context) ([]*LogSummarizations, error)
Save creates the LogSummarizations entities in the database.
func (*LogSummarizationsCreateBulk) SaveX ¶
func (lscb *LogSummarizationsCreateBulk) SaveX(ctx context.Context) []*LogSummarizations
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 ¶
func (lsd *LogSummarizationsDelete) Where(ps ...predicate.LogSummarizations) *LogSummarizationsDelete
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 ¶
func (lsdo *LogSummarizationsDeleteOne) Exec(ctx context.Context) error
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 ¶
func (lsdo *LogSummarizationsDeleteOne) Where(ps ...predicate.LogSummarizations) *LogSummarizationsDeleteOne
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 ¶
func (lsgb *LogSummarizationsGroupBy) Aggregate(fns ...AggregateFunc) *LogSummarizationsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*LogSummarizationsGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*LogSummarizationsGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*LogSummarizationsGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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) 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 ¶
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) 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) 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) 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 ¶
func (m *LogSummarizationsMutation) Type() string
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 ¶
func (m *LogSummarizationsMutation) Where(ps ...predicate.LogSummarizations)
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 ¶
func (lsq *LogSummarizationsQuery) Aggregate(fns ...AggregateFunc) *LogSummarizationsSelect
Aggregate returns a LogSummarizationsSelect configured with the given aggregations.
func (*LogSummarizationsQuery) All ¶
func (lsq *LogSummarizationsQuery) All(ctx context.Context) ([]*LogSummarizations, error)
All executes the query and returns a list of LogSummarizationsSlice.
func (*LogSummarizationsQuery) AllX ¶
func (lsq *LogSummarizationsQuery) AllX(ctx context.Context) []*LogSummarizations
AllX is like All, but panics if an error occurs.
func (*LogSummarizationsQuery) Clone ¶
func (lsq *LogSummarizationsQuery) Clone() *LogSummarizationsQuery
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 ¶
func (lsq *LogSummarizationsQuery) First(ctx context.Context) (*LogSummarizations, error)
First returns the first LogSummarizations entity from the query. Returns a *NotFoundError when no LogSummarizations was found.
func (*LogSummarizationsQuery) FirstID ¶
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 ¶
func (lsq *LogSummarizationsQuery) FirstX(ctx context.Context) *LogSummarizations
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 ¶
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 ¶
func (lsq *LogSummarizationsQuery) Limit(limit int) *LogSummarizationsQuery
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 ¶
func (lsq *LogSummarizationsQuery) Only(ctx context.Context) (*LogSummarizations, error)
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 ¶
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 ¶
func (lsq *LogSummarizationsQuery) OnlyX(ctx context.Context) *LogSummarizations
OnlyX is like Only, but panics if an error occurs.
func (*LogSummarizationsQuery) Order ¶
func (lsq *LogSummarizationsQuery) Order(o ...logsummarizations.OrderOption) *LogSummarizationsQuery
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 ¶
func (lsq *LogSummarizationsQuery) Where(ps ...predicate.LogSummarizations) *LogSummarizationsQuery
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 ¶
func (lss *LogSummarizationsSelect) Aggregate(fns ...AggregateFunc) *LogSummarizationsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*LogSummarizationsSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*LogSummarizationsSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LogSummarizationsSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (lsu *LogSummarizationsUpdate) AddCreatedAt(i int64) *LogSummarizationsUpdate
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 ¶
func (lsu *LogSummarizationsUpdate) AddUpdatedAt(i int64) *LogSummarizationsUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*LogSummarizationsUpdate) Exec ¶
func (lsu *LogSummarizationsUpdate) Exec(ctx context.Context) error
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 ¶
func (lsu *LogSummarizationsUpdate) Mutation() *LogSummarizationsMutation
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 ¶
func (lsu *LogSummarizationsUpdate) SetContentURL(s string) *LogSummarizationsUpdate
SetContentURL sets the "content_url" field.
func (*LogSummarizationsUpdate) SetCreatedAt ¶
func (lsu *LogSummarizationsUpdate) SetCreatedAt(i int64) *LogSummarizationsUpdate
SetCreatedAt sets the "created_at" field.
func (*LogSummarizationsUpdate) SetFromPlatform ¶
func (lsu *LogSummarizationsUpdate) SetFromPlatform(i int) *LogSummarizationsUpdate
SetFromPlatform sets the "from_platform" 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) 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 ¶
func (lsu *LogSummarizationsUpdate) SetUpdatedAt(i int64) *LogSummarizationsUpdate
SetUpdatedAt sets the "updated_at" field.
func (*LogSummarizationsUpdate) Where ¶
func (lsu *LogSummarizationsUpdate) Where(ps ...predicate.LogSummarizations) *LogSummarizationsUpdate
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 ¶
func (lsuo *LogSummarizationsUpdateOne) AddCreatedAt(i int64) *LogSummarizationsUpdateOne
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 ¶
func (lsuo *LogSummarizationsUpdateOne) AddUpdatedAt(i int64) *LogSummarizationsUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*LogSummarizationsUpdateOne) Exec ¶
func (lsuo *LogSummarizationsUpdateOne) Exec(ctx context.Context) error
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 ¶
func (lsuo *LogSummarizationsUpdateOne) Mutation() *LogSummarizationsMutation
Mutation returns the LogSummarizationsMutation object of the builder.
func (*LogSummarizationsUpdateOne) Save ¶
func (lsuo *LogSummarizationsUpdateOne) Save(ctx context.Context) (*LogSummarizations, error)
Save executes the query and returns the updated LogSummarizations entity.
func (*LogSummarizationsUpdateOne) SaveX ¶
func (lsuo *LogSummarizationsUpdateOne) SaveX(ctx context.Context) *LogSummarizations
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 ¶
func (lsuo *LogSummarizationsUpdateOne) SetContentAuthor(s string) *LogSummarizationsUpdateOne
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 ¶
func (lsuo *LogSummarizationsUpdateOne) SetContentText(s string) *LogSummarizationsUpdateOne
SetContentText sets the "content_text" field.
func (*LogSummarizationsUpdateOne) SetContentTitle ¶
func (lsuo *LogSummarizationsUpdateOne) SetContentTitle(s string) *LogSummarizationsUpdateOne
SetContentTitle sets the "content_title" field.
func (*LogSummarizationsUpdateOne) SetContentURL ¶
func (lsuo *LogSummarizationsUpdateOne) SetContentURL(s string) *LogSummarizationsUpdateOne
SetContentURL sets the "content_url" field.
func (*LogSummarizationsUpdateOne) SetCreatedAt ¶
func (lsuo *LogSummarizationsUpdateOne) SetCreatedAt(i int64) *LogSummarizationsUpdateOne
SetCreatedAt sets the "created_at" field.
func (*LogSummarizationsUpdateOne) SetFromPlatform ¶
func (lsuo *LogSummarizationsUpdateOne) SetFromPlatform(i int) *LogSummarizationsUpdateOne
SetFromPlatform sets the "from_platform" 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) 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 ¶
func (lsuo *LogSummarizationsUpdateOne) SetUpdatedAt(i int64) *LogSummarizationsUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*LogSummarizationsUpdateOne) Where ¶
func (lsuo *LogSummarizationsUpdateOne) Where(ps ...predicate.LogSummarizations) *LogSummarizationsUpdateOne
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"` // 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 ¶
func (moacctu *MetricOpenAIChatCompletionTokenUsage) Unwrap() *MetricOpenAIChatCompletionTokenUsage
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 ¶
func (moacctu *MetricOpenAIChatCompletionTokenUsage) Update() *MetricOpenAIChatCompletionTokenUsageUpdateOne
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 ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) Create() *MetricOpenAIChatCompletionTokenUsageCreate
Create returns a builder for creating a MetricOpenAIChatCompletionTokenUsage entity.
func (*MetricOpenAIChatCompletionTokenUsageClient) CreateBulk ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) CreateBulk(builders ...*MetricOpenAIChatCompletionTokenUsageCreate) *MetricOpenAIChatCompletionTokenUsageCreateBulk
CreateBulk returns a builder for creating a bulk of MetricOpenAIChatCompletionTokenUsage entities.
func (*MetricOpenAIChatCompletionTokenUsageClient) Delete ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) Delete() *MetricOpenAIChatCompletionTokenUsageDelete
Delete returns a delete builder for MetricOpenAIChatCompletionTokenUsage.
func (*MetricOpenAIChatCompletionTokenUsageClient) DeleteOne ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) DeleteOne(moacctu *MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*MetricOpenAIChatCompletionTokenUsageClient) DeleteOneID ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) DeleteOneID(id uuid.UUID) *MetricOpenAIChatCompletionTokenUsageDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*MetricOpenAIChatCompletionTokenUsageClient) Get ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) Get(ctx context.Context, id uuid.UUID) (*MetricOpenAIChatCompletionTokenUsage, error)
Get returns a MetricOpenAIChatCompletionTokenUsage entity by its id.
func (*MetricOpenAIChatCompletionTokenUsageClient) GetX ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) GetX(ctx context.Context, id uuid.UUID) *MetricOpenAIChatCompletionTokenUsage
GetX is like Get, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageClient) Hooks ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) Hooks() []Hook
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 ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*MetricOpenAIChatCompletionTokenUsageClient) Query ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) Query() *MetricOpenAIChatCompletionTokenUsageQuery
Query returns a query builder for MetricOpenAIChatCompletionTokenUsage.
func (*MetricOpenAIChatCompletionTokenUsageClient) Update ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) Update() *MetricOpenAIChatCompletionTokenUsageUpdate
Update returns an update builder for MetricOpenAIChatCompletionTokenUsage.
func (*MetricOpenAIChatCompletionTokenUsageClient) UpdateOne ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) UpdateOne(moacctu *MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageUpdateOne
UpdateOne returns an update builder for the given entity.
func (*MetricOpenAIChatCompletionTokenUsageClient) UpdateOneID ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) UpdateOneID(id uuid.UUID) *MetricOpenAIChatCompletionTokenUsageUpdateOne
UpdateOneID returns an update builder for the given id.
func (*MetricOpenAIChatCompletionTokenUsageClient) Use ¶
func (c *MetricOpenAIChatCompletionTokenUsageClient) Use(hooks ...Hook)
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 ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*MetricOpenAIChatCompletionTokenUsageCreate) ExecX ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageCreate) Mutation ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) Mutation() *MetricOpenAIChatCompletionTokenUsageMutation
Mutation returns the MetricOpenAIChatCompletionTokenUsageMutation object of the builder.
func (*MetricOpenAIChatCompletionTokenUsageCreate) Save ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) Save(ctx context.Context) (*MetricOpenAIChatCompletionTokenUsage, error)
Save creates the MetricOpenAIChatCompletionTokenUsage in the database.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SaveX ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SaveX(ctx context.Context) *MetricOpenAIChatCompletionTokenUsage
SaveX calls Save and panics if Save returns an error.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetCompletionCharacterLength ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageCreate
SetCompletionCharacterLength sets the "completion_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetCompletionTokenUsage ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageCreate
SetCompletionTokenUsage sets the "completion_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetCreatedAt ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageCreate
SetCreatedAt sets the "created_at" field.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetID ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetID(u uuid.UUID) *MetricOpenAIChatCompletionTokenUsageCreate
SetID sets the "id" 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 ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableCreatedAt(i *int64) *MetricOpenAIChatCompletionTokenUsageCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillableID ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableID(u *uuid.UUID) *MetricOpenAIChatCompletionTokenUsageCreate
SetNillableID sets the "id" 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 ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptOperation(s *string) *MetricOpenAIChatCompletionTokenUsageCreate
SetNillablePromptOperation sets the "prompt_operation" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptTokenUsage ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillablePromptTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageCreate
SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetNillableTotalTokenUsage ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetNillableTotalTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageCreate
SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetPromptCharacterLength ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageCreate
SetPromptCharacterLength sets the "prompt_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetPromptOperation ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetPromptOperation(s string) *MetricOpenAIChatCompletionTokenUsageCreate
SetPromptOperation sets the "prompt_operation" field.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetPromptTokenUsage ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageCreate
SetPromptTokenUsage sets the "prompt_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageCreate) SetTotalTokenUsage ¶
func (moacctuc *MetricOpenAIChatCompletionTokenUsageCreate) SetTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageCreate
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 ¶
func (moacctucb *MetricOpenAIChatCompletionTokenUsageCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*MetricOpenAIChatCompletionTokenUsageCreateBulk) ExecX ¶
func (moacctucb *MetricOpenAIChatCompletionTokenUsageCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageCreateBulk) Save ¶
func (moacctucb *MetricOpenAIChatCompletionTokenUsageCreateBulk) Save(ctx context.Context) ([]*MetricOpenAIChatCompletionTokenUsage, error)
Save creates the MetricOpenAIChatCompletionTokenUsage entities in the database.
func (*MetricOpenAIChatCompletionTokenUsageCreateBulk) SaveX ¶
func (moacctucb *MetricOpenAIChatCompletionTokenUsageCreateBulk) SaveX(ctx context.Context) []*MetricOpenAIChatCompletionTokenUsage
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 ¶
func (moacctud *MetricOpenAIChatCompletionTokenUsageDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*MetricOpenAIChatCompletionTokenUsageDelete) ExecX ¶
func (moacctud *MetricOpenAIChatCompletionTokenUsageDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageDelete) Where ¶
func (moacctud *MetricOpenAIChatCompletionTokenUsageDelete) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageDelete
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 ¶
func (moacctudo *MetricOpenAIChatCompletionTokenUsageDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*MetricOpenAIChatCompletionTokenUsageDeleteOne) ExecX ¶
func (moacctudo *MetricOpenAIChatCompletionTokenUsageDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageDeleteOne) Where ¶
func (moacctudo *MetricOpenAIChatCompletionTokenUsageDeleteOne) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageDeleteOne
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 ¶
func (moacctugb *MetricOpenAIChatCompletionTokenUsageGroupBy) Aggregate(fns ...AggregateFunc) *MetricOpenAIChatCompletionTokenUsageGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) BoolX ¶
BoolX is like Bool, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) BoolsX ¶
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 ¶
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 ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) IntX ¶
IntX is like Int, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) IntsX ¶
IntsX is like Ints, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) Scan ¶
func (moacctugb *MetricOpenAIChatCompletionTokenUsageGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MetricOpenAIChatCompletionTokenUsageGroupBy) ScanX ¶
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 ¶
StringX is like String, 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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddCreatedAt(i int64)
AddCreatedAt adds i to the "created_at" field.
func (*MetricOpenAIChatCompletionTokenUsageMutation) AddField ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedField ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*MetricOpenAIChatCompletionTokenUsageMutation) AddedFields ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*MetricOpenAIChatCompletionTokenUsageMutation) AddedIDs ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) AddedIDs(name string) []ent.Value
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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*MetricOpenAIChatCompletionTokenUsageMutation) ClearField ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*MetricOpenAIChatCompletionTokenUsageMutation) ClearedEdges ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*MetricOpenAIChatCompletionTokenUsageMutation) ClearedFields ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (MetricOpenAIChatCompletionTokenUsageMutation) Client ¶
func (m MetricOpenAIChatCompletionTokenUsageMutation) 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 (*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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*MetricOpenAIChatCompletionTokenUsageMutation) Field ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*MetricOpenAIChatCompletionTokenUsageMutation) FieldCleared ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*MetricOpenAIChatCompletionTokenUsageMutation) Fields ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*MetricOpenAIChatCompletionTokenUsageMutation) ID ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*MetricOpenAIChatCompletionTokenUsageMutation) IDs ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
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) 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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) Op() 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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*MetricOpenAIChatCompletionTokenUsageMutation) RemovedIDs ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*MetricOpenAIChatCompletionTokenUsageMutation) ResetEdge ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*MetricOpenAIChatCompletionTokenUsageMutation) ResetField ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*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 ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetCreatedAt(i int64)
SetCreatedAt sets the "created_at" field.
func (*MetricOpenAIChatCompletionTokenUsageMutation) SetField ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) 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 (*MetricOpenAIChatCompletionTokenUsageMutation) SetID ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of MetricOpenAIChatCompletionTokenUsage entities.
func (*MetricOpenAIChatCompletionTokenUsageMutation) SetOp ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) SetOp(op Op)
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 ¶
func (m MetricOpenAIChatCompletionTokenUsageMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*MetricOpenAIChatCompletionTokenUsageMutation) Type ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) Type() string
Type returns the node type of this mutation (MetricOpenAIChatCompletionTokenUsage).
func (*MetricOpenAIChatCompletionTokenUsageMutation) Where ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage)
Where appends a list predicates to the MetricOpenAIChatCompletionTokenUsageMutation builder.
func (*MetricOpenAIChatCompletionTokenUsageMutation) WhereP ¶
func (m *MetricOpenAIChatCompletionTokenUsageMutation) WhereP(ps ...func(*sql.Selector))
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 ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Aggregate(fns ...AggregateFunc) *MetricOpenAIChatCompletionTokenUsageSelect
Aggregate returns a MetricOpenAIChatCompletionTokenUsageSelect configured with the given aggregations.
func (*MetricOpenAIChatCompletionTokenUsageQuery) All ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) All(ctx context.Context) ([]*MetricOpenAIChatCompletionTokenUsage, error)
All executes the query and returns a list of MetricOpenAIChatCompletionTokenUsages.
func (*MetricOpenAIChatCompletionTokenUsageQuery) AllX ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) AllX(ctx context.Context) []*MetricOpenAIChatCompletionTokenUsage
AllX is like All, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageQuery) Clone ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Clone() *MetricOpenAIChatCompletionTokenUsageQuery
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 ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*MetricOpenAIChatCompletionTokenUsageQuery) CountX ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageQuery) Exist ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*MetricOpenAIChatCompletionTokenUsageQuery) ExistX ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageQuery) First ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) First(ctx context.Context) (*MetricOpenAIChatCompletionTokenUsage, error)
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 ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageQuery) FirstX ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) FirstX(ctx context.Context) *MetricOpenAIChatCompletionTokenUsage
FirstX is like First, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageQuery) GroupBy ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) GroupBy(field string, fields ...string) *MetricOpenAIChatCompletionTokenUsageGroupBy
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 ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageQuery) Limit ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Limit(limit int) *MetricOpenAIChatCompletionTokenUsageQuery
Limit the number of records to be returned by this query.
func (*MetricOpenAIChatCompletionTokenUsageQuery) Offset ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Offset(offset int) *MetricOpenAIChatCompletionTokenUsageQuery
Offset to start from.
func (*MetricOpenAIChatCompletionTokenUsageQuery) Only ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Only(ctx context.Context) (*MetricOpenAIChatCompletionTokenUsage, error)
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 ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageQuery) OnlyX ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) OnlyX(ctx context.Context) *MetricOpenAIChatCompletionTokenUsage
OnlyX is like Only, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageQuery) Order ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Order(o ...metricopenaichatcompletiontokenusage.OrderOption) *MetricOpenAIChatCompletionTokenUsageQuery
Order specifies how the records should be ordered.
func (*MetricOpenAIChatCompletionTokenUsageQuery) Select ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Select(fields ...string) *MetricOpenAIChatCompletionTokenUsageSelect
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 ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Unique(unique bool) *MetricOpenAIChatCompletionTokenUsageQuery
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 ¶
func (moacctuq *MetricOpenAIChatCompletionTokenUsageQuery) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageQuery
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 ¶
func (moacctus *MetricOpenAIChatCompletionTokenUsageSelect) Aggregate(fns ...AggregateFunc) *MetricOpenAIChatCompletionTokenUsageSelect
Aggregate adds the given aggregation functions to the selector query.
func (*MetricOpenAIChatCompletionTokenUsageSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MetricOpenAIChatCompletionTokenUsageSelect) BoolX ¶
BoolX is like Bool, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MetricOpenAIChatCompletionTokenUsageSelect) BoolsX ¶
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 ¶
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 ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MetricOpenAIChatCompletionTokenUsageSelect) IntX ¶
IntX is like Int, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MetricOpenAIChatCompletionTokenUsageSelect) IntsX ¶
IntsX is like Ints, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageSelect) Scan ¶
func (moacctus *MetricOpenAIChatCompletionTokenUsageSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MetricOpenAIChatCompletionTokenUsageSelect) ScanX ¶
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 ¶
StringX is like String, 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 ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
AddCompletionCharacterLength adds i to the "completion_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddCompletionTokenUsage ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
AddCompletionTokenUsage adds i to the "completion_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddCreatedAt ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageUpdate
AddCreatedAt adds i to the "created_at" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddPromptCharacterLength ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
AddPromptCharacterLength adds i to the "prompt_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddPromptTokenUsage ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
AddPromptTokenUsage adds i to the "prompt_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) AddTotalTokenUsage ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) AddTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
AddTotalTokenUsage adds i to the "total_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) Exec ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) ExecX ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) Mutation ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) Mutation() *MetricOpenAIChatCompletionTokenUsageMutation
Mutation returns the MetricOpenAIChatCompletionTokenUsageMutation object of the builder.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) Save ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SaveX ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetCompletionCharacterLength ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
SetCompletionCharacterLength sets the "completion_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetCompletionTokenUsage ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
SetCompletionTokenUsage sets the "completion_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetCreatedAt ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageUpdate
SetCreatedAt sets the "created_at" 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 ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableCreatedAt(i *int64) *MetricOpenAIChatCompletionTokenUsageUpdate
SetNillableCreatedAt sets the "created_at" 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 ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptOperation(s *string) *MetricOpenAIChatCompletionTokenUsageUpdate
SetNillablePromptOperation sets the "prompt_operation" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptTokenUsage ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillablePromptTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate
SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableTotalTokenUsage ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetNillableTotalTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdate
SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptCharacterLength ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
SetPromptCharacterLength sets the "prompt_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptOperation ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptOperation(s string) *MetricOpenAIChatCompletionTokenUsageUpdate
SetPromptOperation sets the "prompt_operation" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptTokenUsage ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
SetPromptTokenUsage sets the "prompt_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) SetTotalTokenUsage ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) SetTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdate
SetTotalTokenUsage sets the "total_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdate) Where ¶
func (moacctuu *MetricOpenAIChatCompletionTokenUsageUpdate) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageUpdate
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 ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
AddCompletionCharacterLength adds i to the "completion_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCompletionTokenUsage ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
AddCompletionTokenUsage adds i to the "completion_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCreatedAt ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageUpdateOne
AddCreatedAt adds i to the "created_at" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddPromptCharacterLength ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
AddPromptCharacterLength adds i to the "prompt_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddPromptTokenUsage ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
AddPromptTokenUsage adds i to the "prompt_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) AddTotalTokenUsage ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) AddTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
AddTotalTokenUsage adds i to the "total_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Exec ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) ExecX ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Mutation ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Mutation() *MetricOpenAIChatCompletionTokenUsageMutation
Mutation returns the MetricOpenAIChatCompletionTokenUsageMutation object of the builder.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Save ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Save(ctx context.Context) (*MetricOpenAIChatCompletionTokenUsage, error)
Save executes the query and returns the updated MetricOpenAIChatCompletionTokenUsage entity.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SaveX ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SaveX(ctx context.Context) *MetricOpenAIChatCompletionTokenUsage
SaveX is like Save, but panics if an error occurs.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Select ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Select(field string, fields ...string) *MetricOpenAIChatCompletionTokenUsageUpdateOne
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 ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCompletionCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetCompletionCharacterLength sets the "completion_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCompletionTokenUsage ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCompletionTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetCompletionTokenUsage sets the "completion_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCreatedAt ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetCreatedAt(i int64) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetCreatedAt sets the "created_at" 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 ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCompletionTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetNillableCompletionTokenUsage sets the "completion_token_usage" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCreatedAt ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableCreatedAt(i *int64) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptCharacterLength ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptCharacterLength(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetNillablePromptCharacterLength sets the "prompt_character_length" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptOperation ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptOperation(s *string) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetNillablePromptOperation sets the "prompt_operation" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptTokenUsage ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillablePromptTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetNillablePromptTokenUsage sets the "prompt_token_usage" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableTotalTokenUsage ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetNillableTotalTokenUsage(i *int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetNillableTotalTokenUsage sets the "total_token_usage" field if the given value is not nil.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptCharacterLength ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptCharacterLength(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetPromptCharacterLength sets the "prompt_character_length" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptOperation ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptOperation(s string) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetPromptOperation sets the "prompt_operation" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptTokenUsage ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetPromptTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetPromptTokenUsage sets the "prompt_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) SetTotalTokenUsage ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) SetTotalTokenUsage(i int) *MetricOpenAIChatCompletionTokenUsageUpdateOne
SetTotalTokenUsage sets the "total_token_usage" field.
func (*MetricOpenAIChatCompletionTokenUsageUpdateOne) Where ¶
func (moacctuuo *MetricOpenAIChatCompletionTokenUsageUpdateOne) Where(ps ...predicate.MetricOpenAIChatCompletionTokenUsage) *MetricOpenAIChatCompletionTokenUsageUpdateOne
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 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 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.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
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 ¶
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.
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 ¶
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 ¶
func (soc *SlackOAuthCredentials) Unwrap() *SlackOAuthCredentials
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 ¶
func (soc *SlackOAuthCredentials) Update() *SlackOAuthCredentialsUpdateOne
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.
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 ¶
func (c *SlackOAuthCredentialsClient) Create() *SlackOAuthCredentialsCreate
Create returns a builder for creating a SlackOAuthCredentials entity.
func (*SlackOAuthCredentialsClient) CreateBulk ¶
func (c *SlackOAuthCredentialsClient) CreateBulk(builders ...*SlackOAuthCredentialsCreate) *SlackOAuthCredentialsCreateBulk
CreateBulk returns a builder for creating a bulk of SlackOAuthCredentials entities.
func (*SlackOAuthCredentialsClient) Delete ¶
func (c *SlackOAuthCredentialsClient) Delete() *SlackOAuthCredentialsDelete
Delete returns a delete builder for SlackOAuthCredentials.
func (*SlackOAuthCredentialsClient) DeleteOne ¶
func (c *SlackOAuthCredentialsClient) DeleteOne(soc *SlackOAuthCredentials) *SlackOAuthCredentialsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SlackOAuthCredentialsClient) DeleteOneID ¶
func (c *SlackOAuthCredentialsClient) DeleteOneID(id uuid.UUID) *SlackOAuthCredentialsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SlackOAuthCredentialsClient) Get ¶
func (c *SlackOAuthCredentialsClient) Get(ctx context.Context, id uuid.UUID) (*SlackOAuthCredentials, error)
Get returns a SlackOAuthCredentials entity by its id.
func (*SlackOAuthCredentialsClient) GetX ¶
func (c *SlackOAuthCredentialsClient) GetX(ctx context.Context, id uuid.UUID) *SlackOAuthCredentials
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) Query ¶
func (c *SlackOAuthCredentialsClient) Query() *SlackOAuthCredentialsQuery
Query returns a query builder for SlackOAuthCredentials.
func (*SlackOAuthCredentialsClient) Update ¶
func (c *SlackOAuthCredentialsClient) Update() *SlackOAuthCredentialsUpdate
Update returns an update builder for SlackOAuthCredentials.
func (*SlackOAuthCredentialsClient) UpdateOne ¶
func (c *SlackOAuthCredentialsClient) UpdateOne(soc *SlackOAuthCredentials) *SlackOAuthCredentialsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SlackOAuthCredentialsClient) UpdateOneID ¶
func (c *SlackOAuthCredentialsClient) UpdateOneID(id uuid.UUID) *SlackOAuthCredentialsUpdateOne
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 ¶
func (socc *SlackOAuthCredentialsCreate) Exec(ctx context.Context) error
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 ¶
func (socc *SlackOAuthCredentialsCreate) Mutation() *SlackOAuthCredentialsMutation
Mutation returns the SlackOAuthCredentialsMutation object of the builder.
func (*SlackOAuthCredentialsCreate) Save ¶
func (socc *SlackOAuthCredentialsCreate) Save(ctx context.Context) (*SlackOAuthCredentials, error)
Save creates the SlackOAuthCredentials in the database.
func (*SlackOAuthCredentialsCreate) SaveX ¶
func (socc *SlackOAuthCredentialsCreate) SaveX(ctx context.Context) *SlackOAuthCredentials
SaveX calls Save and panics if Save returns an error.
func (*SlackOAuthCredentialsCreate) SetAccessToken ¶
func (socc *SlackOAuthCredentialsCreate) SetAccessToken(s string) *SlackOAuthCredentialsCreate
SetAccessToken sets the "access_token" field.
func (*SlackOAuthCredentialsCreate) SetCreatedAt ¶
func (socc *SlackOAuthCredentialsCreate) SetCreatedAt(i int64) *SlackOAuthCredentialsCreate
SetCreatedAt sets the "created_at" field.
func (*SlackOAuthCredentialsCreate) SetID ¶
func (socc *SlackOAuthCredentialsCreate) SetID(u uuid.UUID) *SlackOAuthCredentialsCreate
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 ¶
func (socc *SlackOAuthCredentialsCreate) SetNillableID(u *uuid.UUID) *SlackOAuthCredentialsCreate
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 ¶
func (socc *SlackOAuthCredentialsCreate) SetRefreshToken(s string) *SlackOAuthCredentialsCreate
SetRefreshToken sets the "refresh_token" field.
func (*SlackOAuthCredentialsCreate) SetTeamID ¶
func (socc *SlackOAuthCredentialsCreate) SetTeamID(s string) *SlackOAuthCredentialsCreate
SetTeamID sets the "team_id" field.
func (*SlackOAuthCredentialsCreate) SetUpdatedAt ¶
func (socc *SlackOAuthCredentialsCreate) SetUpdatedAt(i int64) *SlackOAuthCredentialsCreate
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 ¶
func (soccb *SlackOAuthCredentialsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SlackOAuthCredentialsCreateBulk) ExecX ¶
func (soccb *SlackOAuthCredentialsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SlackOAuthCredentialsCreateBulk) Save ¶
func (soccb *SlackOAuthCredentialsCreateBulk) Save(ctx context.Context) ([]*SlackOAuthCredentials, error)
Save creates the SlackOAuthCredentials entities in the database.
func (*SlackOAuthCredentialsCreateBulk) SaveX ¶
func (soccb *SlackOAuthCredentialsCreateBulk) SaveX(ctx context.Context) []*SlackOAuthCredentials
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 ¶
func (socd *SlackOAuthCredentialsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SlackOAuthCredentialsDelete) ExecX ¶
func (socd *SlackOAuthCredentialsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SlackOAuthCredentialsDelete) Where ¶
func (socd *SlackOAuthCredentialsDelete) Where(ps ...predicate.SlackOAuthCredentials) *SlackOAuthCredentialsDelete
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 ¶
func (socdo *SlackOAuthCredentialsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SlackOAuthCredentialsDeleteOne) ExecX ¶
func (socdo *SlackOAuthCredentialsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SlackOAuthCredentialsDeleteOne) Where ¶
func (socdo *SlackOAuthCredentialsDeleteOne) Where(ps ...predicate.SlackOAuthCredentials) *SlackOAuthCredentialsDeleteOne
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 ¶
func (socgb *SlackOAuthCredentialsGroupBy) Aggregate(fns ...AggregateFunc) *SlackOAuthCredentialsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SlackOAuthCredentialsGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*SlackOAuthCredentialsGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*SlackOAuthCredentialsGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsGroupBy) Scan ¶
func (socgb *SlackOAuthCredentialsGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SlackOAuthCredentialsGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsGroupBy) StringX ¶
StringX is like String, 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 ¶
func (m SlackOAuthCredentialsMutation) 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 (*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 ¶
func (m *SlackOAuthCredentialsMutation) 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 (*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 ¶
func (m *SlackOAuthCredentialsMutation) 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 (*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 ¶
func (m *SlackOAuthCredentialsMutation) Op() 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 ¶
func (m *SlackOAuthCredentialsMutation) SetID(id uuid.UUID)
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 ¶
func (m SlackOAuthCredentialsMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SlackOAuthCredentialsMutation) Type ¶
func (m *SlackOAuthCredentialsMutation) Type() string
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 ¶
func (m *SlackOAuthCredentialsMutation) Where(ps ...predicate.SlackOAuthCredentials)
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 ¶
func (socq *SlackOAuthCredentialsQuery) Aggregate(fns ...AggregateFunc) *SlackOAuthCredentialsSelect
Aggregate returns a SlackOAuthCredentialsSelect configured with the given aggregations.
func (*SlackOAuthCredentialsQuery) All ¶
func (socq *SlackOAuthCredentialsQuery) All(ctx context.Context) ([]*SlackOAuthCredentials, error)
All executes the query and returns a list of SlackOAuthCredentialsSlice.
func (*SlackOAuthCredentialsQuery) AllX ¶
func (socq *SlackOAuthCredentialsQuery) AllX(ctx context.Context) []*SlackOAuthCredentials
AllX is like All, but panics if an error occurs.
func (*SlackOAuthCredentialsQuery) Clone ¶
func (socq *SlackOAuthCredentialsQuery) Clone() *SlackOAuthCredentialsQuery
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 ¶
func (socq *SlackOAuthCredentialsQuery) First(ctx context.Context) (*SlackOAuthCredentials, error)
First returns the first SlackOAuthCredentials entity from the query. Returns a *NotFoundError when no SlackOAuthCredentials was found.
func (*SlackOAuthCredentialsQuery) FirstID ¶
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 ¶
func (socq *SlackOAuthCredentialsQuery) FirstX(ctx context.Context) *SlackOAuthCredentials
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 ¶
IDs executes the query and returns a list of SlackOAuthCredentials IDs.
func (*SlackOAuthCredentialsQuery) IDsX ¶
func (socq *SlackOAuthCredentialsQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*SlackOAuthCredentialsQuery) Limit ¶
func (socq *SlackOAuthCredentialsQuery) Limit(limit int) *SlackOAuthCredentialsQuery
Limit the number of records to be returned by this query.
func (*SlackOAuthCredentialsQuery) Offset ¶
func (socq *SlackOAuthCredentialsQuery) Offset(offset int) *SlackOAuthCredentialsQuery
Offset to start from.
func (*SlackOAuthCredentialsQuery) Only ¶
func (socq *SlackOAuthCredentialsQuery) Only(ctx context.Context) (*SlackOAuthCredentials, error)
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 ¶
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 ¶
func (socq *SlackOAuthCredentialsQuery) OnlyX(ctx context.Context) *SlackOAuthCredentials
OnlyX is like Only, but panics if an error occurs.
func (*SlackOAuthCredentialsQuery) Order ¶
func (socq *SlackOAuthCredentialsQuery) Order(o ...slackoauthcredentials.OrderOption) *SlackOAuthCredentialsQuery
Order specifies how the records should be ordered.
func (*SlackOAuthCredentialsQuery) Select ¶
func (socq *SlackOAuthCredentialsQuery) Select(fields ...string) *SlackOAuthCredentialsSelect
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 ¶
func (socq *SlackOAuthCredentialsQuery) Unique(unique bool) *SlackOAuthCredentialsQuery
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 ¶
func (socq *SlackOAuthCredentialsQuery) Where(ps ...predicate.SlackOAuthCredentials) *SlackOAuthCredentialsQuery
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 ¶
func (socs *SlackOAuthCredentialsSelect) Aggregate(fns ...AggregateFunc) *SlackOAuthCredentialsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SlackOAuthCredentialsSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*SlackOAuthCredentialsSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*SlackOAuthCredentialsSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsSelect) Scan ¶
func (socs *SlackOAuthCredentialsSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SlackOAuthCredentialsSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SlackOAuthCredentialsSelect) StringX ¶
StringX is like String, 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 ¶
func (socu *SlackOAuthCredentialsUpdate) AddCreatedAt(i int64) *SlackOAuthCredentialsUpdate
AddCreatedAt adds i to the "created_at" field.
func (*SlackOAuthCredentialsUpdate) AddUpdatedAt ¶
func (socu *SlackOAuthCredentialsUpdate) AddUpdatedAt(i int64) *SlackOAuthCredentialsUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*SlackOAuthCredentialsUpdate) Exec ¶
func (socu *SlackOAuthCredentialsUpdate) Exec(ctx context.Context) error
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 ¶
func (socu *SlackOAuthCredentialsUpdate) Mutation() *SlackOAuthCredentialsMutation
Mutation returns the SlackOAuthCredentialsMutation object of the builder.
func (*SlackOAuthCredentialsUpdate) Save ¶
func (socu *SlackOAuthCredentialsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SlackOAuthCredentialsUpdate) SaveX ¶
func (socu *SlackOAuthCredentialsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SlackOAuthCredentialsUpdate) SetAccessToken ¶
func (socu *SlackOAuthCredentialsUpdate) SetAccessToken(s string) *SlackOAuthCredentialsUpdate
SetAccessToken sets the "access_token" field.
func (*SlackOAuthCredentialsUpdate) SetCreatedAt ¶
func (socu *SlackOAuthCredentialsUpdate) SetCreatedAt(i int64) *SlackOAuthCredentialsUpdate
SetCreatedAt sets the "created_at" field.
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 ¶
func (socu *SlackOAuthCredentialsUpdate) SetRefreshToken(s string) *SlackOAuthCredentialsUpdate
SetRefreshToken sets the "refresh_token" field.
func (*SlackOAuthCredentialsUpdate) SetUpdatedAt ¶
func (socu *SlackOAuthCredentialsUpdate) SetUpdatedAt(i int64) *SlackOAuthCredentialsUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SlackOAuthCredentialsUpdate) Where ¶
func (socu *SlackOAuthCredentialsUpdate) Where(ps ...predicate.SlackOAuthCredentials) *SlackOAuthCredentialsUpdate
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 ¶
func (socuo *SlackOAuthCredentialsUpdateOne) AddCreatedAt(i int64) *SlackOAuthCredentialsUpdateOne
AddCreatedAt adds i to the "created_at" field.
func (*SlackOAuthCredentialsUpdateOne) AddUpdatedAt ¶
func (socuo *SlackOAuthCredentialsUpdateOne) AddUpdatedAt(i int64) *SlackOAuthCredentialsUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*SlackOAuthCredentialsUpdateOne) Exec ¶
func (socuo *SlackOAuthCredentialsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SlackOAuthCredentialsUpdateOne) ExecX ¶
func (socuo *SlackOAuthCredentialsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SlackOAuthCredentialsUpdateOne) Mutation ¶
func (socuo *SlackOAuthCredentialsUpdateOne) Mutation() *SlackOAuthCredentialsMutation
Mutation returns the SlackOAuthCredentialsMutation object of the builder.
func (*SlackOAuthCredentialsUpdateOne) Save ¶
func (socuo *SlackOAuthCredentialsUpdateOne) Save(ctx context.Context) (*SlackOAuthCredentials, error)
Save executes the query and returns the updated SlackOAuthCredentials entity.
func (*SlackOAuthCredentialsUpdateOne) SaveX ¶
func (socuo *SlackOAuthCredentialsUpdateOne) SaveX(ctx context.Context) *SlackOAuthCredentials
SaveX is like Save, but panics if an error occurs.
func (*SlackOAuthCredentialsUpdateOne) Select ¶
func (socuo *SlackOAuthCredentialsUpdateOne) Select(field string, fields ...string) *SlackOAuthCredentialsUpdateOne
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 ¶
func (socuo *SlackOAuthCredentialsUpdateOne) SetAccessToken(s string) *SlackOAuthCredentialsUpdateOne
SetAccessToken sets the "access_token" field.
func (*SlackOAuthCredentialsUpdateOne) SetCreatedAt ¶
func (socuo *SlackOAuthCredentialsUpdateOne) SetCreatedAt(i int64) *SlackOAuthCredentialsUpdateOne
SetCreatedAt sets the "created_at" field.
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 ¶
func (socuo *SlackOAuthCredentialsUpdateOne) SetRefreshToken(s string) *SlackOAuthCredentialsUpdateOne
SetRefreshToken sets the "refresh_token" field.
func (*SlackOAuthCredentialsUpdateOne) SetUpdatedAt ¶
func (socuo *SlackOAuthCredentialsUpdateOne) SetUpdatedAt(i int64) *SlackOAuthCredentialsUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*SlackOAuthCredentialsUpdateOne) Where ¶
func (socuo *SlackOAuthCredentialsUpdateOne) Where(ps ...predicate.SlackOAuthCredentials) *SlackOAuthCredentialsUpdateOne
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
func (tcars *TelegramChatAutoRecapsSubscribers) Unwrap() *TelegramChatAutoRecapsSubscribers
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
func (tcars *TelegramChatAutoRecapsSubscribers) Update() *TelegramChatAutoRecapsSubscribersUpdateOne
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
func (c *TelegramChatAutoRecapsSubscribersClient) Create() *TelegramChatAutoRecapsSubscribersCreate
Create returns a builder for creating a TelegramChatAutoRecapsSubscribers entity.
func (*TelegramChatAutoRecapsSubscribersClient) CreateBulk ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) CreateBulk(builders ...*TelegramChatAutoRecapsSubscribersCreate) *TelegramChatAutoRecapsSubscribersCreateBulk
CreateBulk returns a builder for creating a bulk of TelegramChatAutoRecapsSubscribers entities.
func (*TelegramChatAutoRecapsSubscribersClient) Delete ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) Delete() *TelegramChatAutoRecapsSubscribersDelete
Delete returns a delete builder for TelegramChatAutoRecapsSubscribers.
func (*TelegramChatAutoRecapsSubscribersClient) DeleteOne ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) DeleteOne(tcars *TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TelegramChatAutoRecapsSubscribersClient) DeleteOneID ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) DeleteOneID(id uuid.UUID) *TelegramChatAutoRecapsSubscribersDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TelegramChatAutoRecapsSubscribersClient) Get ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) Get(ctx context.Context, id uuid.UUID) (*TelegramChatAutoRecapsSubscribers, error)
Get returns a TelegramChatAutoRecapsSubscribers entity by its id.
func (*TelegramChatAutoRecapsSubscribersClient) GetX ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) GetX(ctx context.Context, id uuid.UUID) *TelegramChatAutoRecapsSubscribers
GetX is like Get, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersClient) Hooks ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) Hooks() []Hook
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
func (c *TelegramChatAutoRecapsSubscribersClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*TelegramChatAutoRecapsSubscribersClient) Query ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) Query() *TelegramChatAutoRecapsSubscribersQuery
Query returns a query builder for TelegramChatAutoRecapsSubscribers.
func (*TelegramChatAutoRecapsSubscribersClient) Update ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) Update() *TelegramChatAutoRecapsSubscribersUpdate
Update returns an update builder for TelegramChatAutoRecapsSubscribers.
func (*TelegramChatAutoRecapsSubscribersClient) UpdateOne ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) UpdateOne(tcars *TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TelegramChatAutoRecapsSubscribersClient) UpdateOneID ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) UpdateOneID(id uuid.UUID) *TelegramChatAutoRecapsSubscribersUpdateOne
UpdateOneID returns an update builder for the given id.
func (*TelegramChatAutoRecapsSubscribersClient) Use ¶ added in v0.14.0
func (c *TelegramChatAutoRecapsSubscribersClient) Use(hooks ...Hook)
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
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatAutoRecapsSubscribersCreate) ExecX ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersCreate) Mutation ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) Mutation() *TelegramChatAutoRecapsSubscribersMutation
Mutation returns the TelegramChatAutoRecapsSubscribersMutation object of the builder.
func (*TelegramChatAutoRecapsSubscribersCreate) Save ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) Save(ctx context.Context) (*TelegramChatAutoRecapsSubscribers, error)
Save creates the TelegramChatAutoRecapsSubscribers in the database.
func (*TelegramChatAutoRecapsSubscribersCreate) SaveX ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SaveX(ctx context.Context) *TelegramChatAutoRecapsSubscribers
SaveX calls Save and panics if Save returns an error.
func (*TelegramChatAutoRecapsSubscribersCreate) SetChatID ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetChatID(i int64) *TelegramChatAutoRecapsSubscribersCreate
SetChatID sets the "chat_id" field.
func (*TelegramChatAutoRecapsSubscribersCreate) SetCreatedAt ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersCreate
SetCreatedAt sets the "created_at" field.
func (*TelegramChatAutoRecapsSubscribersCreate) SetID ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetID(u uuid.UUID) *TelegramChatAutoRecapsSubscribersCreate
SetID sets the "id" field.
func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableChatID ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableChatID(i *int64) *TelegramChatAutoRecapsSubscribersCreate
SetNillableChatID sets the "chat_id" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableCreatedAt ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableCreatedAt(i *int64) *TelegramChatAutoRecapsSubscribersCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableID ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableID(u *uuid.UUID) *TelegramChatAutoRecapsSubscribersCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableUpdatedAt ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableUpdatedAt(i *int64) *TelegramChatAutoRecapsSubscribersCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersCreate) SetNillableUserID ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetNillableUserID(i *int64) *TelegramChatAutoRecapsSubscribersCreate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersCreate) SetUpdatedAt ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersCreate
SetUpdatedAt sets the "updated_at" field.
func (*TelegramChatAutoRecapsSubscribersCreate) SetUserID ¶ added in v0.14.0
func (tcarsc *TelegramChatAutoRecapsSubscribersCreate) SetUserID(i int64) *TelegramChatAutoRecapsSubscribersCreate
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
func (tcarscb *TelegramChatAutoRecapsSubscribersCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatAutoRecapsSubscribersCreateBulk) ExecX ¶ added in v0.14.0
func (tcarscb *TelegramChatAutoRecapsSubscribersCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersCreateBulk) Save ¶ added in v0.14.0
func (tcarscb *TelegramChatAutoRecapsSubscribersCreateBulk) Save(ctx context.Context) ([]*TelegramChatAutoRecapsSubscribers, error)
Save creates the TelegramChatAutoRecapsSubscribers entities in the database.
func (*TelegramChatAutoRecapsSubscribersCreateBulk) SaveX ¶ added in v0.14.0
func (tcarscb *TelegramChatAutoRecapsSubscribersCreateBulk) SaveX(ctx context.Context) []*TelegramChatAutoRecapsSubscribers
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
func (tcarsd *TelegramChatAutoRecapsSubscribersDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TelegramChatAutoRecapsSubscribersDelete) ExecX ¶ added in v0.14.0
func (tcarsd *TelegramChatAutoRecapsSubscribersDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersDelete) Where ¶ added in v0.14.0
func (tcarsd *TelegramChatAutoRecapsSubscribersDelete) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersDelete
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
func (tcarsdo *TelegramChatAutoRecapsSubscribersDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TelegramChatAutoRecapsSubscribersDeleteOne) ExecX ¶ added in v0.14.0
func (tcarsdo *TelegramChatAutoRecapsSubscribersDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersDeleteOne) Where ¶ added in v0.14.0
func (tcarsdo *TelegramChatAutoRecapsSubscribersDeleteOne) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersDeleteOne
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
func (tcarsgb *TelegramChatAutoRecapsSubscribersGroupBy) Aggregate(fns ...AggregateFunc) *TelegramChatAutoRecapsSubscribersGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TelegramChatAutoRecapsSubscribersGroupBy) Bool ¶ added in v0.14.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersGroupBy) BoolX ¶ added in v0.14.0
BoolX is like Bool, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersGroupBy) Bools ¶ added in v0.14.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersGroupBy) BoolsX ¶ added in v0.14.0
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
Float64X is like Float64, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersGroupBy) Float64s ¶ added in v0.14.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersGroupBy) Float64sX ¶ added in v0.14.0
Float64sX is like Float64s, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersGroupBy) Int ¶ added in v0.14.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersGroupBy) IntX ¶ added in v0.14.0
IntX is like Int, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersGroupBy) Ints ¶ added in v0.14.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersGroupBy) IntsX ¶ added in v0.14.0
IntsX is like Ints, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersGroupBy) Scan ¶ added in v0.14.0
func (tcarsgb *TelegramChatAutoRecapsSubscribersGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TelegramChatAutoRecapsSubscribersGroupBy) ScanX ¶ added in v0.14.0
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
StringX is like String, 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
func (m *TelegramChatAutoRecapsSubscribersMutation) AddChatID(i int64)
AddChatID adds i to the "chat_id" field.
func (*TelegramChatAutoRecapsSubscribersMutation) AddCreatedAt ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) AddCreatedAt(i int64)
AddCreatedAt adds i to the "created_at" field.
func (*TelegramChatAutoRecapsSubscribersMutation) AddField ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) AddUpdatedAt ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) AddUpdatedAt(i int64)
AddUpdatedAt adds i to the "updated_at" field.
func (*TelegramChatAutoRecapsSubscribersMutation) AddUserID ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) AddUserID(i int64)
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
func (m *TelegramChatAutoRecapsSubscribersMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TelegramChatAutoRecapsSubscribersMutation) AddedField ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) AddedFields ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*TelegramChatAutoRecapsSubscribersMutation) AddedIDs ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) AddedIDs(name string) []ent.Value
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
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) ClearField ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) ClearedEdges ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TelegramChatAutoRecapsSubscribersMutation) ClearedFields ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TelegramChatAutoRecapsSubscribersMutation) Client ¶ added in v0.14.0
func (m TelegramChatAutoRecapsSubscribersMutation) 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 (*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
func (m *TelegramChatAutoRecapsSubscribersMutation) EdgeCleared(name string) bool
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
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) FieldCleared ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) FieldCleared(name string) bool
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
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) ID ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*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
func (m *TelegramChatAutoRecapsSubscribersMutation) OldChatID(ctx context.Context) (v int64, err error)
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
func (m *TelegramChatAutoRecapsSubscribersMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
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
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) OldUpdatedAt ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
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
func (m *TelegramChatAutoRecapsSubscribersMutation) OldUserID(ctx context.Context) (v int64, err error)
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
func (m *TelegramChatAutoRecapsSubscribersMutation) Op() Op
Op returns the operation name.
func (*TelegramChatAutoRecapsSubscribersMutation) RemovedEdges ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TelegramChatAutoRecapsSubscribersMutation) RemovedIDs ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) ResetChatID ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) ResetChatID()
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
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) ResetField ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*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
func (m *TelegramChatAutoRecapsSubscribersMutation) ResetUserID()
ResetUserID resets all changes to the "user_id" field.
func (*TelegramChatAutoRecapsSubscribersMutation) SetChatID ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) SetChatID(i int64)
SetChatID sets the "chat_id" field.
func (*TelegramChatAutoRecapsSubscribersMutation) SetCreatedAt ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) SetCreatedAt(i int64)
SetCreatedAt sets the "created_at" field.
func (*TelegramChatAutoRecapsSubscribersMutation) SetField ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) 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 (*TelegramChatAutoRecapsSubscribersMutation) SetID ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) SetID(id uuid.UUID)
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
func (m *TelegramChatAutoRecapsSubscribersMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*TelegramChatAutoRecapsSubscribersMutation) SetUpdatedAt ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) SetUpdatedAt(i int64)
SetUpdatedAt sets the "updated_at" field.
func (*TelegramChatAutoRecapsSubscribersMutation) SetUserID ¶ added in v0.14.0
func (m *TelegramChatAutoRecapsSubscribersMutation) SetUserID(i int64)
SetUserID sets the "user_id" field.
func (TelegramChatAutoRecapsSubscribersMutation) Tx ¶ added in v0.14.0
func (m TelegramChatAutoRecapsSubscribersMutation) Tx() (*Tx, error)
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
func (m *TelegramChatAutoRecapsSubscribersMutation) Type() string
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
func (m *TelegramChatAutoRecapsSubscribersMutation) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers)
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
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Aggregate(fns ...AggregateFunc) *TelegramChatAutoRecapsSubscribersSelect
Aggregate returns a TelegramChatAutoRecapsSubscribersSelect configured with the given aggregations.
func (*TelegramChatAutoRecapsSubscribersQuery) All ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) All(ctx context.Context) ([]*TelegramChatAutoRecapsSubscribers, error)
All executes the query and returns a list of TelegramChatAutoRecapsSubscribersSlice.
func (*TelegramChatAutoRecapsSubscribersQuery) AllX ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) AllX(ctx context.Context) []*TelegramChatAutoRecapsSubscribers
AllX is like All, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersQuery) Clone ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Clone() *TelegramChatAutoRecapsSubscribersQuery
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
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*TelegramChatAutoRecapsSubscribersQuery) CountX ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersQuery) Exist ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*TelegramChatAutoRecapsSubscribersQuery) ExistX ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersQuery) First ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) First(ctx context.Context) (*TelegramChatAutoRecapsSubscribers, error)
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
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersQuery) FirstX ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) FirstX(ctx context.Context) *TelegramChatAutoRecapsSubscribers
FirstX is like First, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersQuery) GroupBy ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) GroupBy(field string, fields ...string) *TelegramChatAutoRecapsSubscribersGroupBy
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
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersQuery) Limit ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Limit(limit int) *TelegramChatAutoRecapsSubscribersQuery
Limit the number of records to be returned by this query.
func (*TelegramChatAutoRecapsSubscribersQuery) Offset ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Offset(offset int) *TelegramChatAutoRecapsSubscribersQuery
Offset to start from.
func (*TelegramChatAutoRecapsSubscribersQuery) Only ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Only(ctx context.Context) (*TelegramChatAutoRecapsSubscribers, error)
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
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersQuery) OnlyX ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) OnlyX(ctx context.Context) *TelegramChatAutoRecapsSubscribers
OnlyX is like Only, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersQuery) Order ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Order(o ...telegramchatautorecapssubscribers.OrderOption) *TelegramChatAutoRecapsSubscribersQuery
Order specifies how the records should be ordered.
func (*TelegramChatAutoRecapsSubscribersQuery) Select ¶ added in v0.14.0
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Select(fields ...string) *TelegramChatAutoRecapsSubscribersSelect
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
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Unique(unique bool) *TelegramChatAutoRecapsSubscribersQuery
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
func (tcarsq *TelegramChatAutoRecapsSubscribersQuery) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersQuery
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
func (tcarss *TelegramChatAutoRecapsSubscribersSelect) Aggregate(fns ...AggregateFunc) *TelegramChatAutoRecapsSubscribersSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TelegramChatAutoRecapsSubscribersSelect) Bool ¶ added in v0.14.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersSelect) BoolX ¶ added in v0.14.0
BoolX is like Bool, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersSelect) Bools ¶ added in v0.14.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersSelect) BoolsX ¶ added in v0.14.0
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
Float64X is like Float64, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersSelect) Float64s ¶ added in v0.14.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersSelect) Float64sX ¶ added in v0.14.0
Float64sX is like Float64s, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersSelect) Int ¶ added in v0.14.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersSelect) IntX ¶ added in v0.14.0
IntX is like Int, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersSelect) Ints ¶ added in v0.14.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersSelect) IntsX ¶ added in v0.14.0
IntsX is like Ints, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersSelect) Scan ¶ added in v0.14.0
func (tcarss *TelegramChatAutoRecapsSubscribersSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TelegramChatAutoRecapsSubscribersSelect) ScanX ¶ added in v0.14.0
ScanX is like Scan, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersSelect) String ¶ added in v0.14.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*TelegramChatAutoRecapsSubscribersSelect) StringX ¶ added in v0.14.0
StringX is like String, 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
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) AddChatID(i int64) *TelegramChatAutoRecapsSubscribersUpdate
AddChatID adds i to the "chat_id" field.
func (*TelegramChatAutoRecapsSubscribersUpdate) AddCreatedAt ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) AddCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdate
AddCreatedAt adds i to the "created_at" field.
func (*TelegramChatAutoRecapsSubscribersUpdate) AddUpdatedAt ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) AddUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*TelegramChatAutoRecapsSubscribersUpdate) AddUserID ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) AddUserID(i int64) *TelegramChatAutoRecapsSubscribersUpdate
AddUserID adds i to the "user_id" field.
func (*TelegramChatAutoRecapsSubscribersUpdate) Exec ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatAutoRecapsSubscribersUpdate) ExecX ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersUpdate) Mutation ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) Mutation() *TelegramChatAutoRecapsSubscribersMutation
Mutation returns the TelegramChatAutoRecapsSubscribersMutation object of the builder.
func (*TelegramChatAutoRecapsSubscribersUpdate) Save ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*TelegramChatAutoRecapsSubscribersUpdate) SaveX ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersUpdate) SetChatID ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetChatID(i int64) *TelegramChatAutoRecapsSubscribersUpdate
SetChatID sets the "chat_id" field.
func (*TelegramChatAutoRecapsSubscribersUpdate) SetCreatedAt ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdate
SetCreatedAt sets the "created_at" field.
func (*TelegramChatAutoRecapsSubscribersUpdate) SetNillableChatID ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetNillableChatID(i *int64) *TelegramChatAutoRecapsSubscribersUpdate
SetNillableChatID sets the "chat_id" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersUpdate) SetNillableCreatedAt ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetNillableCreatedAt(i *int64) *TelegramChatAutoRecapsSubscribersUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersUpdate) SetNillableUpdatedAt ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetNillableUpdatedAt(i *int64) *TelegramChatAutoRecapsSubscribersUpdate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersUpdate) SetNillableUserID ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetNillableUserID(i *int64) *TelegramChatAutoRecapsSubscribersUpdate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersUpdate) SetUpdatedAt ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdate
SetUpdatedAt sets the "updated_at" field.
func (*TelegramChatAutoRecapsSubscribersUpdate) SetUserID ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) SetUserID(i int64) *TelegramChatAutoRecapsSubscribersUpdate
SetUserID sets the "user_id" field.
func (*TelegramChatAutoRecapsSubscribersUpdate) Where ¶ added in v0.14.0
func (tcarsu *TelegramChatAutoRecapsSubscribersUpdate) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersUpdate
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
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) AddChatID(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
AddChatID adds i to the "chat_id" field.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) AddCreatedAt ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) AddCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
AddCreatedAt adds i to the "created_at" field.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) AddUpdatedAt ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) AddUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) AddUserID ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) AddUserID(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
AddUserID adds i to the "user_id" field.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) Exec ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) ExecX ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) Mutation ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Mutation() *TelegramChatAutoRecapsSubscribersMutation
Mutation returns the TelegramChatAutoRecapsSubscribersMutation object of the builder.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) Save ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Save(ctx context.Context) (*TelegramChatAutoRecapsSubscribers, error)
Save executes the query and returns the updated TelegramChatAutoRecapsSubscribers entity.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) SaveX ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SaveX(ctx context.Context) *TelegramChatAutoRecapsSubscribers
SaveX is like Save, but panics if an error occurs.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) Select ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Select(field string, fields ...string) *TelegramChatAutoRecapsSubscribersUpdateOne
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
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetChatID(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
SetChatID sets the "chat_id" field.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetCreatedAt ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetCreatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
SetCreatedAt sets the "created_at" field.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableChatID ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableChatID(i *int64) *TelegramChatAutoRecapsSubscribersUpdateOne
SetNillableChatID sets the "chat_id" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableCreatedAt ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableCreatedAt(i *int64) *TelegramChatAutoRecapsSubscribersUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableUpdatedAt ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableUpdatedAt(i *int64) *TelegramChatAutoRecapsSubscribersUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableUserID ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetNillableUserID(i *int64) *TelegramChatAutoRecapsSubscribersUpdateOne
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetUpdatedAt ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetUpdatedAt(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) SetUserID ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) SetUserID(i int64) *TelegramChatAutoRecapsSubscribersUpdateOne
SetUserID sets the "user_id" field.
func (*TelegramChatAutoRecapsSubscribersUpdateOne) Where ¶ added in v0.14.0
func (tcarsuo *TelegramChatAutoRecapsSubscribersUpdateOne) Where(ps ...predicate.TelegramChatAutoRecapsSubscribers) *TelegramChatAutoRecapsSubscribersUpdateOne
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 ¶
func (tcff *TelegramChatFeatureFlags) Unwrap() *TelegramChatFeatureFlags
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 ¶
func (tcff *TelegramChatFeatureFlags) Update() *TelegramChatFeatureFlagsUpdateOne
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.
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 ¶
func (c *TelegramChatFeatureFlagsClient) Create() *TelegramChatFeatureFlagsCreate
Create returns a builder for creating a TelegramChatFeatureFlags entity.
func (*TelegramChatFeatureFlagsClient) CreateBulk ¶
func (c *TelegramChatFeatureFlagsClient) CreateBulk(builders ...*TelegramChatFeatureFlagsCreate) *TelegramChatFeatureFlagsCreateBulk
CreateBulk returns a builder for creating a bulk of TelegramChatFeatureFlags entities.
func (*TelegramChatFeatureFlagsClient) Delete ¶
func (c *TelegramChatFeatureFlagsClient) Delete() *TelegramChatFeatureFlagsDelete
Delete returns a delete builder for TelegramChatFeatureFlags.
func (*TelegramChatFeatureFlagsClient) DeleteOne ¶
func (c *TelegramChatFeatureFlagsClient) DeleteOne(tcff *TelegramChatFeatureFlags) *TelegramChatFeatureFlagsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TelegramChatFeatureFlagsClient) DeleteOneID ¶
func (c *TelegramChatFeatureFlagsClient) DeleteOneID(id uuid.UUID) *TelegramChatFeatureFlagsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TelegramChatFeatureFlagsClient) Get ¶
func (c *TelegramChatFeatureFlagsClient) Get(ctx context.Context, id uuid.UUID) (*TelegramChatFeatureFlags, error)
Get returns a TelegramChatFeatureFlags entity by its id.
func (*TelegramChatFeatureFlagsClient) GetX ¶
func (c *TelegramChatFeatureFlagsClient) GetX(ctx context.Context, id uuid.UUID) *TelegramChatFeatureFlags
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) Query ¶
func (c *TelegramChatFeatureFlagsClient) Query() *TelegramChatFeatureFlagsQuery
Query returns a query builder for TelegramChatFeatureFlags.
func (*TelegramChatFeatureFlagsClient) Update ¶
func (c *TelegramChatFeatureFlagsClient) Update() *TelegramChatFeatureFlagsUpdate
Update returns an update builder for TelegramChatFeatureFlags.
func (*TelegramChatFeatureFlagsClient) UpdateOne ¶
func (c *TelegramChatFeatureFlagsClient) UpdateOne(tcff *TelegramChatFeatureFlags) *TelegramChatFeatureFlagsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TelegramChatFeatureFlagsClient) UpdateOneID ¶
func (c *TelegramChatFeatureFlagsClient) UpdateOneID(id uuid.UUID) *TelegramChatFeatureFlagsUpdateOne
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 ¶
func (tcffc *TelegramChatFeatureFlagsCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatFeatureFlagsCreate) ExecX ¶
func (tcffc *TelegramChatFeatureFlagsCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatFeatureFlagsCreate) Mutation ¶
func (tcffc *TelegramChatFeatureFlagsCreate) Mutation() *TelegramChatFeatureFlagsMutation
Mutation returns the TelegramChatFeatureFlagsMutation object of the builder.
func (*TelegramChatFeatureFlagsCreate) Save ¶
func (tcffc *TelegramChatFeatureFlagsCreate) Save(ctx context.Context) (*TelegramChatFeatureFlags, error)
Save creates the TelegramChatFeatureFlags in the database.
func (*TelegramChatFeatureFlagsCreate) SaveX ¶
func (tcffc *TelegramChatFeatureFlagsCreate) SaveX(ctx context.Context) *TelegramChatFeatureFlags
SaveX calls Save and panics if Save returns an error.
func (*TelegramChatFeatureFlagsCreate) SetChatID ¶
func (tcffc *TelegramChatFeatureFlagsCreate) SetChatID(i int64) *TelegramChatFeatureFlagsCreate
SetChatID sets the "chat_id" field.
func (*TelegramChatFeatureFlagsCreate) SetChatTitle ¶
func (tcffc *TelegramChatFeatureFlagsCreate) SetChatTitle(s string) *TelegramChatFeatureFlagsCreate
SetChatTitle sets the "chat_title" field.
func (*TelegramChatFeatureFlagsCreate) SetChatType ¶
func (tcffc *TelegramChatFeatureFlagsCreate) SetChatType(s string) *TelegramChatFeatureFlagsCreate
SetChatType sets the "chat_type" field.
func (*TelegramChatFeatureFlagsCreate) SetCreatedAt ¶
func (tcffc *TelegramChatFeatureFlagsCreate) SetCreatedAt(i int64) *TelegramChatFeatureFlagsCreate
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 ¶
func (tcffc *TelegramChatFeatureFlagsCreate) SetID(u uuid.UUID) *TelegramChatFeatureFlagsCreate
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 ¶
func (tcffc *TelegramChatFeatureFlagsCreate) SetNillableID(u *uuid.UUID) *TelegramChatFeatureFlagsCreate
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 ¶
func (tcffc *TelegramChatFeatureFlagsCreate) SetUpdatedAt(i int64) *TelegramChatFeatureFlagsCreate
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 ¶
func (tcffcb *TelegramChatFeatureFlagsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatFeatureFlagsCreateBulk) ExecX ¶
func (tcffcb *TelegramChatFeatureFlagsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatFeatureFlagsCreateBulk) Save ¶
func (tcffcb *TelegramChatFeatureFlagsCreateBulk) Save(ctx context.Context) ([]*TelegramChatFeatureFlags, error)
Save creates the TelegramChatFeatureFlags entities in the database.
func (*TelegramChatFeatureFlagsCreateBulk) SaveX ¶
func (tcffcb *TelegramChatFeatureFlagsCreateBulk) SaveX(ctx context.Context) []*TelegramChatFeatureFlags
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 ¶
func (tcffd *TelegramChatFeatureFlagsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TelegramChatFeatureFlagsDelete) ExecX ¶
func (tcffd *TelegramChatFeatureFlagsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatFeatureFlagsDelete) Where ¶
func (tcffd *TelegramChatFeatureFlagsDelete) Where(ps ...predicate.TelegramChatFeatureFlags) *TelegramChatFeatureFlagsDelete
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 ¶
func (tcffdo *TelegramChatFeatureFlagsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TelegramChatFeatureFlagsDeleteOne) ExecX ¶
func (tcffdo *TelegramChatFeatureFlagsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatFeatureFlagsDeleteOne) Where ¶
func (tcffdo *TelegramChatFeatureFlagsDeleteOne) Where(ps ...predicate.TelegramChatFeatureFlags) *TelegramChatFeatureFlagsDeleteOne
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 ¶
func (tcffgb *TelegramChatFeatureFlagsGroupBy) Aggregate(fns ...AggregateFunc) *TelegramChatFeatureFlagsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TelegramChatFeatureFlagsGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsGroupBy) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*TelegramChatFeatureFlagsGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*TelegramChatFeatureFlagsGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*TelegramChatFeatureFlagsGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsGroupBy) Scan ¶
func (tcffgb *TelegramChatFeatureFlagsGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TelegramChatFeatureFlagsGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsGroupBy) StringX ¶
StringX is like String, 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 ¶
func (m TelegramChatFeatureFlagsMutation) 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 (*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 ¶
func (m *TelegramChatFeatureFlagsMutation) 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 (*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 ¶
func (m *TelegramChatFeatureFlagsMutation) 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 (*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 ¶
func (m *TelegramChatFeatureFlagsMutation) 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 (*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 ¶
func (m *TelegramChatFeatureFlagsMutation) Op() 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 ¶
func (m *TelegramChatFeatureFlagsMutation) SetID(id uuid.UUID)
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 ¶
func (m TelegramChatFeatureFlagsMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TelegramChatFeatureFlagsMutation) Type ¶
func (m *TelegramChatFeatureFlagsMutation) Type() string
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 ¶
func (m *TelegramChatFeatureFlagsMutation) Where(ps ...predicate.TelegramChatFeatureFlags)
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 ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Aggregate(fns ...AggregateFunc) *TelegramChatFeatureFlagsSelect
Aggregate returns a TelegramChatFeatureFlagsSelect configured with the given aggregations.
func (*TelegramChatFeatureFlagsQuery) All ¶
func (tcffq *TelegramChatFeatureFlagsQuery) All(ctx context.Context) ([]*TelegramChatFeatureFlags, error)
All executes the query and returns a list of TelegramChatFeatureFlagsSlice.
func (*TelegramChatFeatureFlagsQuery) AllX ¶
func (tcffq *TelegramChatFeatureFlagsQuery) AllX(ctx context.Context) []*TelegramChatFeatureFlags
AllX is like All, but panics if an error occurs.
func (*TelegramChatFeatureFlagsQuery) Clone ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Clone() *TelegramChatFeatureFlagsQuery
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 ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*TelegramChatFeatureFlagsQuery) ExistX ¶
func (tcffq *TelegramChatFeatureFlagsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*TelegramChatFeatureFlagsQuery) First ¶
func (tcffq *TelegramChatFeatureFlagsQuery) First(ctx context.Context) (*TelegramChatFeatureFlags, error)
First returns the first TelegramChatFeatureFlags entity from the query. Returns a *NotFoundError when no TelegramChatFeatureFlags was found.
func (*TelegramChatFeatureFlagsQuery) FirstID ¶
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 ¶
func (tcffq *TelegramChatFeatureFlagsQuery) FirstX(ctx context.Context) *TelegramChatFeatureFlags
FirstX is like First, but panics if an error occurs.
func (*TelegramChatFeatureFlagsQuery) GroupBy ¶
func (tcffq *TelegramChatFeatureFlagsQuery) GroupBy(field string, fields ...string) *TelegramChatFeatureFlagsGroupBy
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 ¶
IDs executes the query and returns a list of TelegramChatFeatureFlags IDs.
func (*TelegramChatFeatureFlagsQuery) IDsX ¶
func (tcffq *TelegramChatFeatureFlagsQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*TelegramChatFeatureFlagsQuery) Limit ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Limit(limit int) *TelegramChatFeatureFlagsQuery
Limit the number of records to be returned by this query.
func (*TelegramChatFeatureFlagsQuery) Offset ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Offset(offset int) *TelegramChatFeatureFlagsQuery
Offset to start from.
func (*TelegramChatFeatureFlagsQuery) Only ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Only(ctx context.Context) (*TelegramChatFeatureFlags, error)
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 ¶
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 ¶
func (tcffq *TelegramChatFeatureFlagsQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*TelegramChatFeatureFlagsQuery) OnlyX ¶
func (tcffq *TelegramChatFeatureFlagsQuery) OnlyX(ctx context.Context) *TelegramChatFeatureFlags
OnlyX is like Only, but panics if an error occurs.
func (*TelegramChatFeatureFlagsQuery) Order ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Order(o ...telegramchatfeatureflags.OrderOption) *TelegramChatFeatureFlagsQuery
Order specifies how the records should be ordered.
func (*TelegramChatFeatureFlagsQuery) Select ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Select(fields ...string) *TelegramChatFeatureFlagsSelect
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 ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Unique(unique bool) *TelegramChatFeatureFlagsQuery
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 ¶
func (tcffq *TelegramChatFeatureFlagsQuery) Where(ps ...predicate.TelegramChatFeatureFlags) *TelegramChatFeatureFlagsQuery
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 ¶
func (tcffs *TelegramChatFeatureFlagsSelect) Aggregate(fns ...AggregateFunc) *TelegramChatFeatureFlagsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TelegramChatFeatureFlagsSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsSelect) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*TelegramChatFeatureFlagsSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*TelegramChatFeatureFlagsSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*TelegramChatFeatureFlagsSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsSelect) Scan ¶
func (tcffs *TelegramChatFeatureFlagsSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TelegramChatFeatureFlagsSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*TelegramChatFeatureFlagsSelect) StringX ¶
StringX is like String, 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 ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) AddChatID(i int64) *TelegramChatFeatureFlagsUpdate
AddChatID adds i to the "chat_id" field.
func (*TelegramChatFeatureFlagsUpdate) AddCreatedAt ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) AddCreatedAt(i int64) *TelegramChatFeatureFlagsUpdate
AddCreatedAt adds i to the "created_at" field.
func (*TelegramChatFeatureFlagsUpdate) AddUpdatedAt ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) AddUpdatedAt(i int64) *TelegramChatFeatureFlagsUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*TelegramChatFeatureFlagsUpdate) Exec ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatFeatureFlagsUpdate) ExecX ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatFeatureFlagsUpdate) Mutation ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) Mutation() *TelegramChatFeatureFlagsMutation
Mutation returns the TelegramChatFeatureFlagsMutation object of the builder.
func (*TelegramChatFeatureFlagsUpdate) Save ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*TelegramChatFeatureFlagsUpdate) SaveX ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TelegramChatFeatureFlagsUpdate) SetChatID ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) SetChatID(i int64) *TelegramChatFeatureFlagsUpdate
SetChatID sets the "chat_id" field.
func (*TelegramChatFeatureFlagsUpdate) SetChatTitle ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) SetChatTitle(s string) *TelegramChatFeatureFlagsUpdate
SetChatTitle sets the "chat_title" field.
func (*TelegramChatFeatureFlagsUpdate) SetChatType ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) SetChatType(s string) *TelegramChatFeatureFlagsUpdate
SetChatType sets the "chat_type" field.
func (*TelegramChatFeatureFlagsUpdate) SetCreatedAt ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) SetCreatedAt(i int64) *TelegramChatFeatureFlagsUpdate
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) SetNillableChatTitle ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableChatTitle(s *string) *TelegramChatFeatureFlagsUpdate
SetNillableChatTitle sets the "chat_title" 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) SetNillableUpdatedAt ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) SetNillableUpdatedAt(i *int64) *TelegramChatFeatureFlagsUpdate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TelegramChatFeatureFlagsUpdate) SetUpdatedAt ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) SetUpdatedAt(i int64) *TelegramChatFeatureFlagsUpdate
SetUpdatedAt sets the "updated_at" field.
func (*TelegramChatFeatureFlagsUpdate) Where ¶
func (tcffu *TelegramChatFeatureFlagsUpdate) Where(ps ...predicate.TelegramChatFeatureFlags) *TelegramChatFeatureFlagsUpdate
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 ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) AddChatID(i int64) *TelegramChatFeatureFlagsUpdateOne
AddChatID adds i to the "chat_id" field.
func (*TelegramChatFeatureFlagsUpdateOne) AddCreatedAt ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) AddCreatedAt(i int64) *TelegramChatFeatureFlagsUpdateOne
AddCreatedAt adds i to the "created_at" field.
func (*TelegramChatFeatureFlagsUpdateOne) AddUpdatedAt ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) AddUpdatedAt(i int64) *TelegramChatFeatureFlagsUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*TelegramChatFeatureFlagsUpdateOne) Exec ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TelegramChatFeatureFlagsUpdateOne) ExecX ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatFeatureFlagsUpdateOne) Mutation ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Mutation() *TelegramChatFeatureFlagsMutation
Mutation returns the TelegramChatFeatureFlagsMutation object of the builder.
func (*TelegramChatFeatureFlagsUpdateOne) Save ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Save(ctx context.Context) (*TelegramChatFeatureFlags, error)
Save executes the query and returns the updated TelegramChatFeatureFlags entity.
func (*TelegramChatFeatureFlagsUpdateOne) SaveX ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SaveX(ctx context.Context) *TelegramChatFeatureFlags
SaveX is like Save, but panics if an error occurs.
func (*TelegramChatFeatureFlagsUpdateOne) Select ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Select(field string, fields ...string) *TelegramChatFeatureFlagsUpdateOne
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 ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetChatID(i int64) *TelegramChatFeatureFlagsUpdateOne
SetChatID sets the "chat_id" field.
func (*TelegramChatFeatureFlagsUpdateOne) SetChatTitle ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetChatTitle(s string) *TelegramChatFeatureFlagsUpdateOne
SetChatTitle sets the "chat_title" field.
func (*TelegramChatFeatureFlagsUpdateOne) SetChatType ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetChatType(s string) *TelegramChatFeatureFlagsUpdateOne
SetChatType sets the "chat_type" field.
func (*TelegramChatFeatureFlagsUpdateOne) SetCreatedAt ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetCreatedAt(i int64) *TelegramChatFeatureFlagsUpdateOne
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) SetNillableChatTitle ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetNillableChatTitle(s *string) *TelegramChatFeatureFlagsUpdateOne
SetNillableChatTitle sets the "chat_title" field if the given value is not nil.
func (*TelegramChatFeatureFlagsUpdateOne) SetNillableCreatedAt ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetNillableCreatedAt(i *int64) *TelegramChatFeatureFlagsUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TelegramChatFeatureFlagsUpdateOne) SetNillableUpdatedAt ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetNillableUpdatedAt(i *int64) *TelegramChatFeatureFlagsUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TelegramChatFeatureFlagsUpdateOne) SetUpdatedAt ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) SetUpdatedAt(i int64) *TelegramChatFeatureFlagsUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*TelegramChatFeatureFlagsUpdateOne) Where ¶
func (tcffuo *TelegramChatFeatureFlagsUpdateOne) Where(ps ...predicate.TelegramChatFeatureFlags) *TelegramChatFeatureFlagsUpdateOne
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"` // 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
func (tcro *TelegramChatRecapsOptions) Unwrap() *TelegramChatRecapsOptions
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
func (tcro *TelegramChatRecapsOptions) Update() *TelegramChatRecapsOptionsUpdateOne
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
func (c *TelegramChatRecapsOptionsClient) Create() *TelegramChatRecapsOptionsCreate
Create returns a builder for creating a TelegramChatRecapsOptions entity.
func (*TelegramChatRecapsOptionsClient) CreateBulk ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) CreateBulk(builders ...*TelegramChatRecapsOptionsCreate) *TelegramChatRecapsOptionsCreateBulk
CreateBulk returns a builder for creating a bulk of TelegramChatRecapsOptions entities.
func (*TelegramChatRecapsOptionsClient) Delete ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) Delete() *TelegramChatRecapsOptionsDelete
Delete returns a delete builder for TelegramChatRecapsOptions.
func (*TelegramChatRecapsOptionsClient) DeleteOne ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) DeleteOne(tcro *TelegramChatRecapsOptions) *TelegramChatRecapsOptionsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TelegramChatRecapsOptionsClient) DeleteOneID ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) DeleteOneID(id uuid.UUID) *TelegramChatRecapsOptionsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TelegramChatRecapsOptionsClient) Get ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) Get(ctx context.Context, id uuid.UUID) (*TelegramChatRecapsOptions, error)
Get returns a TelegramChatRecapsOptions entity by its id.
func (*TelegramChatRecapsOptionsClient) GetX ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) GetX(ctx context.Context, id uuid.UUID) *TelegramChatRecapsOptions
GetX is like Get, but panics if an error occurs.
func (*TelegramChatRecapsOptionsClient) Hooks ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) Hooks() []Hook
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) Query ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) Query() *TelegramChatRecapsOptionsQuery
Query returns a query builder for TelegramChatRecapsOptions.
func (*TelegramChatRecapsOptionsClient) Update ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) Update() *TelegramChatRecapsOptionsUpdate
Update returns an update builder for TelegramChatRecapsOptions.
func (*TelegramChatRecapsOptionsClient) UpdateOne ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) UpdateOne(tcro *TelegramChatRecapsOptions) *TelegramChatRecapsOptionsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TelegramChatRecapsOptionsClient) UpdateOneID ¶ added in v0.14.0
func (c *TelegramChatRecapsOptionsClient) UpdateOneID(id uuid.UUID) *TelegramChatRecapsOptionsUpdateOne
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
func (tcroc *TelegramChatRecapsOptionsCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatRecapsOptionsCreate) ExecX ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatRecapsOptionsCreate) Mutation ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) Mutation() *TelegramChatRecapsOptionsMutation
Mutation returns the TelegramChatRecapsOptionsMutation object of the builder.
func (*TelegramChatRecapsOptionsCreate) Save ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) Save(ctx context.Context) (*TelegramChatRecapsOptions, error)
Save creates the TelegramChatRecapsOptions in the database.
func (*TelegramChatRecapsOptionsCreate) SaveX ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) SaveX(ctx context.Context) *TelegramChatRecapsOptions
SaveX calls Save and panics if Save returns an error.
func (*TelegramChatRecapsOptionsCreate) SetAutoRecapSendMode ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) SetAutoRecapSendMode(i int) *TelegramChatRecapsOptionsCreate
SetAutoRecapSendMode sets the "auto_recap_send_mode" field.
func (*TelegramChatRecapsOptionsCreate) SetChatID ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) SetChatID(i int64) *TelegramChatRecapsOptionsCreate
SetChatID sets the "chat_id" field.
func (*TelegramChatRecapsOptionsCreate) SetCreatedAt ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) SetCreatedAt(i int64) *TelegramChatRecapsOptionsCreate
SetCreatedAt sets the "created_at" field.
func (*TelegramChatRecapsOptionsCreate) SetID ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) SetID(u uuid.UUID) *TelegramChatRecapsOptionsCreate
SetID sets the "id" field.
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
func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableCreatedAt(i *int64) *TelegramChatRecapsOptionsCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TelegramChatRecapsOptionsCreate) SetNillableID ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableID(u *uuid.UUID) *TelegramChatRecapsOptionsCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*TelegramChatRecapsOptionsCreate) SetNillableUpdatedAt ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) SetNillableUpdatedAt(i *int64) *TelegramChatRecapsOptionsCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TelegramChatRecapsOptionsCreate) SetUpdatedAt ¶ added in v0.14.0
func (tcroc *TelegramChatRecapsOptionsCreate) SetUpdatedAt(i int64) *TelegramChatRecapsOptionsCreate
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
func (tcrocb *TelegramChatRecapsOptionsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatRecapsOptionsCreateBulk) ExecX ¶ added in v0.14.0
func (tcrocb *TelegramChatRecapsOptionsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatRecapsOptionsCreateBulk) Save ¶ added in v0.14.0
func (tcrocb *TelegramChatRecapsOptionsCreateBulk) Save(ctx context.Context) ([]*TelegramChatRecapsOptions, error)
Save creates the TelegramChatRecapsOptions entities in the database.
func (*TelegramChatRecapsOptionsCreateBulk) SaveX ¶ added in v0.14.0
func (tcrocb *TelegramChatRecapsOptionsCreateBulk) SaveX(ctx context.Context) []*TelegramChatRecapsOptions
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
func (tcrod *TelegramChatRecapsOptionsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TelegramChatRecapsOptionsDelete) ExecX ¶ added in v0.14.0
func (tcrod *TelegramChatRecapsOptionsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatRecapsOptionsDelete) Where ¶ added in v0.14.0
func (tcrod *TelegramChatRecapsOptionsDelete) Where(ps ...predicate.TelegramChatRecapsOptions) *TelegramChatRecapsOptionsDelete
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
func (tcrodo *TelegramChatRecapsOptionsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TelegramChatRecapsOptionsDeleteOne) ExecX ¶ added in v0.14.0
func (tcrodo *TelegramChatRecapsOptionsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatRecapsOptionsDeleteOne) Where ¶ added in v0.14.0
func (tcrodo *TelegramChatRecapsOptionsDeleteOne) Where(ps ...predicate.TelegramChatRecapsOptions) *TelegramChatRecapsOptionsDeleteOne
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
func (tcrogb *TelegramChatRecapsOptionsGroupBy) Aggregate(fns ...AggregateFunc) *TelegramChatRecapsOptionsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TelegramChatRecapsOptionsGroupBy) Bool ¶ added in v0.14.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsGroupBy) BoolX ¶ added in v0.14.0
BoolX is like Bool, but panics if an error occurs.
func (*TelegramChatRecapsOptionsGroupBy) Bools ¶ added in v0.14.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsGroupBy) BoolsX ¶ added in v0.14.0
BoolsX is like Bools, but panics if an error occurs.
func (*TelegramChatRecapsOptionsGroupBy) Float64 ¶ added in v0.14.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsGroupBy) Float64X ¶ added in v0.14.0
Float64X is like Float64, but panics if an error occurs.
func (*TelegramChatRecapsOptionsGroupBy) Float64s ¶ added in v0.14.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsGroupBy) Float64sX ¶ added in v0.14.0
Float64sX is like Float64s, but panics if an error occurs.
func (*TelegramChatRecapsOptionsGroupBy) Int ¶ added in v0.14.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsGroupBy) IntX ¶ added in v0.14.0
IntX is like Int, but panics if an error occurs.
func (*TelegramChatRecapsOptionsGroupBy) Ints ¶ added in v0.14.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsGroupBy) IntsX ¶ added in v0.14.0
IntsX is like Ints, but panics if an error occurs.
func (*TelegramChatRecapsOptionsGroupBy) Scan ¶ added in v0.14.0
func (tcrogb *TelegramChatRecapsOptionsGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TelegramChatRecapsOptionsGroupBy) ScanX ¶ added in v0.14.0
ScanX is like Scan, but panics if an error occurs.
func (*TelegramChatRecapsOptionsGroupBy) String ¶ added in v0.14.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsGroupBy) StringX ¶ added in v0.14.0
StringX is like String, 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) 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) AddUpdatedAt ¶ added in v0.14.0
func (m *TelegramChatRecapsOptionsMutation) AddUpdatedAt(i int64)
AddUpdatedAt adds i to the "updated_at" field.
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) 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) 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
func (m TelegramChatRecapsOptionsMutation) 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 (*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
func (m *TelegramChatRecapsOptionsMutation) 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 (*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
func (m *TelegramChatRecapsOptionsMutation) 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 (*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) 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
func (m *TelegramChatRecapsOptionsMutation) 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 (*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
func (m *TelegramChatRecapsOptionsMutation) Op() Op
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) 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) ResetUpdatedAt ¶ added in v0.14.0
func (m *TelegramChatRecapsOptionsMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" 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
func (m *TelegramChatRecapsOptionsMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of TelegramChatRecapsOptions entities.
func (*TelegramChatRecapsOptionsMutation) SetOp ¶ added in v0.14.0
func (m *TelegramChatRecapsOptionsMutation) SetOp(op Op)
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
func (m TelegramChatRecapsOptionsMutation) Tx() (*Tx, error)
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
func (m *TelegramChatRecapsOptionsMutation) Type() string
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
func (m *TelegramChatRecapsOptionsMutation) Where(ps ...predicate.TelegramChatRecapsOptions)
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
func (tcroq *TelegramChatRecapsOptionsQuery) Aggregate(fns ...AggregateFunc) *TelegramChatRecapsOptionsSelect
Aggregate returns a TelegramChatRecapsOptionsSelect configured with the given aggregations.
func (*TelegramChatRecapsOptionsQuery) All ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) All(ctx context.Context) ([]*TelegramChatRecapsOptions, error)
All executes the query and returns a list of TelegramChatRecapsOptionsSlice.
func (*TelegramChatRecapsOptionsQuery) AllX ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) AllX(ctx context.Context) []*TelegramChatRecapsOptions
AllX is like All, but panics if an error occurs.
func (*TelegramChatRecapsOptionsQuery) Clone ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) Clone() *TelegramChatRecapsOptionsQuery
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
func (tcroq *TelegramChatRecapsOptionsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*TelegramChatRecapsOptionsQuery) CountX ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*TelegramChatRecapsOptionsQuery) Exist ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*TelegramChatRecapsOptionsQuery) ExistX ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*TelegramChatRecapsOptionsQuery) First ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) First(ctx context.Context) (*TelegramChatRecapsOptions, error)
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
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
func (tcroq *TelegramChatRecapsOptionsQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*TelegramChatRecapsOptionsQuery) FirstX ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) FirstX(ctx context.Context) *TelegramChatRecapsOptions
FirstX is like First, but panics if an error occurs.
func (*TelegramChatRecapsOptionsQuery) GroupBy ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) GroupBy(field string, fields ...string) *TelegramChatRecapsOptionsGroupBy
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
IDs executes the query and returns a list of TelegramChatRecapsOptions IDs.
func (*TelegramChatRecapsOptionsQuery) IDsX ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*TelegramChatRecapsOptionsQuery) Limit ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) Limit(limit int) *TelegramChatRecapsOptionsQuery
Limit the number of records to be returned by this query.
func (*TelegramChatRecapsOptionsQuery) Offset ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) Offset(offset int) *TelegramChatRecapsOptionsQuery
Offset to start from.
func (*TelegramChatRecapsOptionsQuery) Only ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) Only(ctx context.Context) (*TelegramChatRecapsOptions, error)
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
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
func (tcroq *TelegramChatRecapsOptionsQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*TelegramChatRecapsOptionsQuery) OnlyX ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) OnlyX(ctx context.Context) *TelegramChatRecapsOptions
OnlyX is like Only, but panics if an error occurs.
func (*TelegramChatRecapsOptionsQuery) Order ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) Order(o ...telegramchatrecapsoptions.OrderOption) *TelegramChatRecapsOptionsQuery
Order specifies how the records should be ordered.
func (*TelegramChatRecapsOptionsQuery) Select ¶ added in v0.14.0
func (tcroq *TelegramChatRecapsOptionsQuery) Select(fields ...string) *TelegramChatRecapsOptionsSelect
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
func (tcroq *TelegramChatRecapsOptionsQuery) Unique(unique bool) *TelegramChatRecapsOptionsQuery
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
func (tcroq *TelegramChatRecapsOptionsQuery) Where(ps ...predicate.TelegramChatRecapsOptions) *TelegramChatRecapsOptionsQuery
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
func (tcros *TelegramChatRecapsOptionsSelect) Aggregate(fns ...AggregateFunc) *TelegramChatRecapsOptionsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TelegramChatRecapsOptionsSelect) Bool ¶ added in v0.14.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsSelect) BoolX ¶ added in v0.14.0
BoolX is like Bool, but panics if an error occurs.
func (*TelegramChatRecapsOptionsSelect) Bools ¶ added in v0.14.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsSelect) BoolsX ¶ added in v0.14.0
BoolsX is like Bools, but panics if an error occurs.
func (*TelegramChatRecapsOptionsSelect) Float64 ¶ added in v0.14.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsSelect) Float64X ¶ added in v0.14.0
Float64X is like Float64, but panics if an error occurs.
func (*TelegramChatRecapsOptionsSelect) Float64s ¶ added in v0.14.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsSelect) Float64sX ¶ added in v0.14.0
Float64sX is like Float64s, but panics if an error occurs.
func (*TelegramChatRecapsOptionsSelect) Int ¶ added in v0.14.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsSelect) IntX ¶ added in v0.14.0
IntX is like Int, but panics if an error occurs.
func (*TelegramChatRecapsOptionsSelect) Ints ¶ added in v0.14.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsSelect) IntsX ¶ added in v0.14.0
IntsX is like Ints, but panics if an error occurs.
func (*TelegramChatRecapsOptionsSelect) Scan ¶ added in v0.14.0
func (tcros *TelegramChatRecapsOptionsSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TelegramChatRecapsOptionsSelect) ScanX ¶ added in v0.14.0
ScanX is like Scan, but panics if an error occurs.
func (*TelegramChatRecapsOptionsSelect) String ¶ added in v0.14.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*TelegramChatRecapsOptionsSelect) StringX ¶ added in v0.14.0
StringX is like String, 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) AddAutoRecapSendMode ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) AddAutoRecapSendMode(i int) *TelegramChatRecapsOptionsUpdate
AddAutoRecapSendMode adds i to the "auto_recap_send_mode" field.
func (*TelegramChatRecapsOptionsUpdate) AddChatID ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) AddChatID(i int64) *TelegramChatRecapsOptionsUpdate
AddChatID adds i to the "chat_id" field.
func (*TelegramChatRecapsOptionsUpdate) AddCreatedAt ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) AddCreatedAt(i int64) *TelegramChatRecapsOptionsUpdate
AddCreatedAt adds i to the "created_at" field.
func (*TelegramChatRecapsOptionsUpdate) AddUpdatedAt ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) AddUpdatedAt(i int64) *TelegramChatRecapsOptionsUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*TelegramChatRecapsOptionsUpdate) Exec ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TelegramChatRecapsOptionsUpdate) ExecX ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatRecapsOptionsUpdate) Mutation ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) Mutation() *TelegramChatRecapsOptionsMutation
Mutation returns the TelegramChatRecapsOptionsMutation object of the builder.
func (*TelegramChatRecapsOptionsUpdate) Save ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*TelegramChatRecapsOptionsUpdate) SaveX ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TelegramChatRecapsOptionsUpdate) SetAutoRecapSendMode ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) SetAutoRecapSendMode(i int) *TelegramChatRecapsOptionsUpdate
SetAutoRecapSendMode sets the "auto_recap_send_mode" field.
func (*TelegramChatRecapsOptionsUpdate) SetChatID ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) SetChatID(i int64) *TelegramChatRecapsOptionsUpdate
SetChatID sets the "chat_id" field.
func (*TelegramChatRecapsOptionsUpdate) SetCreatedAt ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) SetCreatedAt(i int64) *TelegramChatRecapsOptionsUpdate
SetCreatedAt sets the "created_at" field.
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) SetNillableCreatedAt ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) SetNillableCreatedAt(i *int64) *TelegramChatRecapsOptionsUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TelegramChatRecapsOptionsUpdate) SetNillableUpdatedAt ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) SetNillableUpdatedAt(i *int64) *TelegramChatRecapsOptionsUpdate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TelegramChatRecapsOptionsUpdate) SetUpdatedAt ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) SetUpdatedAt(i int64) *TelegramChatRecapsOptionsUpdate
SetUpdatedAt sets the "updated_at" field.
func (*TelegramChatRecapsOptionsUpdate) Where ¶ added in v0.14.0
func (tcrou *TelegramChatRecapsOptionsUpdate) Where(ps ...predicate.TelegramChatRecapsOptions) *TelegramChatRecapsOptionsUpdate
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) AddAutoRecapSendMode ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddAutoRecapSendMode(i int) *TelegramChatRecapsOptionsUpdateOne
AddAutoRecapSendMode adds i to the "auto_recap_send_mode" field.
func (*TelegramChatRecapsOptionsUpdateOne) AddChatID ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddChatID(i int64) *TelegramChatRecapsOptionsUpdateOne
AddChatID adds i to the "chat_id" field.
func (*TelegramChatRecapsOptionsUpdateOne) AddCreatedAt ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddCreatedAt(i int64) *TelegramChatRecapsOptionsUpdateOne
AddCreatedAt adds i to the "created_at" field.
func (*TelegramChatRecapsOptionsUpdateOne) AddUpdatedAt ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) AddUpdatedAt(i int64) *TelegramChatRecapsOptionsUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*TelegramChatRecapsOptionsUpdateOne) Exec ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TelegramChatRecapsOptionsUpdateOne) ExecX ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TelegramChatRecapsOptionsUpdateOne) Mutation ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Mutation() *TelegramChatRecapsOptionsMutation
Mutation returns the TelegramChatRecapsOptionsMutation object of the builder.
func (*TelegramChatRecapsOptionsUpdateOne) Save ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Save(ctx context.Context) (*TelegramChatRecapsOptions, error)
Save executes the query and returns the updated TelegramChatRecapsOptions entity.
func (*TelegramChatRecapsOptionsUpdateOne) SaveX ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SaveX(ctx context.Context) *TelegramChatRecapsOptions
SaveX is like Save, but panics if an error occurs.
func (*TelegramChatRecapsOptionsUpdateOne) Select ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Select(field string, fields ...string) *TelegramChatRecapsOptionsUpdateOne
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) SetAutoRecapSendMode ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetAutoRecapSendMode(i int) *TelegramChatRecapsOptionsUpdateOne
SetAutoRecapSendMode sets the "auto_recap_send_mode" field.
func (*TelegramChatRecapsOptionsUpdateOne) SetChatID ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetChatID(i int64) *TelegramChatRecapsOptionsUpdateOne
SetChatID sets the "chat_id" field.
func (*TelegramChatRecapsOptionsUpdateOne) SetCreatedAt ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetCreatedAt(i int64) *TelegramChatRecapsOptionsUpdateOne
SetCreatedAt sets the "created_at" field.
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) SetNillableCreatedAt ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetNillableCreatedAt(i *int64) *TelegramChatRecapsOptionsUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TelegramChatRecapsOptionsUpdateOne) SetNillableUpdatedAt ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetNillableUpdatedAt(i *int64) *TelegramChatRecapsOptionsUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TelegramChatRecapsOptionsUpdateOne) SetUpdatedAt ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) SetUpdatedAt(i int64) *TelegramChatRecapsOptionsUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*TelegramChatRecapsOptionsUpdateOne) Where ¶ added in v0.14.0
func (tcrouo *TelegramChatRecapsOptionsUpdateOne) Where(ps ...predicate.TelegramChatRecapsOptions) *TelegramChatRecapsOptionsUpdateOne
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 Tx ¶
type Tx struct { // ChatHistories is the client for interacting with the ChatHistories builders. ChatHistories *ChatHistoriesClient // 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 ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
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.
Source Files ¶
- chathistories.go
- chathistories_create.go
- chathistories_delete.go
- chathistories_query.go
- chathistories_update.go
- client.go
- ent.go
- generate.go
- logchathistoriesrecap.go
- logchathistoriesrecap_create.go
- logchathistoriesrecap_delete.go
- logchathistoriesrecap_query.go
- logchathistoriesrecap_update.go
- logsummarizations.go
- logsummarizations_create.go
- logsummarizations_delete.go
- logsummarizations_query.go
- logsummarizations_update.go
- metricopenaichatcompletiontokenusage.go
- metricopenaichatcompletiontokenusage_create.go
- metricopenaichatcompletiontokenusage_delete.go
- metricopenaichatcompletiontokenusage_query.go
- metricopenaichatcompletiontokenusage_update.go
- mutation.go
- runtime.go
- slackoauthcredentials.go
- slackoauthcredentials_create.go
- slackoauthcredentials_delete.go
- slackoauthcredentials_query.go
- slackoauthcredentials_update.go
- telegramchatautorecapssubscribers.go
- telegramchatautorecapssubscribers_create.go
- telegramchatautorecapssubscribers_delete.go
- telegramchatautorecapssubscribers_query.go
- telegramchatautorecapssubscribers_update.go
- telegramchatfeatureflags.go
- telegramchatfeatureflags_create.go
- telegramchatfeatureflags_delete.go
- telegramchatfeatureflags_query.go
- telegramchatfeatureflags_update.go
- telegramchatrecapsoptions.go
- telegramchatrecapsoptions_create.go
- telegramchatrecapsoptions_delete.go
- telegramchatrecapsoptions_query.go
- telegramchatrecapsoptions_update.go
- tx.go