Versions in this module Expand all Collapse all v0 v0.1.5 Feb 20, 2024 v0.1.4 Mar 6, 2023 v0.1.3 Feb 20, 2023 v0.1.2 Feb 18, 2023 v0.1.1 Feb 18, 2023 v0.1.0 Feb 13, 2023 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeMessage + const TypeSession + 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 func(*sql.Selector) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Client struct + Message *MessageClient + Schema *migrate.Schema + Session *SessionClient + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + 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) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *Client) Intercept(interceptors ...Interceptor) + func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) + func (c *Client) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type InterceptFunc = ent.InterceptFunc + type Interceptor = ent.Interceptor + type Message struct + Content string + CreatedAt time.Time + Edges MessageEdges + FromUserID string + ID int + SessionID int + SpouseID int + ToUserID string + func (c *Message) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *Message) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (m *Message) QuerySession() *SessionQuery + func (m *Message) QuerySpouse() *MessageQuery + func (m *Message) String() string + func (m *Message) Unwrap() *Message + func (m *Message) Update() *MessageUpdateOne + type MessageClient struct + func NewMessageClient(c config) *MessageClient + func (c *MessageClient) Create() *MessageCreate + func (c *MessageClient) CreateBulk(builders ...*MessageCreate) *MessageCreateBulk + func (c *MessageClient) Delete() *MessageDelete + func (c *MessageClient) DeleteOne(m *Message) *MessageDeleteOne + func (c *MessageClient) DeleteOneID(id int) *MessageDeleteOne + func (c *MessageClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageClient) Get(ctx context.Context, id int) (*Message, error) + func (c *MessageClient) GetX(ctx context.Context, id int) *Message + func (c *MessageClient) Hooks() []Hook + func (c *MessageClient) Intercept(interceptors ...Interceptor) + func (c *MessageClient) Interceptors() []Interceptor + func (c *MessageClient) Query() *MessageQuery + func (c *MessageClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (c *MessageClient) QuerySession(m *Message) *SessionQuery + func (c *MessageClient) QuerySpouse(m *Message) *MessageQuery + func (c *MessageClient) Update() *MessageUpdate + func (c *MessageClient) UpdateOne(m *Message) *MessageUpdateOne + func (c *MessageClient) UpdateOneID(id int) *MessageUpdateOne + func (c *MessageClient) Use(hooks ...Hook) + type MessageCreate struct + func (c *MessageCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (mc *MessageCreate) Exec(ctx context.Context) error + func (mc *MessageCreate) ExecX(ctx context.Context) + func (mc *MessageCreate) Mutation() *MessageMutation + func (mc *MessageCreate) OnConflict(opts ...sql.ConflictOption) *MessageUpsertOne + func (mc *MessageCreate) OnConflictColumns(columns ...string) *MessageUpsertOne + func (mc *MessageCreate) Save(ctx context.Context) (*Message, error) + func (mc *MessageCreate) SaveX(ctx context.Context) *Message + func (mc *MessageCreate) SetContent(s string) *MessageCreate + func (mc *MessageCreate) SetCreatedAt(t time.Time) *MessageCreate + func (mc *MessageCreate) SetFromUserID(s string) *MessageCreate + func (mc *MessageCreate) SetNillableCreatedAt(t *time.Time) *MessageCreate + func (mc *MessageCreate) SetNillableSessionID(i *int) *MessageCreate + func (mc *MessageCreate) SetNillableSpouseID(i *int) *MessageCreate + func (mc *MessageCreate) SetSession(s *Session) *MessageCreate + func (mc *MessageCreate) SetSessionID(i int) *MessageCreate + func (mc *MessageCreate) SetSpouse(m *Message) *MessageCreate + func (mc *MessageCreate) SetSpouseID(i int) *MessageCreate + func (mc *MessageCreate) SetToUserID(s string) *MessageCreate + type MessageCreateBulk struct + func (c *MessageCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (mcb *MessageCreateBulk) Exec(ctx context.Context) error + func (mcb *MessageCreateBulk) ExecX(ctx context.Context) + func (mcb *MessageCreateBulk) OnConflict(opts ...sql.ConflictOption) *MessageUpsertBulk + func (mcb *MessageCreateBulk) OnConflictColumns(columns ...string) *MessageUpsertBulk + func (mcb *MessageCreateBulk) Save(ctx context.Context) ([]*Message, error) + func (mcb *MessageCreateBulk) SaveX(ctx context.Context) []*Message + type MessageDelete struct + func (c *MessageDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (md *MessageDelete) Exec(ctx context.Context) (int, error) + func (md *MessageDelete) ExecX(ctx context.Context) int + func (md *MessageDelete) Where(ps ...predicate.Message) *MessageDelete + type MessageDeleteOne struct + func (mdo *MessageDeleteOne) Exec(ctx context.Context) error + func (mdo *MessageDeleteOne) ExecX(ctx context.Context) + func (mdo *MessageDeleteOne) Where(ps ...predicate.Message) *MessageDeleteOne + type MessageEdges struct + Session *Session + Spouse *Message + func (e MessageEdges) SessionOrErr() (*Session, error) + func (e MessageEdges) SpouseOrErr() (*Message, error) + type MessageFilter struct + func (c *MessageFilter) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageFilter) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (f *MessageFilter) Where(p entql.P) + func (f *MessageFilter) WhereContent(p entql.StringP) + func (f *MessageFilter) WhereCreatedAt(p entql.TimeP) + func (f *MessageFilter) WhereFromUserID(p entql.StringP) + func (f *MessageFilter) WhereHasSession() + func (f *MessageFilter) WhereHasSessionWith(preds ...predicate.Session) + func (f *MessageFilter) WhereHasSpouse() + func (f *MessageFilter) WhereHasSpouseWith(preds ...predicate.Message) + func (f *MessageFilter) WhereID(p entql.IntP) + func (f *MessageFilter) WhereSessionID(p entql.IntP) + func (f *MessageFilter) WhereSpouseID(p entql.IntP) + func (f *MessageFilter) WhereToUserID(p entql.StringP) + type MessageGroupBy struct + func (mgb *MessageGroupBy) Aggregate(fns ...AggregateFunc) *MessageGroupBy + func (mgb *MessageGroupBy) Scan(ctx context.Context, v any) error + func (s *MessageGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *MessageGroupBy) BoolX(ctx context.Context) bool + func (s *MessageGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *MessageGroupBy) BoolsX(ctx context.Context) []bool + func (s *MessageGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *MessageGroupBy) Float64X(ctx context.Context) float64 + func (s *MessageGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *MessageGroupBy) Float64sX(ctx context.Context) []float64 + func (s *MessageGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *MessageGroupBy) IntX(ctx context.Context) int + func (s *MessageGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *MessageGroupBy) IntsX(ctx context.Context) []int + func (s *MessageGroupBy) ScanX(ctx context.Context, v any) + func (s *MessageGroupBy) String(ctx context.Context) (_ string, err error) + func (s *MessageGroupBy) StringX(ctx context.Context) string + func (s *MessageGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *MessageGroupBy) StringsX(ctx context.Context) []string + type MessageMutation struct + func (c *MessageMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (m *MessageMutation) AddField(name string, value ent.Value) error + func (m *MessageMutation) AddedEdges() []string + func (m *MessageMutation) AddedField(name string) (ent.Value, bool) + func (m *MessageMutation) AddedFields() []string + func (m *MessageMutation) AddedIDs(name string) []ent.Value + func (m *MessageMutation) ClearEdge(name string) error + func (m *MessageMutation) ClearField(name string) error + func (m *MessageMutation) ClearSession() + func (m *MessageMutation) ClearSessionID() + func (m *MessageMutation) ClearSpouse() + func (m *MessageMutation) ClearSpouseID() + func (m *MessageMutation) ClearedEdges() []string + func (m *MessageMutation) ClearedFields() []string + func (m *MessageMutation) Content() (r string, exists bool) + func (m *MessageMutation) CreatedAt() (r time.Time, exists bool) + func (m *MessageMutation) EdgeCleared(name string) bool + func (m *MessageMutation) Field(name string) (ent.Value, bool) + func (m *MessageMutation) FieldCleared(name string) bool + func (m *MessageMutation) Fields() []string + func (m *MessageMutation) Filter() *MessageFilter + func (m *MessageMutation) FromUserID() (r string, exists bool) + func (m *MessageMutation) ID() (id int, exists bool) + func (m *MessageMutation) IDs(ctx context.Context) ([]int, error) + func (m *MessageMutation) OldContent(ctx context.Context) (v string, err error) + func (m *MessageMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *MessageMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *MessageMutation) OldFromUserID(ctx context.Context) (v string, err error) + func (m *MessageMutation) OldSessionID(ctx context.Context) (v int, err error) + func (m *MessageMutation) OldSpouseID(ctx context.Context) (v int, err error) + func (m *MessageMutation) OldToUserID(ctx context.Context) (v string, err error) + func (m *MessageMutation) Op() Op + func (m *MessageMutation) RemovedEdges() []string + func (m *MessageMutation) RemovedIDs(name string) []ent.Value + func (m *MessageMutation) ResetContent() + func (m *MessageMutation) ResetCreatedAt() + func (m *MessageMutation) ResetEdge(name string) error + func (m *MessageMutation) ResetField(name string) error + func (m *MessageMutation) ResetFromUserID() + func (m *MessageMutation) ResetSession() + func (m *MessageMutation) ResetSessionID() + func (m *MessageMutation) ResetSpouse() + func (m *MessageMutation) ResetSpouseID() + func (m *MessageMutation) ResetToUserID() + func (m *MessageMutation) SessionCleared() bool + func (m *MessageMutation) SessionID() (r int, exists bool) + func (m *MessageMutation) SessionIDCleared() bool + func (m *MessageMutation) SessionIDs() (ids []int) + func (m *MessageMutation) SetContent(s string) + func (m *MessageMutation) SetCreatedAt(t time.Time) + func (m *MessageMutation) SetField(name string, value ent.Value) error + func (m *MessageMutation) SetFromUserID(s string) + func (m *MessageMutation) SetOp(op Op) + func (m *MessageMutation) SetSessionID(i int) + func (m *MessageMutation) SetSpouseID(i int) + func (m *MessageMutation) SetToUserID(s string) + func (m *MessageMutation) SpouseCleared() bool + func (m *MessageMutation) SpouseID() (r int, exists bool) + func (m *MessageMutation) SpouseIDCleared() bool + func (m *MessageMutation) SpouseIDs() (ids []int) + func (m *MessageMutation) ToUserID() (r string, exists bool) + func (m *MessageMutation) Type() string + func (m *MessageMutation) Where(ps ...predicate.Message) + func (m *MessageMutation) WhereP(ps ...func(*sql.Selector)) + func (m MessageMutation) Client() *Client + func (m MessageMutation) Tx() (*Tx, error) + type MessageQuery struct + func (c *MessageQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (mq *MessageQuery) Aggregate(fns ...AggregateFunc) *MessageSelect + func (mq *MessageQuery) All(ctx context.Context) ([]*Message, error) + func (mq *MessageQuery) AllX(ctx context.Context) []*Message + func (mq *MessageQuery) Clone() *MessageQuery + func (mq *MessageQuery) Count(ctx context.Context) (int, error) + func (mq *MessageQuery) CountX(ctx context.Context) int + func (mq *MessageQuery) Exist(ctx context.Context) (bool, error) + func (mq *MessageQuery) ExistX(ctx context.Context) bool + func (mq *MessageQuery) Filter() *MessageFilter + func (mq *MessageQuery) First(ctx context.Context) (*Message, error) + func (mq *MessageQuery) FirstID(ctx context.Context) (id int, err error) + func (mq *MessageQuery) FirstIDX(ctx context.Context) int + func (mq *MessageQuery) FirstX(ctx context.Context) *Message + func (mq *MessageQuery) ForShare(opts ...sql.LockOption) *MessageQuery + func (mq *MessageQuery) ForUpdate(opts ...sql.LockOption) *MessageQuery + func (mq *MessageQuery) GroupBy(field string, fields ...string) *MessageGroupBy + func (mq *MessageQuery) IDs(ctx context.Context) ([]int, error) + func (mq *MessageQuery) IDsX(ctx context.Context) []int + func (mq *MessageQuery) Limit(limit int) *MessageQuery + func (mq *MessageQuery) Modify(modifiers ...func(s *sql.Selector)) *MessageSelect + func (mq *MessageQuery) Offset(offset int) *MessageQuery + func (mq *MessageQuery) Only(ctx context.Context) (*Message, error) + func (mq *MessageQuery) OnlyID(ctx context.Context) (id int, err error) + func (mq *MessageQuery) OnlyIDX(ctx context.Context) int + func (mq *MessageQuery) OnlyX(ctx context.Context) *Message + func (mq *MessageQuery) Order(o ...OrderFunc) *MessageQuery + func (mq *MessageQuery) QuerySession() *SessionQuery + func (mq *MessageQuery) QuerySpouse() *MessageQuery + func (mq *MessageQuery) Select(fields ...string) *MessageSelect + func (mq *MessageQuery) Unique(unique bool) *MessageQuery + func (mq *MessageQuery) Where(ps ...predicate.Message) *MessageQuery + func (mq *MessageQuery) WithSession(opts ...func(*SessionQuery)) *MessageQuery + func (mq *MessageQuery) WithSpouse(opts ...func(*MessageQuery)) *MessageQuery + type MessageSelect struct + func (c MessageSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c MessageSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (ms *MessageSelect) Aggregate(fns ...AggregateFunc) *MessageSelect + func (ms *MessageSelect) Modify(modifiers ...func(s *sql.Selector)) *MessageSelect + func (ms *MessageSelect) Scan(ctx context.Context, v any) error + func (s *MessageSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *MessageSelect) BoolX(ctx context.Context) bool + func (s *MessageSelect) Bools(ctx context.Context) ([]bool, error) + func (s *MessageSelect) BoolsX(ctx context.Context) []bool + func (s *MessageSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *MessageSelect) Float64X(ctx context.Context) float64 + func (s *MessageSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *MessageSelect) Float64sX(ctx context.Context) []float64 + func (s *MessageSelect) Int(ctx context.Context) (_ int, err error) + func (s *MessageSelect) IntX(ctx context.Context) int + func (s *MessageSelect) Ints(ctx context.Context) ([]int, error) + func (s *MessageSelect) IntsX(ctx context.Context) []int + func (s *MessageSelect) ScanX(ctx context.Context, v any) + func (s *MessageSelect) String(ctx context.Context) (_ string, err error) + func (s *MessageSelect) StringX(ctx context.Context) string + func (s *MessageSelect) Strings(ctx context.Context) ([]string, error) + func (s *MessageSelect) StringsX(ctx context.Context) []string + type MessageUpdate struct + func (c *MessageUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (mu *MessageUpdate) ClearSession() *MessageUpdate + func (mu *MessageUpdate) ClearSessionID() *MessageUpdate + func (mu *MessageUpdate) ClearSpouse() *MessageUpdate + func (mu *MessageUpdate) ClearSpouseID() *MessageUpdate + func (mu *MessageUpdate) Exec(ctx context.Context) error + func (mu *MessageUpdate) ExecX(ctx context.Context) + func (mu *MessageUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MessageUpdate + func (mu *MessageUpdate) Mutation() *MessageMutation + func (mu *MessageUpdate) Save(ctx context.Context) (int, error) + func (mu *MessageUpdate) SaveX(ctx context.Context) int + func (mu *MessageUpdate) SetContent(s string) *MessageUpdate + func (mu *MessageUpdate) SetFromUserID(s string) *MessageUpdate + func (mu *MessageUpdate) SetNillableSessionID(i *int) *MessageUpdate + func (mu *MessageUpdate) SetNillableSpouseID(i *int) *MessageUpdate + func (mu *MessageUpdate) SetSession(s *Session) *MessageUpdate + func (mu *MessageUpdate) SetSessionID(i int) *MessageUpdate + func (mu *MessageUpdate) SetSpouse(m *Message) *MessageUpdate + func (mu *MessageUpdate) SetSpouseID(i int) *MessageUpdate + func (mu *MessageUpdate) SetToUserID(s string) *MessageUpdate + func (mu *MessageUpdate) Where(ps ...predicate.Message) *MessageUpdate + type MessageUpdateOne struct + func (c *MessageUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *MessageUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (muo *MessageUpdateOne) ClearSession() *MessageUpdateOne + func (muo *MessageUpdateOne) ClearSessionID() *MessageUpdateOne + func (muo *MessageUpdateOne) ClearSpouse() *MessageUpdateOne + func (muo *MessageUpdateOne) ClearSpouseID() *MessageUpdateOne + func (muo *MessageUpdateOne) Exec(ctx context.Context) error + func (muo *MessageUpdateOne) ExecX(ctx context.Context) + func (muo *MessageUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MessageUpdateOne + func (muo *MessageUpdateOne) Mutation() *MessageMutation + func (muo *MessageUpdateOne) Save(ctx context.Context) (*Message, error) + func (muo *MessageUpdateOne) SaveX(ctx context.Context) *Message + func (muo *MessageUpdateOne) Select(field string, fields ...string) *MessageUpdateOne + func (muo *MessageUpdateOne) SetContent(s string) *MessageUpdateOne + func (muo *MessageUpdateOne) SetFromUserID(s string) *MessageUpdateOne + func (muo *MessageUpdateOne) SetNillableSessionID(i *int) *MessageUpdateOne + func (muo *MessageUpdateOne) SetNillableSpouseID(i *int) *MessageUpdateOne + func (muo *MessageUpdateOne) SetSession(s *Session) *MessageUpdateOne + func (muo *MessageUpdateOne) SetSessionID(i int) *MessageUpdateOne + func (muo *MessageUpdateOne) SetSpouse(m *Message) *MessageUpdateOne + func (muo *MessageUpdateOne) SetSpouseID(i int) *MessageUpdateOne + func (muo *MessageUpdateOne) SetToUserID(s string) *MessageUpdateOne + type MessageUpsert struct + func (u *MessageUpsert) ClearSessionID() *MessageUpsert + func (u *MessageUpsert) ClearSpouseID() *MessageUpsert + func (u *MessageUpsert) SetContent(v string) *MessageUpsert + func (u *MessageUpsert) SetFromUserID(v string) *MessageUpsert + func (u *MessageUpsert) SetSessionID(v int) *MessageUpsert + func (u *MessageUpsert) SetSpouseID(v int) *MessageUpsert + func (u *MessageUpsert) SetToUserID(v string) *MessageUpsert + func (u *MessageUpsert) UpdateContent() *MessageUpsert + func (u *MessageUpsert) UpdateFromUserID() *MessageUpsert + func (u *MessageUpsert) UpdateSessionID() *MessageUpsert + func (u *MessageUpsert) UpdateSpouseID() *MessageUpsert + func (u *MessageUpsert) UpdateToUserID() *MessageUpsert + type MessageUpsertBulk struct + func (u *MessageUpsertBulk) ClearSessionID() *MessageUpsertBulk + func (u *MessageUpsertBulk) ClearSpouseID() *MessageUpsertBulk + func (u *MessageUpsertBulk) DoNothing() *MessageUpsertBulk + func (u *MessageUpsertBulk) Exec(ctx context.Context) error + func (u *MessageUpsertBulk) ExecX(ctx context.Context) + func (u *MessageUpsertBulk) Ignore() *MessageUpsertBulk + func (u *MessageUpsertBulk) SetContent(v string) *MessageUpsertBulk + func (u *MessageUpsertBulk) SetFromUserID(v string) *MessageUpsertBulk + func (u *MessageUpsertBulk) SetSessionID(v int) *MessageUpsertBulk + func (u *MessageUpsertBulk) SetSpouseID(v int) *MessageUpsertBulk + func (u *MessageUpsertBulk) SetToUserID(v string) *MessageUpsertBulk + func (u *MessageUpsertBulk) Update(set func(*MessageUpsert)) *MessageUpsertBulk + func (u *MessageUpsertBulk) UpdateContent() *MessageUpsertBulk + func (u *MessageUpsertBulk) UpdateFromUserID() *MessageUpsertBulk + func (u *MessageUpsertBulk) UpdateNewValues() *MessageUpsertBulk + func (u *MessageUpsertBulk) UpdateSessionID() *MessageUpsertBulk + func (u *MessageUpsertBulk) UpdateSpouseID() *MessageUpsertBulk + func (u *MessageUpsertBulk) UpdateToUserID() *MessageUpsertBulk + type MessageUpsertOne struct + func (u *MessageUpsertOne) ClearSessionID() *MessageUpsertOne + func (u *MessageUpsertOne) ClearSpouseID() *MessageUpsertOne + func (u *MessageUpsertOne) DoNothing() *MessageUpsertOne + func (u *MessageUpsertOne) Exec(ctx context.Context) error + func (u *MessageUpsertOne) ExecX(ctx context.Context) + func (u *MessageUpsertOne) ID(ctx context.Context) (id int, err error) + func (u *MessageUpsertOne) IDX(ctx context.Context) int + func (u *MessageUpsertOne) Ignore() *MessageUpsertOne + func (u *MessageUpsertOne) SetContent(v string) *MessageUpsertOne + func (u *MessageUpsertOne) SetFromUserID(v string) *MessageUpsertOne + func (u *MessageUpsertOne) SetSessionID(v int) *MessageUpsertOne + func (u *MessageUpsertOne) SetSpouseID(v int) *MessageUpsertOne + func (u *MessageUpsertOne) SetToUserID(v string) *MessageUpsertOne + func (u *MessageUpsertOne) Update(set func(*MessageUpsert)) *MessageUpsertOne + func (u *MessageUpsertOne) UpdateContent() *MessageUpsertOne + func (u *MessageUpsertOne) UpdateFromUserID() *MessageUpsertOne + func (u *MessageUpsertOne) UpdateNewValues() *MessageUpsertOne + func (u *MessageUpsertOne) UpdateSessionID() *MessageUpsertOne + func (u *MessageUpsertOne) UpdateSpouseID() *MessageUpsertOne + func (u *MessageUpsertOne) UpdateToUserID() *MessageUpsertOne + type Messages []*Message + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...any)) Option + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Policy = ent.Policy + type Querier = ent.Querier + type QuerierFunc = ent.QuerierFunc + type Query = ent.Query + type QueryContext = ent.QueryContext + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Session struct + CreatedAt time.Time + DeletedAt int + Edges SessionEdges + ID int + Status bool + UpdatedAt time.Time + UserID string + func (c *Session) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *Session) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (s *Session) QueryMessages() *MessageQuery + func (s *Session) String() string + func (s *Session) Unwrap() *Session + func (s *Session) Update() *SessionUpdateOne + type SessionClient struct + func NewSessionClient(c config) *SessionClient + func (c *SessionClient) Create() *SessionCreate + func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk + func (c *SessionClient) Delete() *SessionDelete + func (c *SessionClient) DeleteOne(s *Session) *SessionDeleteOne + func (c *SessionClient) DeleteOneID(id int) *SessionDeleteOne + func (c *SessionClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionClient) Get(ctx context.Context, id int) (*Session, error) + func (c *SessionClient) GetX(ctx context.Context, id int) *Session + func (c *SessionClient) Hooks() []Hook + func (c *SessionClient) Intercept(interceptors ...Interceptor) + func (c *SessionClient) Interceptors() []Interceptor + func (c *SessionClient) Query() *SessionQuery + func (c *SessionClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (c *SessionClient) QueryMessages(s *Session) *MessageQuery + func (c *SessionClient) Update() *SessionUpdate + func (c *SessionClient) UpdateOne(s *Session) *SessionUpdateOne + func (c *SessionClient) UpdateOneID(id int) *SessionUpdateOne + func (c *SessionClient) Use(hooks ...Hook) + type SessionCreate struct + func (c *SessionCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (sc *SessionCreate) AddMessageIDs(ids ...int) *SessionCreate + func (sc *SessionCreate) AddMessages(m ...*Message) *SessionCreate + func (sc *SessionCreate) Exec(ctx context.Context) error + func (sc *SessionCreate) ExecX(ctx context.Context) + func (sc *SessionCreate) Mutation() *SessionMutation + func (sc *SessionCreate) OnConflict(opts ...sql.ConflictOption) *SessionUpsertOne + func (sc *SessionCreate) OnConflictColumns(columns ...string) *SessionUpsertOne + func (sc *SessionCreate) Save(ctx context.Context) (*Session, error) + func (sc *SessionCreate) SaveX(ctx context.Context) *Session + func (sc *SessionCreate) SetCreatedAt(t time.Time) *SessionCreate + func (sc *SessionCreate) SetDeletedAt(i int) *SessionCreate + func (sc *SessionCreate) SetNillableCreatedAt(t *time.Time) *SessionCreate + func (sc *SessionCreate) SetNillableDeletedAt(i *int) *SessionCreate + func (sc *SessionCreate) SetNillableStatus(b *bool) *SessionCreate + func (sc *SessionCreate) SetNillableUpdatedAt(t *time.Time) *SessionCreate + func (sc *SessionCreate) SetStatus(b bool) *SessionCreate + func (sc *SessionCreate) SetUpdatedAt(t time.Time) *SessionCreate + func (sc *SessionCreate) SetUserID(s string) *SessionCreate + type SessionCreateBulk struct + func (c *SessionCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (scb *SessionCreateBulk) Exec(ctx context.Context) error + func (scb *SessionCreateBulk) ExecX(ctx context.Context) + func (scb *SessionCreateBulk) OnConflict(opts ...sql.ConflictOption) *SessionUpsertBulk + func (scb *SessionCreateBulk) OnConflictColumns(columns ...string) *SessionUpsertBulk + func (scb *SessionCreateBulk) Save(ctx context.Context) ([]*Session, error) + func (scb *SessionCreateBulk) SaveX(ctx context.Context) []*Session + type SessionDelete struct + func (c *SessionDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (sd *SessionDelete) Exec(ctx context.Context) (int, error) + func (sd *SessionDelete) ExecX(ctx context.Context) int + func (sd *SessionDelete) Where(ps ...predicate.Session) *SessionDelete + type SessionDeleteOne struct + func (sdo *SessionDeleteOne) Exec(ctx context.Context) error + func (sdo *SessionDeleteOne) ExecX(ctx context.Context) + func (sdo *SessionDeleteOne) Where(ps ...predicate.Session) *SessionDeleteOne + type SessionEdges struct + Messages []*Message + func (e SessionEdges) MessagesOrErr() ([]*Message, error) + type SessionFilter struct + func (c *SessionFilter) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionFilter) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (f *SessionFilter) Where(p entql.P) + func (f *SessionFilter) WhereCreatedAt(p entql.TimeP) + func (f *SessionFilter) WhereDeletedAt(p entql.IntP) + func (f *SessionFilter) WhereHasMessages() + func (f *SessionFilter) WhereHasMessagesWith(preds ...predicate.Message) + func (f *SessionFilter) WhereID(p entql.IntP) + func (f *SessionFilter) WhereStatus(p entql.BoolP) + func (f *SessionFilter) WhereUpdatedAt(p entql.TimeP) + func (f *SessionFilter) WhereUserID(p entql.StringP) + type SessionGroupBy struct + func (s *SessionGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *SessionGroupBy) BoolX(ctx context.Context) bool + func (s *SessionGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *SessionGroupBy) BoolsX(ctx context.Context) []bool + func (s *SessionGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *SessionGroupBy) Float64X(ctx context.Context) float64 + func (s *SessionGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *SessionGroupBy) Float64sX(ctx context.Context) []float64 + func (s *SessionGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *SessionGroupBy) IntX(ctx context.Context) int + func (s *SessionGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *SessionGroupBy) IntsX(ctx context.Context) []int + func (s *SessionGroupBy) ScanX(ctx context.Context, v any) + func (s *SessionGroupBy) String(ctx context.Context) (_ string, err error) + func (s *SessionGroupBy) StringX(ctx context.Context) string + func (s *SessionGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *SessionGroupBy) StringsX(ctx context.Context) []string + func (sgb *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy + func (sgb *SessionGroupBy) Scan(ctx context.Context, v any) error + type SessionMutation struct + func (c *SessionMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (m *SessionMutation) AddDeletedAt(i int) + func (m *SessionMutation) AddField(name string, value ent.Value) error + func (m *SessionMutation) AddMessageIDs(ids ...int) + func (m *SessionMutation) AddedDeletedAt() (r int, exists bool) + func (m *SessionMutation) AddedEdges() []string + func (m *SessionMutation) AddedField(name string) (ent.Value, bool) + func (m *SessionMutation) AddedFields() []string + func (m *SessionMutation) AddedIDs(name string) []ent.Value + func (m *SessionMutation) ClearEdge(name string) error + func (m *SessionMutation) ClearField(name string) error + func (m *SessionMutation) ClearMessages() + func (m *SessionMutation) ClearedEdges() []string + func (m *SessionMutation) ClearedFields() []string + func (m *SessionMutation) CreatedAt() (r time.Time, exists bool) + func (m *SessionMutation) DeletedAt() (r int, exists bool) + func (m *SessionMutation) EdgeCleared(name string) bool + func (m *SessionMutation) Field(name string) (ent.Value, bool) + func (m *SessionMutation) FieldCleared(name string) bool + func (m *SessionMutation) Fields() []string + func (m *SessionMutation) Filter() *SessionFilter + func (m *SessionMutation) ID() (id int, exists bool) + func (m *SessionMutation) IDs(ctx context.Context) ([]int, error) + func (m *SessionMutation) MessagesCleared() bool + func (m *SessionMutation) MessagesIDs() (ids []int) + func (m *SessionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *SessionMutation) OldDeletedAt(ctx context.Context) (v int, err error) + func (m *SessionMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *SessionMutation) OldStatus(ctx context.Context) (v bool, err error) + func (m *SessionMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) + func (m *SessionMutation) OldUserID(ctx context.Context) (v string, err error) + func (m *SessionMutation) Op() Op + func (m *SessionMutation) RemoveMessageIDs(ids ...int) + func (m *SessionMutation) RemovedEdges() []string + func (m *SessionMutation) RemovedIDs(name string) []ent.Value + func (m *SessionMutation) RemovedMessagesIDs() (ids []int) + func (m *SessionMutation) ResetCreatedAt() + func (m *SessionMutation) ResetDeletedAt() + func (m *SessionMutation) ResetEdge(name string) error + func (m *SessionMutation) ResetField(name string) error + func (m *SessionMutation) ResetMessages() + func (m *SessionMutation) ResetStatus() + func (m *SessionMutation) ResetUpdatedAt() + func (m *SessionMutation) ResetUserID() + func (m *SessionMutation) SetCreatedAt(t time.Time) + func (m *SessionMutation) SetDeletedAt(i int) + func (m *SessionMutation) SetField(name string, value ent.Value) error + func (m *SessionMutation) SetOp(op Op) + func (m *SessionMutation) SetStatus(b bool) + func (m *SessionMutation) SetUpdatedAt(t time.Time) + func (m *SessionMutation) SetUserID(s string) + func (m *SessionMutation) Status() (r bool, exists bool) + func (m *SessionMutation) Type() string + func (m *SessionMutation) UpdatedAt() (r time.Time, exists bool) + func (m *SessionMutation) UserID() (r string, exists bool) + func (m *SessionMutation) Where(ps ...predicate.Session) + func (m *SessionMutation) WhereP(ps ...func(*sql.Selector)) + func (m SessionMutation) Client() *Client + func (m SessionMutation) Tx() (*Tx, error) + type SessionQuery struct + func (c *SessionQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (sq *SessionQuery) Aggregate(fns ...AggregateFunc) *SessionSelect + func (sq *SessionQuery) All(ctx context.Context) ([]*Session, error) + func (sq *SessionQuery) AllX(ctx context.Context) []*Session + func (sq *SessionQuery) Clone() *SessionQuery + func (sq *SessionQuery) Count(ctx context.Context) (int, error) + func (sq *SessionQuery) CountX(ctx context.Context) int + func (sq *SessionQuery) Exist(ctx context.Context) (bool, error) + func (sq *SessionQuery) ExistX(ctx context.Context) bool + func (sq *SessionQuery) Filter() *SessionFilter + func (sq *SessionQuery) First(ctx context.Context) (*Session, error) + func (sq *SessionQuery) FirstID(ctx context.Context) (id int, err error) + func (sq *SessionQuery) FirstIDX(ctx context.Context) int + func (sq *SessionQuery) FirstX(ctx context.Context) *Session + func (sq *SessionQuery) ForShare(opts ...sql.LockOption) *SessionQuery + func (sq *SessionQuery) ForUpdate(opts ...sql.LockOption) *SessionQuery + func (sq *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy + func (sq *SessionQuery) IDs(ctx context.Context) ([]int, error) + func (sq *SessionQuery) IDsX(ctx context.Context) []int + func (sq *SessionQuery) Limit(limit int) *SessionQuery + func (sq *SessionQuery) Modify(modifiers ...func(s *sql.Selector)) *SessionSelect + func (sq *SessionQuery) Offset(offset int) *SessionQuery + func (sq *SessionQuery) Only(ctx context.Context) (*Session, error) + func (sq *SessionQuery) OnlyID(ctx context.Context) (id int, err error) + func (sq *SessionQuery) OnlyIDX(ctx context.Context) int + func (sq *SessionQuery) OnlyX(ctx context.Context) *Session + func (sq *SessionQuery) Order(o ...OrderFunc) *SessionQuery + func (sq *SessionQuery) QueryMessages() *MessageQuery + func (sq *SessionQuery) Select(fields ...string) *SessionSelect + func (sq *SessionQuery) Unique(unique bool) *SessionQuery + func (sq *SessionQuery) Where(ps ...predicate.Session) *SessionQuery + func (sq *SessionQuery) WithMessages(opts ...func(*MessageQuery)) *SessionQuery + type SessionSelect struct + func (c SessionSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c SessionSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (s *SessionSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *SessionSelect) BoolX(ctx context.Context) bool + func (s *SessionSelect) Bools(ctx context.Context) ([]bool, error) + func (s *SessionSelect) BoolsX(ctx context.Context) []bool + func (s *SessionSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *SessionSelect) Float64X(ctx context.Context) float64 + func (s *SessionSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *SessionSelect) Float64sX(ctx context.Context) []float64 + func (s *SessionSelect) Int(ctx context.Context) (_ int, err error) + func (s *SessionSelect) IntX(ctx context.Context) int + func (s *SessionSelect) Ints(ctx context.Context) ([]int, error) + func (s *SessionSelect) IntsX(ctx context.Context) []int + func (s *SessionSelect) ScanX(ctx context.Context, v any) + func (s *SessionSelect) String(ctx context.Context) (_ string, err error) + func (s *SessionSelect) StringX(ctx context.Context) string + func (s *SessionSelect) Strings(ctx context.Context) ([]string, error) + func (s *SessionSelect) StringsX(ctx context.Context) []string + func (ss *SessionSelect) Aggregate(fns ...AggregateFunc) *SessionSelect + func (ss *SessionSelect) Modify(modifiers ...func(s *sql.Selector)) *SessionSelect + func (ss *SessionSelect) Scan(ctx context.Context, v any) error + type SessionUpdate struct + func (c *SessionUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (su *SessionUpdate) AddDeletedAt(i int) *SessionUpdate + func (su *SessionUpdate) AddMessageIDs(ids ...int) *SessionUpdate + func (su *SessionUpdate) AddMessages(m ...*Message) *SessionUpdate + func (su *SessionUpdate) ClearMessages() *SessionUpdate + func (su *SessionUpdate) Exec(ctx context.Context) error + func (su *SessionUpdate) ExecX(ctx context.Context) + func (su *SessionUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SessionUpdate + func (su *SessionUpdate) Mutation() *SessionMutation + func (su *SessionUpdate) RemoveMessageIDs(ids ...int) *SessionUpdate + func (su *SessionUpdate) RemoveMessages(m ...*Message) *SessionUpdate + func (su *SessionUpdate) Save(ctx context.Context) (int, error) + func (su *SessionUpdate) SaveX(ctx context.Context) int + func (su *SessionUpdate) SetDeletedAt(i int) *SessionUpdate + func (su *SessionUpdate) SetNillableDeletedAt(i *int) *SessionUpdate + func (su *SessionUpdate) SetNillableStatus(b *bool) *SessionUpdate + func (su *SessionUpdate) SetStatus(b bool) *SessionUpdate + func (su *SessionUpdate) SetUpdatedAt(t time.Time) *SessionUpdate + func (su *SessionUpdate) SetUserID(s string) *SessionUpdate + func (su *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate + type SessionUpdateOne struct + func (c *SessionUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *SessionUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (suo *SessionUpdateOne) AddDeletedAt(i int) *SessionUpdateOne + func (suo *SessionUpdateOne) AddMessageIDs(ids ...int) *SessionUpdateOne + func (suo *SessionUpdateOne) AddMessages(m ...*Message) *SessionUpdateOne + func (suo *SessionUpdateOne) ClearMessages() *SessionUpdateOne + func (suo *SessionUpdateOne) Exec(ctx context.Context) error + func (suo *SessionUpdateOne) ExecX(ctx context.Context) + func (suo *SessionUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SessionUpdateOne + func (suo *SessionUpdateOne) Mutation() *SessionMutation + func (suo *SessionUpdateOne) RemoveMessageIDs(ids ...int) *SessionUpdateOne + func (suo *SessionUpdateOne) RemoveMessages(m ...*Message) *SessionUpdateOne + func (suo *SessionUpdateOne) Save(ctx context.Context) (*Session, error) + func (suo *SessionUpdateOne) SaveX(ctx context.Context) *Session + func (suo *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne + func (suo *SessionUpdateOne) SetDeletedAt(i int) *SessionUpdateOne + func (suo *SessionUpdateOne) SetNillableDeletedAt(i *int) *SessionUpdateOne + func (suo *SessionUpdateOne) SetNillableStatus(b *bool) *SessionUpdateOne + func (suo *SessionUpdateOne) SetStatus(b bool) *SessionUpdateOne + func (suo *SessionUpdateOne) SetUpdatedAt(t time.Time) *SessionUpdateOne + func (suo *SessionUpdateOne) SetUserID(s string) *SessionUpdateOne + type SessionUpsert struct + func (u *SessionUpsert) AddDeletedAt(v int) *SessionUpsert + func (u *SessionUpsert) SetDeletedAt(v int) *SessionUpsert + func (u *SessionUpsert) SetStatus(v bool) *SessionUpsert + func (u *SessionUpsert) SetUpdatedAt(v time.Time) *SessionUpsert + func (u *SessionUpsert) SetUserID(v string) *SessionUpsert + func (u *SessionUpsert) UpdateDeletedAt() *SessionUpsert + func (u *SessionUpsert) UpdateStatus() *SessionUpsert + func (u *SessionUpsert) UpdateUpdatedAt() *SessionUpsert + func (u *SessionUpsert) UpdateUserID() *SessionUpsert + type SessionUpsertBulk struct + func (u *SessionUpsertBulk) AddDeletedAt(v int) *SessionUpsertBulk + func (u *SessionUpsertBulk) DoNothing() *SessionUpsertBulk + func (u *SessionUpsertBulk) Exec(ctx context.Context) error + func (u *SessionUpsertBulk) ExecX(ctx context.Context) + func (u *SessionUpsertBulk) Ignore() *SessionUpsertBulk + func (u *SessionUpsertBulk) SetDeletedAt(v int) *SessionUpsertBulk + func (u *SessionUpsertBulk) SetStatus(v bool) *SessionUpsertBulk + func (u *SessionUpsertBulk) SetUpdatedAt(v time.Time) *SessionUpsertBulk + func (u *SessionUpsertBulk) SetUserID(v string) *SessionUpsertBulk + func (u *SessionUpsertBulk) Update(set func(*SessionUpsert)) *SessionUpsertBulk + func (u *SessionUpsertBulk) UpdateDeletedAt() *SessionUpsertBulk + func (u *SessionUpsertBulk) UpdateNewValues() *SessionUpsertBulk + func (u *SessionUpsertBulk) UpdateStatus() *SessionUpsertBulk + func (u *SessionUpsertBulk) UpdateUpdatedAt() *SessionUpsertBulk + func (u *SessionUpsertBulk) UpdateUserID() *SessionUpsertBulk + type SessionUpsertOne struct + func (u *SessionUpsertOne) AddDeletedAt(v int) *SessionUpsertOne + func (u *SessionUpsertOne) DoNothing() *SessionUpsertOne + func (u *SessionUpsertOne) Exec(ctx context.Context) error + func (u *SessionUpsertOne) ExecX(ctx context.Context) + func (u *SessionUpsertOne) ID(ctx context.Context) (id int, err error) + func (u *SessionUpsertOne) IDX(ctx context.Context) int + func (u *SessionUpsertOne) Ignore() *SessionUpsertOne + func (u *SessionUpsertOne) SetDeletedAt(v int) *SessionUpsertOne + func (u *SessionUpsertOne) SetStatus(v bool) *SessionUpsertOne + func (u *SessionUpsertOne) SetUpdatedAt(v time.Time) *SessionUpsertOne + func (u *SessionUpsertOne) SetUserID(v string) *SessionUpsertOne + func (u *SessionUpsertOne) Update(set func(*SessionUpsert)) *SessionUpsertOne + func (u *SessionUpsertOne) UpdateDeletedAt() *SessionUpsertOne + func (u *SessionUpsertOne) UpdateNewValues() *SessionUpsertOne + func (u *SessionUpsertOne) UpdateStatus() *SessionUpsertOne + func (u *SessionUpsertOne) UpdateUpdatedAt() *SessionUpsertOne + func (u *SessionUpsertOne) UpdateUserID() *SessionUpsertOne + type Sessions []*Session + type TraverseFunc = ent.TraverseFunc + type Traverser = ent.Traverser + type Tx struct + Message *MessageClient + Session *SessionClient + func TxFromContext(ctx context.Context) *Tx + func (c *Tx) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error) + func (c *Tx) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error) + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value