Versions in this module Expand all Collapse all v0 v0.0.2 Aug 26, 2021 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeUser + const TypeUserConfig + const TypeUserTomato + 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 + UserConfig *UserConfigClient + UserTomato *UserTomatoClient + 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) 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 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(...interface{})) Option + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Policy = ent.Policy + type Query = ent.Query + 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 Tx struct + User *UserClient + UserConfig *UserConfigClient + UserTomato *UserTomatoClient + 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 + CreatedAt time.Time + Edges UserEdges + Enabled bool + ID int + Password string + UpdatedAt time.Time + Username string + func (u *User) QueryUserConfigs() *UserConfigQuery + func (u *User) QueryUserTomatoes() *UserTomatoQuery + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + 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) Query() *UserQuery + func (c *UserClient) QueryUserConfigs(u *User) *UserConfigQuery + func (c *UserClient) QueryUserTomatoes(u *User) *UserTomatoQuery + 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) + type UserConfig struct + Break uint + Edges UserConfigEdges + ID int + Rank uint8 + UserID int + Working uint + func (uc *UserConfig) QueryUsers() *UserQuery + func (uc *UserConfig) String() string + func (uc *UserConfig) Unwrap() *UserConfig + func (uc *UserConfig) Update() *UserConfigUpdateOne + type UserConfigClient struct + func NewUserConfigClient(c config) *UserConfigClient + func (c *UserConfigClient) Create() *UserConfigCreate + func (c *UserConfigClient) CreateBulk(builders ...*UserConfigCreate) *UserConfigCreateBulk + func (c *UserConfigClient) Delete() *UserConfigDelete + func (c *UserConfigClient) DeleteOne(uc *UserConfig) *UserConfigDeleteOne + func (c *UserConfigClient) DeleteOneID(id int) *UserConfigDeleteOne + func (c *UserConfigClient) Get(ctx context.Context, id int) (*UserConfig, error) + func (c *UserConfigClient) GetX(ctx context.Context, id int) *UserConfig + func (c *UserConfigClient) Hooks() []Hook + func (c *UserConfigClient) Query() *UserConfigQuery + func (c *UserConfigClient) QueryUsers(uc *UserConfig) *UserQuery + func (c *UserConfigClient) Update() *UserConfigUpdate + func (c *UserConfigClient) UpdateOne(uc *UserConfig) *UserConfigUpdateOne + func (c *UserConfigClient) UpdateOneID(id int) *UserConfigUpdateOne + func (c *UserConfigClient) Use(hooks ...Hook) + type UserConfigCreate struct + func (ucc *UserConfigCreate) Exec(ctx context.Context) error + func (ucc *UserConfigCreate) ExecX(ctx context.Context) + func (ucc *UserConfigCreate) Mutation() *UserConfigMutation + func (ucc *UserConfigCreate) Save(ctx context.Context) (*UserConfig, error) + func (ucc *UserConfigCreate) SaveX(ctx context.Context) *UserConfig + func (ucc *UserConfigCreate) SetBreak(u uint) *UserConfigCreate + func (ucc *UserConfigCreate) SetRank(u uint8) *UserConfigCreate + func (ucc *UserConfigCreate) SetUserID(i int) *UserConfigCreate + func (ucc *UserConfigCreate) SetUsers(u *User) *UserConfigCreate + func (ucc *UserConfigCreate) SetUsersID(id int) *UserConfigCreate + func (ucc *UserConfigCreate) SetWorking(u uint) *UserConfigCreate + type UserConfigCreateBulk struct + func (uccb *UserConfigCreateBulk) Exec(ctx context.Context) error + func (uccb *UserConfigCreateBulk) ExecX(ctx context.Context) + func (uccb *UserConfigCreateBulk) Save(ctx context.Context) ([]*UserConfig, error) + func (uccb *UserConfigCreateBulk) SaveX(ctx context.Context) []*UserConfig + type UserConfigDelete struct + func (ucd *UserConfigDelete) Exec(ctx context.Context) (int, error) + func (ucd *UserConfigDelete) ExecX(ctx context.Context) int + func (ucd *UserConfigDelete) Where(ps ...predicate.UserConfig) *UserConfigDelete + type UserConfigDeleteOne struct + func (ucdo *UserConfigDeleteOne) Exec(ctx context.Context) error + func (ucdo *UserConfigDeleteOne) ExecX(ctx context.Context) + type UserConfigEdges struct + Users *User + func (e UserConfigEdges) UsersOrErr() (*User, error) + type UserConfigGroupBy struct + func (ucgb *UserConfigGroupBy) Aggregate(fns ...AggregateFunc) *UserConfigGroupBy + func (ucgb *UserConfigGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ucgb *UserConfigGroupBy) BoolX(ctx context.Context) bool + func (ucgb *UserConfigGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ucgb *UserConfigGroupBy) BoolsX(ctx context.Context) []bool + func (ucgb *UserConfigGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ucgb *UserConfigGroupBy) Float64X(ctx context.Context) float64 + func (ucgb *UserConfigGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ucgb *UserConfigGroupBy) Float64sX(ctx context.Context) []float64 + func (ucgb *UserConfigGroupBy) Int(ctx context.Context) (_ int, err error) + func (ucgb *UserConfigGroupBy) IntX(ctx context.Context) int + func (ucgb *UserConfigGroupBy) Ints(ctx context.Context) ([]int, error) + func (ucgb *UserConfigGroupBy) IntsX(ctx context.Context) []int + func (ucgb *UserConfigGroupBy) Scan(ctx context.Context, v interface{}) error + func (ucgb *UserConfigGroupBy) ScanX(ctx context.Context, v interface{}) + func (ucgb *UserConfigGroupBy) String(ctx context.Context) (_ string, err error) + func (ucgb *UserConfigGroupBy) StringX(ctx context.Context) string + func (ucgb *UserConfigGroupBy) Strings(ctx context.Context) ([]string, error) + func (ucgb *UserConfigGroupBy) StringsX(ctx context.Context) []string + type UserConfigMutation struct + func (m *UserConfigMutation) AddBreak(u uint) + func (m *UserConfigMutation) AddField(name string, value ent.Value) error + func (m *UserConfigMutation) AddRank(u uint8) + func (m *UserConfigMutation) AddWorking(u uint) + func (m *UserConfigMutation) AddedBreak() (r uint, exists bool) + func (m *UserConfigMutation) AddedEdges() []string + func (m *UserConfigMutation) AddedField(name string) (ent.Value, bool) + func (m *UserConfigMutation) AddedFields() []string + func (m *UserConfigMutation) AddedIDs(name string) []ent.Value + func (m *UserConfigMutation) AddedRank() (r uint8, exists bool) + func (m *UserConfigMutation) AddedWorking() (r uint, exists bool) + func (m *UserConfigMutation) Break() (r uint, exists bool) + func (m *UserConfigMutation) ClearEdge(name string) error + func (m *UserConfigMutation) ClearField(name string) error + func (m *UserConfigMutation) ClearUsers() + func (m *UserConfigMutation) ClearedEdges() []string + func (m *UserConfigMutation) ClearedFields() []string + func (m *UserConfigMutation) EdgeCleared(name string) bool + func (m *UserConfigMutation) Field(name string) (ent.Value, bool) + func (m *UserConfigMutation) FieldCleared(name string) bool + func (m *UserConfigMutation) Fields() []string + func (m *UserConfigMutation) ID() (id int, exists bool) + func (m *UserConfigMutation) OldBreak(ctx context.Context) (v uint, err error) + func (m *UserConfigMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserConfigMutation) OldRank(ctx context.Context) (v uint8, err error) + func (m *UserConfigMutation) OldUserID(ctx context.Context) (v int, err error) + func (m *UserConfigMutation) OldWorking(ctx context.Context) (v uint, err error) + func (m *UserConfigMutation) Op() Op + func (m *UserConfigMutation) Rank() (r uint8, exists bool) + func (m *UserConfigMutation) RemovedEdges() []string + func (m *UserConfigMutation) RemovedIDs(name string) []ent.Value + func (m *UserConfigMutation) ResetBreak() + func (m *UserConfigMutation) ResetEdge(name string) error + func (m *UserConfigMutation) ResetField(name string) error + func (m *UserConfigMutation) ResetRank() + func (m *UserConfigMutation) ResetUserID() + func (m *UserConfigMutation) ResetUsers() + func (m *UserConfigMutation) ResetWorking() + func (m *UserConfigMutation) SetBreak(u uint) + func (m *UserConfigMutation) SetField(name string, value ent.Value) error + func (m *UserConfigMutation) SetRank(u uint8) + func (m *UserConfigMutation) SetUserID(i int) + func (m *UserConfigMutation) SetUsersID(id int) + func (m *UserConfigMutation) SetWorking(u uint) + func (m *UserConfigMutation) Type() string + func (m *UserConfigMutation) UserID() (r int, exists bool) + func (m *UserConfigMutation) UsersCleared() bool + func (m *UserConfigMutation) UsersID() (id int, exists bool) + func (m *UserConfigMutation) UsersIDs() (ids []int) + func (m *UserConfigMutation) Where(ps ...predicate.UserConfig) + func (m *UserConfigMutation) Working() (r uint, exists bool) + func (m UserConfigMutation) Client() *Client + func (m UserConfigMutation) Tx() (*Tx, error) + type UserConfigQuery struct + func (ucq *UserConfigQuery) All(ctx context.Context) ([]*UserConfig, error) + func (ucq *UserConfigQuery) AllX(ctx context.Context) []*UserConfig + func (ucq *UserConfigQuery) Clone() *UserConfigQuery + func (ucq *UserConfigQuery) Count(ctx context.Context) (int, error) + func (ucq *UserConfigQuery) CountX(ctx context.Context) int + func (ucq *UserConfigQuery) Exist(ctx context.Context) (bool, error) + func (ucq *UserConfigQuery) ExistX(ctx context.Context) bool + func (ucq *UserConfigQuery) First(ctx context.Context) (*UserConfig, error) + func (ucq *UserConfigQuery) FirstID(ctx context.Context) (id int, err error) + func (ucq *UserConfigQuery) FirstIDX(ctx context.Context) int + func (ucq *UserConfigQuery) FirstX(ctx context.Context) *UserConfig + func (ucq *UserConfigQuery) GroupBy(field string, fields ...string) *UserConfigGroupBy + func (ucq *UserConfigQuery) IDs(ctx context.Context) ([]int, error) + func (ucq *UserConfigQuery) IDsX(ctx context.Context) []int + func (ucq *UserConfigQuery) Limit(limit int) *UserConfigQuery + func (ucq *UserConfigQuery) Offset(offset int) *UserConfigQuery + func (ucq *UserConfigQuery) Only(ctx context.Context) (*UserConfig, error) + func (ucq *UserConfigQuery) OnlyID(ctx context.Context) (id int, err error) + func (ucq *UserConfigQuery) OnlyIDX(ctx context.Context) int + func (ucq *UserConfigQuery) OnlyX(ctx context.Context) *UserConfig + func (ucq *UserConfigQuery) Order(o ...OrderFunc) *UserConfigQuery + func (ucq *UserConfigQuery) QueryUsers() *UserQuery + func (ucq *UserConfigQuery) Select(fields ...string) *UserConfigSelect + func (ucq *UserConfigQuery) Unique(unique bool) *UserConfigQuery + func (ucq *UserConfigQuery) Where(ps ...predicate.UserConfig) *UserConfigQuery + func (ucq *UserConfigQuery) WithUsers(opts ...func(*UserQuery)) *UserConfigQuery + type UserConfigSelect struct + func (ucs *UserConfigSelect) Bool(ctx context.Context) (_ bool, err error) + func (ucs *UserConfigSelect) BoolX(ctx context.Context) bool + func (ucs *UserConfigSelect) Bools(ctx context.Context) ([]bool, error) + func (ucs *UserConfigSelect) BoolsX(ctx context.Context) []bool + func (ucs *UserConfigSelect) Float64(ctx context.Context) (_ float64, err error) + func (ucs *UserConfigSelect) Float64X(ctx context.Context) float64 + func (ucs *UserConfigSelect) Float64s(ctx context.Context) ([]float64, error) + func (ucs *UserConfigSelect) Float64sX(ctx context.Context) []float64 + func (ucs *UserConfigSelect) Int(ctx context.Context) (_ int, err error) + func (ucs *UserConfigSelect) IntX(ctx context.Context) int + func (ucs *UserConfigSelect) Ints(ctx context.Context) ([]int, error) + func (ucs *UserConfigSelect) IntsX(ctx context.Context) []int + func (ucs *UserConfigSelect) Scan(ctx context.Context, v interface{}) error + func (ucs *UserConfigSelect) ScanX(ctx context.Context, v interface{}) + func (ucs *UserConfigSelect) String(ctx context.Context) (_ string, err error) + func (ucs *UserConfigSelect) StringX(ctx context.Context) string + func (ucs *UserConfigSelect) Strings(ctx context.Context) ([]string, error) + func (ucs *UserConfigSelect) StringsX(ctx context.Context) []string + type UserConfigUpdate struct + func (ucu *UserConfigUpdate) AddBreak(u uint) *UserConfigUpdate + func (ucu *UserConfigUpdate) AddRank(u uint8) *UserConfigUpdate + func (ucu *UserConfigUpdate) AddWorking(u uint) *UserConfigUpdate + func (ucu *UserConfigUpdate) ClearUsers() *UserConfigUpdate + func (ucu *UserConfigUpdate) Exec(ctx context.Context) error + func (ucu *UserConfigUpdate) ExecX(ctx context.Context) + func (ucu *UserConfigUpdate) Mutation() *UserConfigMutation + func (ucu *UserConfigUpdate) Save(ctx context.Context) (int, error) + func (ucu *UserConfigUpdate) SaveX(ctx context.Context) int + func (ucu *UserConfigUpdate) SetBreak(u uint) *UserConfigUpdate + func (ucu *UserConfigUpdate) SetRank(u uint8) *UserConfigUpdate + func (ucu *UserConfigUpdate) SetUserID(i int) *UserConfigUpdate + func (ucu *UserConfigUpdate) SetUsers(u *User) *UserConfigUpdate + func (ucu *UserConfigUpdate) SetUsersID(id int) *UserConfigUpdate + func (ucu *UserConfigUpdate) SetWorking(u uint) *UserConfigUpdate + func (ucu *UserConfigUpdate) Where(ps ...predicate.UserConfig) *UserConfigUpdate + type UserConfigUpdateOne struct + func (ucuo *UserConfigUpdateOne) AddBreak(u uint) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) AddRank(u uint8) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) AddWorking(u uint) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) ClearUsers() *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) Exec(ctx context.Context) error + func (ucuo *UserConfigUpdateOne) ExecX(ctx context.Context) + func (ucuo *UserConfigUpdateOne) Mutation() *UserConfigMutation + func (ucuo *UserConfigUpdateOne) Save(ctx context.Context) (*UserConfig, error) + func (ucuo *UserConfigUpdateOne) SaveX(ctx context.Context) *UserConfig + func (ucuo *UserConfigUpdateOne) Select(field string, fields ...string) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) SetBreak(u uint) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) SetRank(u uint8) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) SetUserID(i int) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) SetUsers(u *User) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) SetUsersID(id int) *UserConfigUpdateOne + func (ucuo *UserConfigUpdateOne) SetWorking(u uint) *UserConfigUpdateOne + type UserConfigs []*UserConfig + type UserCreate struct + func (uc *UserCreate) AddUserConfigIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddUserConfigs(u ...*UserConfig) *UserCreate + func (uc *UserCreate) AddUserTomatoIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddUserTomatoes(u ...*UserTomato) *UserCreate + 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) SetCreatedAt(t time.Time) *UserCreate + func (uc *UserCreate) SetEnabled(b bool) *UserCreate + func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate + func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate + func (uc *UserCreate) SetPassword(s string) *UserCreate + func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate + func (uc *UserCreate) SetUsername(s string) *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) + type UserEdges struct + UserConfigs []*UserConfig + UserTomatoes []*UserTomato + func (e UserEdges) UserConfigsOrErr() ([]*UserConfig, error) + func (e UserEdges) UserTomatoesOrErr() ([]*UserTomato, error) + type UserGroupBy struct + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ugb *UserGroupBy) BoolX(ctx context.Context) bool + func (ugb *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ugb *UserGroupBy) BoolsX(ctx context.Context) []bool + func (ugb *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ugb *UserGroupBy) Float64X(ctx context.Context) float64 + func (ugb *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ugb *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (ugb *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (ugb *UserGroupBy) IntX(ctx context.Context) int + func (ugb *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (ugb *UserGroupBy) IntsX(ctx context.Context) []int + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + func (ugb *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (ugb *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (ugb *UserGroupBy) StringX(ctx context.Context) string + func (ugb *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (ugb *UserGroupBy) StringsX(ctx context.Context) []string + type UserMutation struct + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddUserConfigIDs(ids ...int) + func (m *UserMutation) AddUserTomatoIDs(ids ...int) + 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) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearUserConfigs() + func (m *UserMutation) ClearUserTomatoes() + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) CreatedAt() (r time.Time, exists bool) + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Enabled() (r bool, exists 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) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *UserMutation) OldEnabled(ctx context.Context) (v bool, err error) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldPassword(ctx context.Context) (v string, err error) + func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) + func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) Password() (r string, exists bool) + func (m *UserMutation) RemoveUserConfigIDs(ids ...int) + func (m *UserMutation) RemoveUserTomatoIDs(ids ...int) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) RemovedUserConfigsIDs() (ids []int) + func (m *UserMutation) RemovedUserTomatoesIDs() (ids []int) + func (m *UserMutation) ResetCreatedAt() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetEnabled() + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetPassword() + func (m *UserMutation) ResetUpdatedAt() + func (m *UserMutation) ResetUserConfigs() + func (m *UserMutation) ResetUserTomatoes() + func (m *UserMutation) ResetUsername() + func (m *UserMutation) SetCreatedAt(t time.Time) + func (m *UserMutation) SetEnabled(b bool) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetPassword(s string) + func (m *UserMutation) SetUpdatedAt(t time.Time) + func (m *UserMutation) SetUsername(s string) + func (m *UserMutation) Type() string + func (m *UserMutation) UpdatedAt() (r time.Time, exists bool) + func (m *UserMutation) UserConfigsCleared() bool + func (m *UserMutation) UserConfigsIDs() (ids []int) + func (m *UserMutation) UserTomatoesCleared() bool + func (m *UserMutation) UserTomatoesIDs() (ids []int) + func (m *UserMutation) Username() (r string, exists bool) + func (m *UserMutation) Where(ps ...predicate.User) + func (m UserMutation) Client() *Client + func (m UserMutation) Tx() (*Tx, error) + type UserQuery struct + 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) ([]int, 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 ...OrderFunc) *UserQuery + func (uq *UserQuery) QueryUserConfigs() *UserConfigQuery + func (uq *UserQuery) QueryUserTomatoes() *UserTomatoQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithUserConfigs(opts ...func(*UserConfigQuery)) *UserQuery + func (uq *UserQuery) WithUserTomatoes(opts ...func(*UserTomatoQuery)) *UserQuery + type UserSelect struct + func (us *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (us *UserSelect) BoolX(ctx context.Context) bool + func (us *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (us *UserSelect) BoolsX(ctx context.Context) []bool + func (us *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (us *UserSelect) Float64X(ctx context.Context) float64 + func (us *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (us *UserSelect) Float64sX(ctx context.Context) []float64 + func (us *UserSelect) Int(ctx context.Context) (_ int, err error) + func (us *UserSelect) IntX(ctx context.Context) int + func (us *UserSelect) Ints(ctx context.Context) ([]int, error) + func (us *UserSelect) IntsX(ctx context.Context) []int + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + func (us *UserSelect) ScanX(ctx context.Context, v interface{}) + func (us *UserSelect) String(ctx context.Context) (_ string, err error) + func (us *UserSelect) StringX(ctx context.Context) string + func (us *UserSelect) Strings(ctx context.Context) ([]string, error) + func (us *UserSelect) StringsX(ctx context.Context) []string + type UserTomato struct + Color usertomato.Color + CreatedAt time.Time + Edges UserTomatoEdges + EndTime *time.Time + ID int + RemainTime time.Time + StartTime time.Time + UpdatedAt time.Time + UserID int + func (ut *UserTomato) QueryUsers() *UserQuery + func (ut *UserTomato) String() string + func (ut *UserTomato) Unwrap() *UserTomato + func (ut *UserTomato) Update() *UserTomatoUpdateOne + type UserTomatoClient struct + func NewUserTomatoClient(c config) *UserTomatoClient + func (c *UserTomatoClient) Create() *UserTomatoCreate + func (c *UserTomatoClient) CreateBulk(builders ...*UserTomatoCreate) *UserTomatoCreateBulk + func (c *UserTomatoClient) Delete() *UserTomatoDelete + func (c *UserTomatoClient) DeleteOne(ut *UserTomato) *UserTomatoDeleteOne + func (c *UserTomatoClient) DeleteOneID(id int) *UserTomatoDeleteOne + func (c *UserTomatoClient) Get(ctx context.Context, id int) (*UserTomato, error) + func (c *UserTomatoClient) GetX(ctx context.Context, id int) *UserTomato + func (c *UserTomatoClient) Hooks() []Hook + func (c *UserTomatoClient) Query() *UserTomatoQuery + func (c *UserTomatoClient) QueryUsers(ut *UserTomato) *UserQuery + func (c *UserTomatoClient) Update() *UserTomatoUpdate + func (c *UserTomatoClient) UpdateOne(ut *UserTomato) *UserTomatoUpdateOne + func (c *UserTomatoClient) UpdateOneID(id int) *UserTomatoUpdateOne + func (c *UserTomatoClient) Use(hooks ...Hook) + type UserTomatoCreate struct + func (utc *UserTomatoCreate) Exec(ctx context.Context) error + func (utc *UserTomatoCreate) ExecX(ctx context.Context) + func (utc *UserTomatoCreate) Mutation() *UserTomatoMutation + func (utc *UserTomatoCreate) Save(ctx context.Context) (*UserTomato, error) + func (utc *UserTomatoCreate) SaveX(ctx context.Context) *UserTomato + func (utc *UserTomatoCreate) SetColor(u usertomato.Color) *UserTomatoCreate + func (utc *UserTomatoCreate) SetCreatedAt(t time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetEndTime(t time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetNillableCreatedAt(t *time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetNillableEndTime(t *time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetNillableStartTime(t *time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetNillableUpdatedAt(t *time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetRemainTime(t time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetStartTime(t time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetUpdatedAt(t time.Time) *UserTomatoCreate + func (utc *UserTomatoCreate) SetUserID(i int) *UserTomatoCreate + func (utc *UserTomatoCreate) SetUsers(u *User) *UserTomatoCreate + func (utc *UserTomatoCreate) SetUsersID(id int) *UserTomatoCreate + type UserTomatoCreateBulk struct + func (utcb *UserTomatoCreateBulk) Exec(ctx context.Context) error + func (utcb *UserTomatoCreateBulk) ExecX(ctx context.Context) + func (utcb *UserTomatoCreateBulk) Save(ctx context.Context) ([]*UserTomato, error) + func (utcb *UserTomatoCreateBulk) SaveX(ctx context.Context) []*UserTomato + type UserTomatoDelete struct + func (utd *UserTomatoDelete) Exec(ctx context.Context) (int, error) + func (utd *UserTomatoDelete) ExecX(ctx context.Context) int + func (utd *UserTomatoDelete) Where(ps ...predicate.UserTomato) *UserTomatoDelete + type UserTomatoDeleteOne struct + func (utdo *UserTomatoDeleteOne) Exec(ctx context.Context) error + func (utdo *UserTomatoDeleteOne) ExecX(ctx context.Context) + type UserTomatoEdges struct + Users *User + func (e UserTomatoEdges) UsersOrErr() (*User, error) + type UserTomatoGroupBy struct + func (utgb *UserTomatoGroupBy) Aggregate(fns ...AggregateFunc) *UserTomatoGroupBy + func (utgb *UserTomatoGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (utgb *UserTomatoGroupBy) BoolX(ctx context.Context) bool + func (utgb *UserTomatoGroupBy) Bools(ctx context.Context) ([]bool, error) + func (utgb *UserTomatoGroupBy) BoolsX(ctx context.Context) []bool + func (utgb *UserTomatoGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (utgb *UserTomatoGroupBy) Float64X(ctx context.Context) float64 + func (utgb *UserTomatoGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (utgb *UserTomatoGroupBy) Float64sX(ctx context.Context) []float64 + func (utgb *UserTomatoGroupBy) Int(ctx context.Context) (_ int, err error) + func (utgb *UserTomatoGroupBy) IntX(ctx context.Context) int + func (utgb *UserTomatoGroupBy) Ints(ctx context.Context) ([]int, error) + func (utgb *UserTomatoGroupBy) IntsX(ctx context.Context) []int + func (utgb *UserTomatoGroupBy) Scan(ctx context.Context, v interface{}) error + func (utgb *UserTomatoGroupBy) ScanX(ctx context.Context, v interface{}) + func (utgb *UserTomatoGroupBy) String(ctx context.Context) (_ string, err error) + func (utgb *UserTomatoGroupBy) StringX(ctx context.Context) string + func (utgb *UserTomatoGroupBy) Strings(ctx context.Context) ([]string, error) + func (utgb *UserTomatoGroupBy) StringsX(ctx context.Context) []string + type UserTomatoMutation struct + func (m *UserTomatoMutation) AddField(name string, value ent.Value) error + func (m *UserTomatoMutation) AddedEdges() []string + func (m *UserTomatoMutation) AddedField(name string) (ent.Value, bool) + func (m *UserTomatoMutation) AddedFields() []string + func (m *UserTomatoMutation) AddedIDs(name string) []ent.Value + func (m *UserTomatoMutation) ClearEdge(name string) error + func (m *UserTomatoMutation) ClearEndTime() + func (m *UserTomatoMutation) ClearField(name string) error + func (m *UserTomatoMutation) ClearUsers() + func (m *UserTomatoMutation) ClearedEdges() []string + func (m *UserTomatoMutation) ClearedFields() []string + func (m *UserTomatoMutation) Color() (r usertomato.Color, exists bool) + func (m *UserTomatoMutation) CreatedAt() (r time.Time, exists bool) + func (m *UserTomatoMutation) EdgeCleared(name string) bool + func (m *UserTomatoMutation) EndTime() (r time.Time, exists bool) + func (m *UserTomatoMutation) EndTimeCleared() bool + func (m *UserTomatoMutation) Field(name string) (ent.Value, bool) + func (m *UserTomatoMutation) FieldCleared(name string) bool + func (m *UserTomatoMutation) Fields() []string + func (m *UserTomatoMutation) ID() (id int, exists bool) + func (m *UserTomatoMutation) OldColor(ctx context.Context) (v usertomato.Color, err error) + func (m *UserTomatoMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *UserTomatoMutation) OldEndTime(ctx context.Context) (v *time.Time, err error) + func (m *UserTomatoMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserTomatoMutation) OldRemainTime(ctx context.Context) (v time.Time, err error) + func (m *UserTomatoMutation) OldStartTime(ctx context.Context) (v time.Time, err error) + func (m *UserTomatoMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) + func (m *UserTomatoMutation) OldUserID(ctx context.Context) (v int, err error) + func (m *UserTomatoMutation) Op() Op + func (m *UserTomatoMutation) RemainTime() (r time.Time, exists bool) + func (m *UserTomatoMutation) RemovedEdges() []string + func (m *UserTomatoMutation) RemovedIDs(name string) []ent.Value + func (m *UserTomatoMutation) ResetColor() + func (m *UserTomatoMutation) ResetCreatedAt() + func (m *UserTomatoMutation) ResetEdge(name string) error + func (m *UserTomatoMutation) ResetEndTime() + func (m *UserTomatoMutation) ResetField(name string) error + func (m *UserTomatoMutation) ResetRemainTime() + func (m *UserTomatoMutation) ResetStartTime() + func (m *UserTomatoMutation) ResetUpdatedAt() + func (m *UserTomatoMutation) ResetUserID() + func (m *UserTomatoMutation) ResetUsers() + func (m *UserTomatoMutation) SetColor(u usertomato.Color) + func (m *UserTomatoMutation) SetCreatedAt(t time.Time) + func (m *UserTomatoMutation) SetEndTime(t time.Time) + func (m *UserTomatoMutation) SetField(name string, value ent.Value) error + func (m *UserTomatoMutation) SetRemainTime(t time.Time) + func (m *UserTomatoMutation) SetStartTime(t time.Time) + func (m *UserTomatoMutation) SetUpdatedAt(t time.Time) + func (m *UserTomatoMutation) SetUserID(i int) + func (m *UserTomatoMutation) SetUsersID(id int) + func (m *UserTomatoMutation) StartTime() (r time.Time, exists bool) + func (m *UserTomatoMutation) Type() string + func (m *UserTomatoMutation) UpdatedAt() (r time.Time, exists bool) + func (m *UserTomatoMutation) UserID() (r int, exists bool) + func (m *UserTomatoMutation) UsersCleared() bool + func (m *UserTomatoMutation) UsersID() (id int, exists bool) + func (m *UserTomatoMutation) UsersIDs() (ids []int) + func (m *UserTomatoMutation) Where(ps ...predicate.UserTomato) + func (m UserTomatoMutation) Client() *Client + func (m UserTomatoMutation) Tx() (*Tx, error) + type UserTomatoQuery struct + func (utq *UserTomatoQuery) All(ctx context.Context) ([]*UserTomato, error) + func (utq *UserTomatoQuery) AllX(ctx context.Context) []*UserTomato + func (utq *UserTomatoQuery) Clone() *UserTomatoQuery + func (utq *UserTomatoQuery) Count(ctx context.Context) (int, error) + func (utq *UserTomatoQuery) CountX(ctx context.Context) int + func (utq *UserTomatoQuery) Exist(ctx context.Context) (bool, error) + func (utq *UserTomatoQuery) ExistX(ctx context.Context) bool + func (utq *UserTomatoQuery) First(ctx context.Context) (*UserTomato, error) + func (utq *UserTomatoQuery) FirstID(ctx context.Context) (id int, err error) + func (utq *UserTomatoQuery) FirstIDX(ctx context.Context) int + func (utq *UserTomatoQuery) FirstX(ctx context.Context) *UserTomato + func (utq *UserTomatoQuery) GroupBy(field string, fields ...string) *UserTomatoGroupBy + func (utq *UserTomatoQuery) IDs(ctx context.Context) ([]int, error) + func (utq *UserTomatoQuery) IDsX(ctx context.Context) []int + func (utq *UserTomatoQuery) Limit(limit int) *UserTomatoQuery + func (utq *UserTomatoQuery) Offset(offset int) *UserTomatoQuery + func (utq *UserTomatoQuery) Only(ctx context.Context) (*UserTomato, error) + func (utq *UserTomatoQuery) OnlyID(ctx context.Context) (id int, err error) + func (utq *UserTomatoQuery) OnlyIDX(ctx context.Context) int + func (utq *UserTomatoQuery) OnlyX(ctx context.Context) *UserTomato + func (utq *UserTomatoQuery) Order(o ...OrderFunc) *UserTomatoQuery + func (utq *UserTomatoQuery) QueryUsers() *UserQuery + func (utq *UserTomatoQuery) Select(fields ...string) *UserTomatoSelect + func (utq *UserTomatoQuery) Unique(unique bool) *UserTomatoQuery + func (utq *UserTomatoQuery) Where(ps ...predicate.UserTomato) *UserTomatoQuery + func (utq *UserTomatoQuery) WithUsers(opts ...func(*UserQuery)) *UserTomatoQuery + type UserTomatoSelect struct + func (uts *UserTomatoSelect) Bool(ctx context.Context) (_ bool, err error) + func (uts *UserTomatoSelect) BoolX(ctx context.Context) bool + func (uts *UserTomatoSelect) Bools(ctx context.Context) ([]bool, error) + func (uts *UserTomatoSelect) BoolsX(ctx context.Context) []bool + func (uts *UserTomatoSelect) Float64(ctx context.Context) (_ float64, err error) + func (uts *UserTomatoSelect) Float64X(ctx context.Context) float64 + func (uts *UserTomatoSelect) Float64s(ctx context.Context) ([]float64, error) + func (uts *UserTomatoSelect) Float64sX(ctx context.Context) []float64 + func (uts *UserTomatoSelect) Int(ctx context.Context) (_ int, err error) + func (uts *UserTomatoSelect) IntX(ctx context.Context) int + func (uts *UserTomatoSelect) Ints(ctx context.Context) ([]int, error) + func (uts *UserTomatoSelect) IntsX(ctx context.Context) []int + func (uts *UserTomatoSelect) Scan(ctx context.Context, v interface{}) error + func (uts *UserTomatoSelect) ScanX(ctx context.Context, v interface{}) + func (uts *UserTomatoSelect) String(ctx context.Context) (_ string, err error) + func (uts *UserTomatoSelect) StringX(ctx context.Context) string + func (uts *UserTomatoSelect) Strings(ctx context.Context) ([]string, error) + func (uts *UserTomatoSelect) StringsX(ctx context.Context) []string + type UserTomatoUpdate struct + func (utu *UserTomatoUpdate) ClearEndTime() *UserTomatoUpdate + func (utu *UserTomatoUpdate) ClearUsers() *UserTomatoUpdate + func (utu *UserTomatoUpdate) Exec(ctx context.Context) error + func (utu *UserTomatoUpdate) ExecX(ctx context.Context) + func (utu *UserTomatoUpdate) Mutation() *UserTomatoMutation + func (utu *UserTomatoUpdate) Save(ctx context.Context) (int, error) + func (utu *UserTomatoUpdate) SaveX(ctx context.Context) int + func (utu *UserTomatoUpdate) SetColor(u usertomato.Color) *UserTomatoUpdate + func (utu *UserTomatoUpdate) SetEndTime(t time.Time) *UserTomatoUpdate + func (utu *UserTomatoUpdate) SetNillableEndTime(t *time.Time) *UserTomatoUpdate + func (utu *UserTomatoUpdate) SetRemainTime(t time.Time) *UserTomatoUpdate + func (utu *UserTomatoUpdate) SetUpdatedAt(t time.Time) *UserTomatoUpdate + func (utu *UserTomatoUpdate) SetUserID(i int) *UserTomatoUpdate + func (utu *UserTomatoUpdate) SetUsers(u *User) *UserTomatoUpdate + func (utu *UserTomatoUpdate) SetUsersID(id int) *UserTomatoUpdate + func (utu *UserTomatoUpdate) Where(ps ...predicate.UserTomato) *UserTomatoUpdate + type UserTomatoUpdateOne struct + func (utuo *UserTomatoUpdateOne) ClearEndTime() *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) ClearUsers() *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) Exec(ctx context.Context) error + func (utuo *UserTomatoUpdateOne) ExecX(ctx context.Context) + func (utuo *UserTomatoUpdateOne) Mutation() *UserTomatoMutation + func (utuo *UserTomatoUpdateOne) Save(ctx context.Context) (*UserTomato, error) + func (utuo *UserTomatoUpdateOne) SaveX(ctx context.Context) *UserTomato + func (utuo *UserTomatoUpdateOne) Select(field string, fields ...string) *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) SetColor(u usertomato.Color) *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) SetEndTime(t time.Time) *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) SetNillableEndTime(t *time.Time) *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) SetRemainTime(t time.Time) *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) SetUpdatedAt(t time.Time) *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) SetUserID(i int) *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) SetUsers(u *User) *UserTomatoUpdateOne + func (utuo *UserTomatoUpdateOne) SetUsersID(id int) *UserTomatoUpdateOne + type UserTomatos []*UserTomato + type UserUpdate struct + func (uu *UserUpdate) AddUserConfigIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddUserConfigs(u ...*UserConfig) *UserUpdate + func (uu *UserUpdate) AddUserTomatoIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddUserTomatoes(u ...*UserTomato) *UserUpdate + func (uu *UserUpdate) ClearUserConfigs() *UserUpdate + func (uu *UserUpdate) ClearUserTomatoes() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) RemoveUserConfigIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveUserConfigs(u ...*UserConfig) *UserUpdate + func (uu *UserUpdate) RemoveUserTomatoIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveUserTomatoes(u ...*UserTomato) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetEnabled(b bool) *UserUpdate + func (uu *UserUpdate) SetPassword(s string) *UserUpdate + func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate + func (uu *UserUpdate) SetUsername(s string) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddUserConfigIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddUserConfigs(u ...*UserConfig) *UserUpdateOne + func (uuo *UserUpdateOne) AddUserTomatoIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddUserTomatoes(u ...*UserTomato) *UserUpdateOne + func (uuo *UserUpdateOne) ClearUserConfigs() *UserUpdateOne + func (uuo *UserUpdateOne) ClearUserTomatoes() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) RemoveUserConfigIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveUserConfigs(u ...*UserConfig) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveUserTomatoIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveUserTomatoes(u ...*UserTomato) *UserUpdateOne + 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) SetEnabled(b bool) *UserUpdateOne + func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne + func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value v0.0.2-rc.2 Aug 18, 2021 v0.0.2-rc.1 Aug 8, 2021 v0.0.2-beta Aug 3, 2021 v0.0.2-alpha Jul 30, 2021 v0.0.1-alpha Jul 19, 2021