Versions in this module Expand all Collapse all v0 v0.5.4 Jan 6, 2021 v0.5.3 Dec 13, 2020 v0.5.2 Dec 11, 2020 v0.5.1 Nov 29, 2020 v0.5.0 Nov 3, 2020 Changes in this version type CardQuery + func (cq *CardQuery) FirstIDX(ctx context.Context) int type UserQuery + func (uq *UserQuery) FirstIDX(ctx context.Context) int v0.4.3 Sep 21, 2020 v0.4.2 Aug 30, 2020 v0.4.1 Aug 30, 2020 v0.4.0 Aug 18, 2020 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCard + const TypeUser + 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 Card struct + Edges CardEdges + Expired time.Time + ID int + Number string + func (c *Card) QueryOwner() *UserQuery + func (c *Card) String() string + func (c *Card) Unwrap() *Card + func (c *Card) Update() *CardUpdateOne + type CardClient struct + func NewCardClient(c config) *CardClient + func (c *CardClient) Create() *CardCreate + func (c *CardClient) CreateBulk(builders ...*CardCreate) *CardCreateBulk + func (c *CardClient) Delete() *CardDelete + func (c *CardClient) DeleteOne(ca *Card) *CardDeleteOne + func (c *CardClient) DeleteOneID(id int) *CardDeleteOne + func (c *CardClient) Get(ctx context.Context, id int) (*Card, error) + func (c *CardClient) GetX(ctx context.Context, id int) *Card + func (c *CardClient) Hooks() []Hook + func (c *CardClient) Query() *CardQuery + func (c *CardClient) QueryOwner(ca *Card) *UserQuery + func (c *CardClient) Update() *CardUpdate + func (c *CardClient) UpdateOne(ca *Card) *CardUpdateOne + func (c *CardClient) UpdateOneID(id int) *CardUpdateOne + func (c *CardClient) Use(hooks ...Hook) + type CardCreate struct + func (cc *CardCreate) Mutation() *CardMutation + func (cc *CardCreate) Save(ctx context.Context) (*Card, error) + func (cc *CardCreate) SaveX(ctx context.Context) *Card + func (cc *CardCreate) SetExpired(t time.Time) *CardCreate + func (cc *CardCreate) SetNumber(s string) *CardCreate + func (cc *CardCreate) SetOwner(u *User) *CardCreate + func (cc *CardCreate) SetOwnerID(id int) *CardCreate + type CardCreateBulk struct + func (ccb *CardCreateBulk) Save(ctx context.Context) ([]*Card, error) + func (ccb *CardCreateBulk) SaveX(ctx context.Context) []*Card + type CardDelete struct + func (cd *CardDelete) Exec(ctx context.Context) (int, error) + func (cd *CardDelete) ExecX(ctx context.Context) int + func (cd *CardDelete) Where(ps ...predicate.Card) *CardDelete + type CardDeleteOne struct + func (cdo *CardDeleteOne) Exec(ctx context.Context) error + func (cdo *CardDeleteOne) ExecX(ctx context.Context) + type CardEdges struct + Owner *User + func (e CardEdges) OwnerOrErr() (*User, error) + type CardGroupBy struct + func (cgb *CardGroupBy) Aggregate(fns ...AggregateFunc) *CardGroupBy + func (cgb *CardGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *CardGroupBy) BoolX(ctx context.Context) bool + func (cgb *CardGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *CardGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *CardGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *CardGroupBy) Float64X(ctx context.Context) float64 + func (cgb *CardGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *CardGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *CardGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *CardGroupBy) IntX(ctx context.Context) int + func (cgb *CardGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *CardGroupBy) IntsX(ctx context.Context) []int + func (cgb *CardGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *CardGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *CardGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *CardGroupBy) StringX(ctx context.Context) string + func (cgb *CardGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *CardGroupBy) StringsX(ctx context.Context) []string + type CardMutation struct + func (m *CardMutation) AddField(name string, value ent.Value) error + func (m *CardMutation) AddedEdges() []string + func (m *CardMutation) AddedField(name string) (ent.Value, bool) + func (m *CardMutation) AddedFields() []string + func (m *CardMutation) AddedIDs(name string) []ent.Value + func (m *CardMutation) ClearEdge(name string) error + func (m *CardMutation) ClearField(name string) error + func (m *CardMutation) ClearOwner() + func (m *CardMutation) ClearedEdges() []string + func (m *CardMutation) ClearedFields() []string + func (m *CardMutation) EdgeCleared(name string) bool + func (m *CardMutation) Expired() (r time.Time, exists bool) + func (m *CardMutation) Field(name string) (ent.Value, bool) + func (m *CardMutation) FieldCleared(name string) bool + func (m *CardMutation) Fields() []string + func (m *CardMutation) ID() (id int, exists bool) + func (m *CardMutation) Number() (r string, exists bool) + func (m *CardMutation) OldExpired(ctx context.Context) (v time.Time, err error) + func (m *CardMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CardMutation) OldNumber(ctx context.Context) (v string, err error) + func (m *CardMutation) Op() Op + func (m *CardMutation) OwnerCleared() bool + func (m *CardMutation) OwnerID() (id int, exists bool) + func (m *CardMutation) OwnerIDs() (ids []int) + func (m *CardMutation) RemovedEdges() []string + func (m *CardMutation) RemovedIDs(name string) []ent.Value + func (m *CardMutation) ResetEdge(name string) error + func (m *CardMutation) ResetExpired() + func (m *CardMutation) ResetField(name string) error + func (m *CardMutation) ResetNumber() + func (m *CardMutation) ResetOwner() + func (m *CardMutation) SetExpired(t time.Time) + func (m *CardMutation) SetField(name string, value ent.Value) error + func (m *CardMutation) SetNumber(s string) + func (m *CardMutation) SetOwnerID(id int) + func (m *CardMutation) Type() string + func (m CardMutation) Client() *Client + func (m CardMutation) Tx() (*Tx, error) + type CardQuery struct + func (cq *CardQuery) All(ctx context.Context) ([]*Card, error) + func (cq *CardQuery) AllX(ctx context.Context) []*Card + func (cq *CardQuery) Clone() *CardQuery + func (cq *CardQuery) Count(ctx context.Context) (int, error) + func (cq *CardQuery) CountX(ctx context.Context) int + func (cq *CardQuery) Exist(ctx context.Context) (bool, error) + func (cq *CardQuery) ExistX(ctx context.Context) bool + func (cq *CardQuery) First(ctx context.Context) (*Card, error) + func (cq *CardQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CardQuery) FirstX(ctx context.Context) *Card + func (cq *CardQuery) FirstXID(ctx context.Context) int + func (cq *CardQuery) GroupBy(field string, fields ...string) *CardGroupBy + func (cq *CardQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CardQuery) IDsX(ctx context.Context) []int + func (cq *CardQuery) Limit(limit int) *CardQuery + func (cq *CardQuery) Offset(offset int) *CardQuery + func (cq *CardQuery) Only(ctx context.Context) (*Card, error) + func (cq *CardQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CardQuery) OnlyIDX(ctx context.Context) int + func (cq *CardQuery) OnlyX(ctx context.Context) *Card + func (cq *CardQuery) Order(o ...OrderFunc) *CardQuery + func (cq *CardQuery) QueryOwner() *UserQuery + func (cq *CardQuery) Select(field string, fields ...string) *CardSelect + func (cq *CardQuery) Where(ps ...predicate.Card) *CardQuery + func (cq *CardQuery) WithOwner(opts ...func(*UserQuery)) *CardQuery + type CardSelect struct + func (cs *CardSelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *CardSelect) BoolX(ctx context.Context) bool + func (cs *CardSelect) Bools(ctx context.Context) ([]bool, error) + func (cs *CardSelect) BoolsX(ctx context.Context) []bool + func (cs *CardSelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *CardSelect) Float64X(ctx context.Context) float64 + func (cs *CardSelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *CardSelect) Float64sX(ctx context.Context) []float64 + func (cs *CardSelect) Int(ctx context.Context) (_ int, err error) + func (cs *CardSelect) IntX(ctx context.Context) int + func (cs *CardSelect) Ints(ctx context.Context) ([]int, error) + func (cs *CardSelect) IntsX(ctx context.Context) []int + func (cs *CardSelect) Scan(ctx context.Context, v interface{}) error + func (cs *CardSelect) ScanX(ctx context.Context, v interface{}) + func (cs *CardSelect) String(ctx context.Context) (_ string, err error) + func (cs *CardSelect) StringX(ctx context.Context) string + func (cs *CardSelect) Strings(ctx context.Context) ([]string, error) + func (cs *CardSelect) StringsX(ctx context.Context) []string + type CardUpdate struct + func (cu *CardUpdate) ClearOwner() *CardUpdate + func (cu *CardUpdate) Exec(ctx context.Context) error + func (cu *CardUpdate) ExecX(ctx context.Context) + func (cu *CardUpdate) Mutation() *CardMutation + func (cu *CardUpdate) Save(ctx context.Context) (int, error) + func (cu *CardUpdate) SaveX(ctx context.Context) int + func (cu *CardUpdate) SetExpired(t time.Time) *CardUpdate + func (cu *CardUpdate) SetNumber(s string) *CardUpdate + func (cu *CardUpdate) SetOwner(u *User) *CardUpdate + func (cu *CardUpdate) SetOwnerID(id int) *CardUpdate + func (cu *CardUpdate) Where(ps ...predicate.Card) *CardUpdate + type CardUpdateOne struct + func (cuo *CardUpdateOne) ClearOwner() *CardUpdateOne + func (cuo *CardUpdateOne) Exec(ctx context.Context) error + func (cuo *CardUpdateOne) ExecX(ctx context.Context) + func (cuo *CardUpdateOne) Mutation() *CardMutation + func (cuo *CardUpdateOne) Save(ctx context.Context) (*Card, error) + func (cuo *CardUpdateOne) SaveX(ctx context.Context) *Card + func (cuo *CardUpdateOne) SetExpired(t time.Time) *CardUpdateOne + func (cuo *CardUpdateOne) SetNumber(s string) *CardUpdateOne + func (cuo *CardUpdateOne) SetOwner(u *User) *CardUpdateOne + func (cuo *CardUpdateOne) SetOwnerID(id int) *CardUpdateOne + type Cards []*Card + type Client struct + Card *CardClient + Schema *migrate.Schema + User *UserClient + 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 + Card *CardClient + User *UserClient + 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 + Edges UserEdges + ID int + Name string + func (u *User) QueryCard() *CardQuery + 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) QueryCard(u *User) *CardQuery + 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 UserCreate struct + 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) SetCard(c *Card) *UserCreate + func (uc *UserCreate) SetCardID(id int) *UserCreate + func (uc *UserCreate) SetName(s string) *UserCreate + func (uc *UserCreate) SetNillableCardID(id *int) *UserCreate + type UserCreateBulk struct + 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 + Card *Card + func (e UserEdges) CardOrErr() (*Card, 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) 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) CardCleared() bool + func (m *UserMutation) CardID() (id int, exists bool) + func (m *UserMutation) CardIDs() (ids []int) + func (m *UserMutation) ClearCard() + 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) 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) Name() (r string, exists bool) + func (m *UserMutation) OldAge(ctx context.Context) (v int, 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) ResetCard() + 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) SetCardID(id int) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetName(s string) + func (m *UserMutation) Type() string + 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) FirstX(ctx context.Context) *User + func (uq *UserQuery) FirstXID(ctx context.Context) int + 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) QueryCard() *CardQuery + func (uq *UserQuery) Select(field string, fields ...string) *UserSelect + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithCard(opts ...func(*CardQuery)) *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 UserUpdate struct + func (uu *UserUpdate) AddAge(i int) *UserUpdate + func (uu *UserUpdate) ClearCard() *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) SetCard(c *Card) *UserUpdate + func (uu *UserUpdate) SetCardID(id int) *UserUpdate + func (uu *UserUpdate) SetName(s string) *UserUpdate + func (uu *UserUpdate) SetNillableCardID(id *int) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddAge(i int) *UserUpdateOne + func (uuo *UserUpdateOne) ClearCard() *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) SetAge(i int) *UserUpdateOne + func (uuo *UserUpdateOne) SetCard(c *Card) *UserUpdateOne + func (uuo *UserUpdateOne) SetCardID(id int) *UserUpdateOne + func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableCardID(id *int) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value