Versions in this module Expand all Collapse all v0 v0.0.4 Jul 31, 2025 v0.0.3 Jul 31, 2025 v0.0.2 Jul 31, 2025 Changes in this version type User + CreatedAt time.Time + UpdatedAt time.Time type UserCreate + func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate + func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate + func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate + func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate type UserMutation + func (m *UserMutation) CreatedAt() (r time.Time, exists bool) + func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) + func (m *UserMutation) ResetCreatedAt() + func (m *UserMutation) ResetUpdatedAt() + func (m *UserMutation) SetCreatedAt(t time.Time) + func (m *UserMutation) SetUpdatedAt(t time.Time) + func (m *UserMutation) UpdatedAt() (r time.Time, exists bool) type UserUpdate + func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate type UserUpdateOne + func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne v0.0.1 Jul 31, 2025 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeUser + const TypeUserVersion + var ErrOptimisticLock = errors.New("optimistic lock conflict。") + var ErrTxStarted = errors.New("examples: cannot start a transaction within a transaction") + 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 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 + Schema *migrate.Schema + User *UserClient + UserVersion *UserVersionClient + 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) 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 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 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) + 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 TraverseFunc = ent.TraverseFunc + type Traverser = ent.Traverser + type Tx struct + User *UserClient + UserVersion *UserVersionClient + func TxFromContext(ctx context.Context) *Tx + 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 User struct + Age int + DeletedAt *time.Time + ID int + Name string + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + func (u *User) Value(name string) (ent.Value, error) + type UserClient struct + func NewUserClient(c config) *UserClient + func (c *UserClient) Create() *UserCreate + func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk + func (c *UserClient) Delete() *UserDelete + func (c *UserClient) DeleteOne(u *User) *UserDeleteOne + func (c *UserClient) DeleteOneID(id int) *UserDeleteOne + func (c *UserClient) Get(ctx context.Context, id int) (*User, error) + func (c *UserClient) GetX(ctx context.Context, id int) *User + func (c *UserClient) Hooks() []Hook + func (c *UserClient) Intercept(interceptors ...Interceptor) + func (c *UserClient) Interceptors() []Interceptor + func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk + func (c *UserClient) Query() *UserQuery + func (c *UserClient) Update() *UserUpdate + func (c *UserClient) UpdateOne(u *User) *UserUpdateOne + func (c *UserClient) UpdateOneID(id int) *UserUpdateOne + func (c *UserClient) Use(hooks ...Hook) + func (u *UserClient) SoftDelete(ctx context.Context, id int) error + type UserCreate struct + func (uc *UserCreate) Exec(ctx context.Context) error + func (uc *UserCreate) ExecX(ctx context.Context) + func (uc *UserCreate) Mutation() *UserMutation + func (uc *UserCreate) Save(ctx context.Context) (*User, error) + func (uc *UserCreate) SaveX(ctx context.Context) *User + func (uc *UserCreate) SetAge(i int) *UserCreate + func (uc *UserCreate) SetDeletedAt(t time.Time) *UserCreate + func (uc *UserCreate) SetName(s string) *UserCreate + func (uc *UserCreate) SetNillableDeletedAt(t *time.Time) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Exec(ctx context.Context) error + func (ucb *UserCreateBulk) ExecX(ctx context.Context) + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne + type UserGroupBy struct + func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *UserGroupBy) BoolX(ctx context.Context) bool + func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *UserGroupBy) BoolsX(ctx context.Context) []bool + func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *UserGroupBy) Float64X(ctx context.Context) float64 + func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *UserGroupBy) IntX(ctx context.Context) int + func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *UserGroupBy) IntsX(ctx context.Context) []int + func (s *UserGroupBy) ScanX(ctx context.Context, v any) + func (s *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (s *UserGroupBy) StringX(ctx context.Context) string + func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *UserGroupBy) StringsX(ctx context.Context) []string + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error + type UserMutation struct + func (m *UserMutation) AddAge(i int) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddedAge() (r int, exists bool) + func (m *UserMutation) AddedEdges() []string + func (m *UserMutation) AddedField(name string) (ent.Value, bool) + func (m *UserMutation) AddedFields() []string + func (m *UserMutation) AddedIDs(name string) []ent.Value + func (m *UserMutation) Age() (r int, exists bool) + func (m *UserMutation) ClearDeletedAt() + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) DeletedAt() (r time.Time, exists bool) + func (m *UserMutation) DeletedAtCleared() bool + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserMutation) Name() (r string, exists bool) + func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) + func (m *UserMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldName(ctx context.Context) (v string, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) ResetAge() + func (m *UserMutation) ResetDeletedAt() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetName() + func (m *UserMutation) SetAge(i int) + func (m *UserMutation) SetDeletedAt(t time.Time) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetName(s string) + func (m *UserMutation) SetOp(op Op) + func (m *UserMutation) Type() string + func (m *UserMutation) Where(ps ...predicate.User) + func (m *UserMutation) WhereP(ps ...func(*sql.Selector)) + func (m UserMutation) Client() *Client + func (m UserMutation) Tx() (*Tx, error) + type UserQuery struct + func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect + func (uq *UserQuery) All(ctx context.Context) ([]*User, error) + func (uq *UserQuery) AllX(ctx context.Context) []*User + func (uq *UserQuery) Clone() *UserQuery + func (uq *UserQuery) Count(ctx context.Context) (int, error) + func (uq *UserQuery) CountX(ctx context.Context) int + func (uq *UserQuery) Exist(ctx context.Context) (bool, error) + func (uq *UserQuery) ExistX(ctx context.Context) bool + func (uq *UserQuery) First(ctx context.Context) (*User, error) + func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error) + func (uq *UserQuery) FirstIDX(ctx context.Context) int + func (uq *UserQuery) FirstX(ctx context.Context) *User + func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy + func (uq *UserQuery) IDs(ctx context.Context) (ids []int, err error) + func (uq *UserQuery) IDsX(ctx context.Context) []int + func (uq *UserQuery) Limit(limit int) *UserQuery + func (uq *UserQuery) Offset(offset int) *UserQuery + func (uq *UserQuery) Only(ctx context.Context) (*User, error) + func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error) + func (uq *UserQuery) OnlyIDX(ctx context.Context) int + func (uq *UserQuery) OnlyX(ctx context.Context) *User + func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + type UserSelect struct + func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *UserSelect) BoolX(ctx context.Context) bool + func (s *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (s *UserSelect) BoolsX(ctx context.Context) []bool + func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *UserSelect) Float64X(ctx context.Context) float64 + func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *UserSelect) Float64sX(ctx context.Context) []float64 + func (s *UserSelect) Int(ctx context.Context) (_ int, err error) + func (s *UserSelect) IntX(ctx context.Context) int + func (s *UserSelect) Ints(ctx context.Context) ([]int, error) + func (s *UserSelect) IntsX(ctx context.Context) []int + func (s *UserSelect) ScanX(ctx context.Context, v any) + func (s *UserSelect) String(ctx context.Context) (_ string, err error) + func (s *UserSelect) StringX(ctx context.Context) string + func (s *UserSelect) Strings(ctx context.Context) ([]string, error) + func (s *UserSelect) StringsX(ctx context.Context) []string + func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect + func (us *UserSelect) Scan(ctx context.Context, v any) error + type UserUpdate struct + func (uu *UserUpdate) AddAge(i int) *UserUpdate + func (uu *UserUpdate) ClearDeletedAt() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetAge(i int) *UserUpdate + func (uu *UserUpdate) SetDeletedAt(t time.Time) *UserUpdate + func (uu *UserUpdate) SetName(s string) *UserUpdate + func (uu *UserUpdate) SetNillableAge(i *int) *UserUpdate + func (uu *UserUpdate) SetNillableDeletedAt(t *time.Time) *UserUpdate + func (uu *UserUpdate) SetNillableName(s *string) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddAge(i int) *UserUpdateOne + func (uuo *UserUpdateOne) ClearDeletedAt() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne + func (uuo *UserUpdateOne) SetAge(i int) *UserUpdateOne + func (uuo *UserUpdateOne) SetDeletedAt(t time.Time) *UserUpdateOne + func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableAge(i *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableDeletedAt(t *time.Time) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableName(s *string) *UserUpdateOne + func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne + type UserVersion struct + Age int + ID int + Name string + Version int + func (uv *UserVersion) String() string + func (uv *UserVersion) Unwrap() *UserVersion + func (uv *UserVersion) Update() *UserVersionUpdateOne + func (uv *UserVersion) Value(name string) (ent.Value, error) + type UserVersionClient struct + func NewUserVersionClient(c config) *UserVersionClient + func (c *UserVersionClient) Create() *UserVersionCreate + func (c *UserVersionClient) CreateBulk(builders ...*UserVersionCreate) *UserVersionCreateBulk + func (c *UserVersionClient) Delete() *UserVersionDelete + func (c *UserVersionClient) DeleteOne(uv *UserVersion) *UserVersionDeleteOne + func (c *UserVersionClient) DeleteOneID(id int) *UserVersionDeleteOne + func (c *UserVersionClient) Get(ctx context.Context, id int) (*UserVersion, error) + func (c *UserVersionClient) GetX(ctx context.Context, id int) *UserVersion + func (c *UserVersionClient) Hooks() []Hook + func (c *UserVersionClient) Intercept(interceptors ...Interceptor) + func (c *UserVersionClient) Interceptors() []Interceptor + func (c *UserVersionClient) MapCreateBulk(slice any, setFunc func(*UserVersionCreate, int)) *UserVersionCreateBulk + func (c *UserVersionClient) Query() *UserVersionQuery + func (c *UserVersionClient) Update() *UserVersionUpdate + func (c *UserVersionClient) UpdateOne(uv *UserVersion) *UserVersionUpdateOne + func (c *UserVersionClient) UpdateOneID(id int) *UserVersionUpdateOne + func (c *UserVersionClient) Use(hooks ...Hook) + func (uv *UserVersionClient) UpdateOneWithLock(ctx context.Context, id int, version int, ...) error + func (uv *UserVersionClient) UpdateOneWithLockAndRetry(ctx context.Context, id int, version int, ...) error + type UserVersionCreate struct + func (uvc *UserVersionCreate) Exec(ctx context.Context) error + func (uvc *UserVersionCreate) ExecX(ctx context.Context) + func (uvc *UserVersionCreate) Mutation() *UserVersionMutation + func (uvc *UserVersionCreate) Save(ctx context.Context) (*UserVersion, error) + func (uvc *UserVersionCreate) SaveX(ctx context.Context) *UserVersion + func (uvc *UserVersionCreate) SetAge(i int) *UserVersionCreate + func (uvc *UserVersionCreate) SetName(s string) *UserVersionCreate + func (uvc *UserVersionCreate) SetNillableVersion(i *int) *UserVersionCreate + func (uvc *UserVersionCreate) SetVersion(i int) *UserVersionCreate + type UserVersionCreateBulk struct + func (uvcb *UserVersionCreateBulk) Exec(ctx context.Context) error + func (uvcb *UserVersionCreateBulk) ExecX(ctx context.Context) + func (uvcb *UserVersionCreateBulk) Save(ctx context.Context) ([]*UserVersion, error) + func (uvcb *UserVersionCreateBulk) SaveX(ctx context.Context) []*UserVersion + type UserVersionDelete struct + func (uvd *UserVersionDelete) Exec(ctx context.Context) (int, error) + func (uvd *UserVersionDelete) ExecX(ctx context.Context) int + func (uvd *UserVersionDelete) Where(ps ...predicate.UserVersion) *UserVersionDelete + type UserVersionDeleteOne struct + func (uvdo *UserVersionDeleteOne) Exec(ctx context.Context) error + func (uvdo *UserVersionDeleteOne) ExecX(ctx context.Context) + func (uvdo *UserVersionDeleteOne) Where(ps ...predicate.UserVersion) *UserVersionDeleteOne + type UserVersionGroupBy struct + func (s *UserVersionGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *UserVersionGroupBy) BoolX(ctx context.Context) bool + func (s *UserVersionGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *UserVersionGroupBy) BoolsX(ctx context.Context) []bool + func (s *UserVersionGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *UserVersionGroupBy) Float64X(ctx context.Context) float64 + func (s *UserVersionGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *UserVersionGroupBy) Float64sX(ctx context.Context) []float64 + func (s *UserVersionGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *UserVersionGroupBy) IntX(ctx context.Context) int + func (s *UserVersionGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *UserVersionGroupBy) IntsX(ctx context.Context) []int + func (s *UserVersionGroupBy) ScanX(ctx context.Context, v any) + func (s *UserVersionGroupBy) String(ctx context.Context) (_ string, err error) + func (s *UserVersionGroupBy) StringX(ctx context.Context) string + func (s *UserVersionGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *UserVersionGroupBy) StringsX(ctx context.Context) []string + func (uvgb *UserVersionGroupBy) Aggregate(fns ...AggregateFunc) *UserVersionGroupBy + func (uvgb *UserVersionGroupBy) Scan(ctx context.Context, v any) error + type UserVersionMutation struct + func (m *UserVersionMutation) AddAge(i int) + func (m *UserVersionMutation) AddField(name string, value ent.Value) error + func (m *UserVersionMutation) AddVersion(i int) + func (m *UserVersionMutation) AddedAge() (r int, exists bool) + func (m *UserVersionMutation) AddedEdges() []string + func (m *UserVersionMutation) AddedField(name string) (ent.Value, bool) + func (m *UserVersionMutation) AddedFields() []string + func (m *UserVersionMutation) AddedIDs(name string) []ent.Value + func (m *UserVersionMutation) AddedVersion() (r int, exists bool) + func (m *UserVersionMutation) Age() (r int, exists bool) + func (m *UserVersionMutation) ClearEdge(name string) error + func (m *UserVersionMutation) ClearField(name string) error + func (m *UserVersionMutation) ClearedEdges() []string + func (m *UserVersionMutation) ClearedFields() []string + func (m *UserVersionMutation) EdgeCleared(name string) bool + func (m *UserVersionMutation) Field(name string) (ent.Value, bool) + func (m *UserVersionMutation) FieldCleared(name string) bool + func (m *UserVersionMutation) Fields() []string + func (m *UserVersionMutation) ID() (id int, exists bool) + func (m *UserVersionMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserVersionMutation) Name() (r string, exists bool) + func (m *UserVersionMutation) OldAge(ctx context.Context) (v int, err error) + func (m *UserVersionMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserVersionMutation) OldName(ctx context.Context) (v string, err error) + func (m *UserVersionMutation) OldVersion(ctx context.Context) (v int, err error) + func (m *UserVersionMutation) Op() Op + func (m *UserVersionMutation) RemovedEdges() []string + func (m *UserVersionMutation) RemovedIDs(name string) []ent.Value + func (m *UserVersionMutation) ResetAge() + func (m *UserVersionMutation) ResetEdge(name string) error + func (m *UserVersionMutation) ResetField(name string) error + func (m *UserVersionMutation) ResetName() + func (m *UserVersionMutation) ResetVersion() + func (m *UserVersionMutation) SetAge(i int) + func (m *UserVersionMutation) SetField(name string, value ent.Value) error + func (m *UserVersionMutation) SetName(s string) + func (m *UserVersionMutation) SetOp(op Op) + func (m *UserVersionMutation) SetVersion(i int) + func (m *UserVersionMutation) Type() string + func (m *UserVersionMutation) Version() (r int, exists bool) + func (m *UserVersionMutation) Where(ps ...predicate.UserVersion) + func (m *UserVersionMutation) WhereP(ps ...func(*sql.Selector)) + func (m UserVersionMutation) Client() *Client + func (m UserVersionMutation) Tx() (*Tx, error) + type UserVersionQuery struct + func (uvq *UserVersionQuery) Aggregate(fns ...AggregateFunc) *UserVersionSelect + func (uvq *UserVersionQuery) All(ctx context.Context) ([]*UserVersion, error) + func (uvq *UserVersionQuery) AllX(ctx context.Context) []*UserVersion + func (uvq *UserVersionQuery) Clone() *UserVersionQuery + func (uvq *UserVersionQuery) Count(ctx context.Context) (int, error) + func (uvq *UserVersionQuery) CountX(ctx context.Context) int + func (uvq *UserVersionQuery) Exist(ctx context.Context) (bool, error) + func (uvq *UserVersionQuery) ExistX(ctx context.Context) bool + func (uvq *UserVersionQuery) First(ctx context.Context) (*UserVersion, error) + func (uvq *UserVersionQuery) FirstID(ctx context.Context) (id int, err error) + func (uvq *UserVersionQuery) FirstIDX(ctx context.Context) int + func (uvq *UserVersionQuery) FirstX(ctx context.Context) *UserVersion + func (uvq *UserVersionQuery) GroupBy(field string, fields ...string) *UserVersionGroupBy + func (uvq *UserVersionQuery) IDs(ctx context.Context) (ids []int, err error) + func (uvq *UserVersionQuery) IDsX(ctx context.Context) []int + func (uvq *UserVersionQuery) Limit(limit int) *UserVersionQuery + func (uvq *UserVersionQuery) Offset(offset int) *UserVersionQuery + func (uvq *UserVersionQuery) Only(ctx context.Context) (*UserVersion, error) + func (uvq *UserVersionQuery) OnlyID(ctx context.Context) (id int, err error) + func (uvq *UserVersionQuery) OnlyIDX(ctx context.Context) int + func (uvq *UserVersionQuery) OnlyX(ctx context.Context) *UserVersion + func (uvq *UserVersionQuery) Order(o ...userversion.OrderOption) *UserVersionQuery + func (uvq *UserVersionQuery) Select(fields ...string) *UserVersionSelect + func (uvq *UserVersionQuery) Unique(unique bool) *UserVersionQuery + func (uvq *UserVersionQuery) Where(ps ...predicate.UserVersion) *UserVersionQuery + type UserVersionSelect struct + func (s *UserVersionSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *UserVersionSelect) BoolX(ctx context.Context) bool + func (s *UserVersionSelect) Bools(ctx context.Context) ([]bool, error) + func (s *UserVersionSelect) BoolsX(ctx context.Context) []bool + func (s *UserVersionSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *UserVersionSelect) Float64X(ctx context.Context) float64 + func (s *UserVersionSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *UserVersionSelect) Float64sX(ctx context.Context) []float64 + func (s *UserVersionSelect) Int(ctx context.Context) (_ int, err error) + func (s *UserVersionSelect) IntX(ctx context.Context) int + func (s *UserVersionSelect) Ints(ctx context.Context) ([]int, error) + func (s *UserVersionSelect) IntsX(ctx context.Context) []int + func (s *UserVersionSelect) ScanX(ctx context.Context, v any) + func (s *UserVersionSelect) String(ctx context.Context) (_ string, err error) + func (s *UserVersionSelect) StringX(ctx context.Context) string + func (s *UserVersionSelect) Strings(ctx context.Context) ([]string, error) + func (s *UserVersionSelect) StringsX(ctx context.Context) []string + func (uvs *UserVersionSelect) Aggregate(fns ...AggregateFunc) *UserVersionSelect + func (uvs *UserVersionSelect) Scan(ctx context.Context, v any) error + type UserVersionUpdate struct + func (uvu *UserVersionUpdate) AddAge(i int) *UserVersionUpdate + func (uvu *UserVersionUpdate) AddVersion(i int) *UserVersionUpdate + func (uvu *UserVersionUpdate) Exec(ctx context.Context) error + func (uvu *UserVersionUpdate) ExecX(ctx context.Context) + func (uvu *UserVersionUpdate) Mutation() *UserVersionMutation + func (uvu *UserVersionUpdate) Save(ctx context.Context) (int, error) + func (uvu *UserVersionUpdate) SaveX(ctx context.Context) int + func (uvu *UserVersionUpdate) SetAge(i int) *UserVersionUpdate + func (uvu *UserVersionUpdate) SetName(s string) *UserVersionUpdate + func (uvu *UserVersionUpdate) SetNillableAge(i *int) *UserVersionUpdate + func (uvu *UserVersionUpdate) SetNillableName(s *string) *UserVersionUpdate + func (uvu *UserVersionUpdate) SetNillableVersion(i *int) *UserVersionUpdate + func (uvu *UserVersionUpdate) SetVersion(i int) *UserVersionUpdate + func (uvu *UserVersionUpdate) Where(ps ...predicate.UserVersion) *UserVersionUpdate + type UserVersionUpdateOne struct + func (uvuo *UserVersionUpdateOne) AddAge(i int) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) AddVersion(i int) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) Exec(ctx context.Context) error + func (uvuo *UserVersionUpdateOne) ExecX(ctx context.Context) + func (uvuo *UserVersionUpdateOne) Mutation() *UserVersionMutation + func (uvuo *UserVersionUpdateOne) Save(ctx context.Context) (*UserVersion, error) + func (uvuo *UserVersionUpdateOne) SaveX(ctx context.Context) *UserVersion + func (uvuo *UserVersionUpdateOne) Select(field string, fields ...string) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) SetAge(i int) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) SetName(s string) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) SetNillableAge(i *int) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) SetNillableName(s *string) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) SetNillableVersion(i *int) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) SetVersion(i int) *UserVersionUpdateOne + func (uvuo *UserVersionUpdateOne) Where(ps ...predicate.UserVersion) *UserVersionUpdateOne + type UserVersions []*UserVersion + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value