Versions in this module Expand all Collapse all v1 v1.5.0 Oct 24, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCar + 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 Car struct + Edges CarEdges + ID int + func (c *Car) QueryOwner() *UserQuery + func (c *Car) String() string + func (c *Car) Unwrap() *Car + func (c *Car) Update() *CarUpdateOne + type CarClient struct + func NewCarClient(c config) *CarClient + func (c *CarClient) Create() *CarCreate + func (c *CarClient) CreateBulk(builders ...*CarCreate) *CarCreateBulk + func (c *CarClient) Delete() *CarDelete + func (c *CarClient) DeleteOne(ca *Car) *CarDeleteOne + func (c *CarClient) DeleteOneID(id int) *CarDeleteOne + func (c *CarClient) Get(ctx context.Context, id int) (*Car, error) + func (c *CarClient) GetX(ctx context.Context, id int) *Car + func (c *CarClient) Hooks() []Hook + func (c *CarClient) Query() *CarQuery + func (c *CarClient) QueryOwner(ca *Car) *UserQuery + func (c *CarClient) Update() *CarUpdate + func (c *CarClient) UpdateOne(ca *Car) *CarUpdateOne + func (c *CarClient) UpdateOneID(id int) *CarUpdateOne + func (c *CarClient) Use(hooks ...Hook) + type CarCreate struct + func (cc *CarCreate) Mutation() *CarMutation + func (cc *CarCreate) Save(ctx context.Context) (*Car, error) + func (cc *CarCreate) SaveX(ctx context.Context) *Car + func (cc *CarCreate) SetNillableOwnerID(id *int) *CarCreate + func (cc *CarCreate) SetOwner(u *User) *CarCreate + func (cc *CarCreate) SetOwnerID(id int) *CarCreate + type CarCreateBulk struct + func (ccb *CarCreateBulk) Save(ctx context.Context) ([]*Car, error) + func (ccb *CarCreateBulk) SaveX(ctx context.Context) []*Car + type CarDelete struct + func (cd *CarDelete) Exec(ctx context.Context) (int, error) + func (cd *CarDelete) ExecX(ctx context.Context) int + func (cd *CarDelete) Where(ps ...predicate.Car) *CarDelete + type CarDeleteOne struct + func (cdo *CarDeleteOne) Exec(ctx context.Context) error + func (cdo *CarDeleteOne) ExecX(ctx context.Context) + type CarEdges struct + Owner *User + func (e CarEdges) OwnerOrErr() (*User, error) + type CarGroupBy struct + func (cgb *CarGroupBy) Aggregate(fns ...AggregateFunc) *CarGroupBy + func (cgb *CarGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *CarGroupBy) BoolX(ctx context.Context) bool + func (cgb *CarGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *CarGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *CarGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *CarGroupBy) Float64X(ctx context.Context) float64 + func (cgb *CarGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *CarGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *CarGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *CarGroupBy) IntX(ctx context.Context) int + func (cgb *CarGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *CarGroupBy) IntsX(ctx context.Context) []int + func (cgb *CarGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *CarGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *CarGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *CarGroupBy) StringX(ctx context.Context) string + func (cgb *CarGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *CarGroupBy) StringsX(ctx context.Context) []string + type CarMutation struct + func (m *CarMutation) AddField(name string, value ent.Value) error + func (m *CarMutation) AddedEdges() []string + func (m *CarMutation) AddedField(name string) (ent.Value, bool) + func (m *CarMutation) AddedFields() []string + func (m *CarMutation) AddedIDs(name string) []ent.Value + func (m *CarMutation) ClearEdge(name string) error + func (m *CarMutation) ClearField(name string) error + func (m *CarMutation) ClearOwner() + func (m *CarMutation) ClearedEdges() []string + func (m *CarMutation) ClearedFields() []string + func (m *CarMutation) EdgeCleared(name string) bool + func (m *CarMutation) Field(name string) (ent.Value, bool) + func (m *CarMutation) FieldCleared(name string) bool + func (m *CarMutation) Fields() []string + func (m *CarMutation) ID() (id int, exists bool) + func (m *CarMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CarMutation) Op() Op + func (m *CarMutation) OwnerCleared() bool + func (m *CarMutation) OwnerID() (id int, exists bool) + func (m *CarMutation) OwnerIDs() (ids []int) + func (m *CarMutation) RemovedEdges() []string + func (m *CarMutation) RemovedIDs(name string) []ent.Value + func (m *CarMutation) ResetEdge(name string) error + func (m *CarMutation) ResetField(name string) error + func (m *CarMutation) ResetOwner() + func (m *CarMutation) SetField(name string, value ent.Value) error + func (m *CarMutation) SetOwnerID(id int) + func (m *CarMutation) Type() string + func (m CarMutation) Client() *Client + func (m CarMutation) Tx() (*Tx, error) + type CarQuery struct + func (cq *CarQuery) All(ctx context.Context) ([]*Car, error) + func (cq *CarQuery) AllX(ctx context.Context) []*Car + func (cq *CarQuery) Clone() *CarQuery + func (cq *CarQuery) Count(ctx context.Context) (int, error) + func (cq *CarQuery) CountX(ctx context.Context) int + func (cq *CarQuery) Exist(ctx context.Context) (bool, error) + func (cq *CarQuery) ExistX(ctx context.Context) bool + func (cq *CarQuery) First(ctx context.Context) (*Car, error) + func (cq *CarQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CarQuery) FirstX(ctx context.Context) *Car + func (cq *CarQuery) FirstXID(ctx context.Context) int + func (cq *CarQuery) GroupBy(field string, fields ...string) *CarGroupBy + func (cq *CarQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CarQuery) IDsX(ctx context.Context) []int + func (cq *CarQuery) Limit(limit int) *CarQuery + func (cq *CarQuery) Offset(offset int) *CarQuery + func (cq *CarQuery) Only(ctx context.Context) (*Car, error) + func (cq *CarQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CarQuery) OnlyIDX(ctx context.Context) int + func (cq *CarQuery) OnlyX(ctx context.Context) *Car + func (cq *CarQuery) Order(o ...OrderFunc) *CarQuery + func (cq *CarQuery) QueryOwner() *UserQuery + func (cq *CarQuery) Select(field string, fields ...string) *CarSelect + func (cq *CarQuery) Where(ps ...predicate.Car) *CarQuery + func (cq *CarQuery) WithOwner(opts ...func(*UserQuery)) *CarQuery + type CarSelect struct + func (cs *CarSelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *CarSelect) BoolX(ctx context.Context) bool + func (cs *CarSelect) Bools(ctx context.Context) ([]bool, error) + func (cs *CarSelect) BoolsX(ctx context.Context) []bool + func (cs *CarSelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *CarSelect) Float64X(ctx context.Context) float64 + func (cs *CarSelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *CarSelect) Float64sX(ctx context.Context) []float64 + func (cs *CarSelect) Int(ctx context.Context) (_ int, err error) + func (cs *CarSelect) IntX(ctx context.Context) int + func (cs *CarSelect) Ints(ctx context.Context) ([]int, error) + func (cs *CarSelect) IntsX(ctx context.Context) []int + func (cs *CarSelect) Scan(ctx context.Context, v interface{}) error + func (cs *CarSelect) ScanX(ctx context.Context, v interface{}) + func (cs *CarSelect) String(ctx context.Context) (_ string, err error) + func (cs *CarSelect) StringX(ctx context.Context) string + func (cs *CarSelect) Strings(ctx context.Context) ([]string, error) + func (cs *CarSelect) StringsX(ctx context.Context) []string + type CarUpdate struct + func (cu *CarUpdate) ClearOwner() *CarUpdate + func (cu *CarUpdate) Exec(ctx context.Context) error + func (cu *CarUpdate) ExecX(ctx context.Context) + func (cu *CarUpdate) Mutation() *CarMutation + func (cu *CarUpdate) Save(ctx context.Context) (int, error) + func (cu *CarUpdate) SaveX(ctx context.Context) int + func (cu *CarUpdate) SetNillableOwnerID(id *int) *CarUpdate + func (cu *CarUpdate) SetOwner(u *User) *CarUpdate + func (cu *CarUpdate) SetOwnerID(id int) *CarUpdate + func (cu *CarUpdate) Where(ps ...predicate.Car) *CarUpdate + type CarUpdateOne struct + func (cuo *CarUpdateOne) ClearOwner() *CarUpdateOne + func (cuo *CarUpdateOne) Exec(ctx context.Context) error + func (cuo *CarUpdateOne) ExecX(ctx context.Context) + func (cuo *CarUpdateOne) Mutation() *CarMutation + func (cuo *CarUpdateOne) Save(ctx context.Context) (*Car, error) + func (cuo *CarUpdateOne) SaveX(ctx context.Context) *Car + func (cuo *CarUpdateOne) SetNillableOwnerID(id *int) *CarUpdateOne + func (cuo *CarUpdateOne) SetOwner(u *User) *CarUpdateOne + func (cuo *CarUpdateOne) SetOwnerID(id int) *CarUpdateOne + type Cars []*Car + type Client struct + Car *CarClient + 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 + Car *CarClient + 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 + Address string + Age int32 + Blob []byte + Edges UserEdges + ID int + Name string + Nickname string + Renamed string + State user.State + Status string + func (u *User) QueryCar() *CarQuery + func (u *User) QueryChildren() *UserQuery + func (u *User) QueryParent() *UserQuery + func (u *User) QuerySpouse() *UserQuery + 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) QueryCar(u *User) *CarQuery + func (c *UserClient) QueryChildren(u *User) *UserQuery + func (c *UserClient) QueryParent(u *User) *UserQuery + func (c *UserClient) QuerySpouse(u *User) *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) + type UserCreate struct + func (uc *UserCreate) AddChildIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddChildren(u ...*User) *UserCreate + 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) SetAddress(s string) *UserCreate + func (uc *UserCreate) SetAge(i int32) *UserCreate + func (uc *UserCreate) SetBlob(b []byte) *UserCreate + func (uc *UserCreate) SetCar(c *Car) *UserCreate + func (uc *UserCreate) SetCarID(id int) *UserCreate + func (uc *UserCreate) SetID(i int) *UserCreate + func (uc *UserCreate) SetName(s string) *UserCreate + func (uc *UserCreate) SetNickname(s string) *UserCreate + func (uc *UserCreate) SetNillableAddress(s *string) *UserCreate + func (uc *UserCreate) SetNillableCarID(id *int) *UserCreate + func (uc *UserCreate) SetNillableParentID(id *int) *UserCreate + func (uc *UserCreate) SetNillableRenamed(s *string) *UserCreate + func (uc *UserCreate) SetNillableSpouseID(id *int) *UserCreate + func (uc *UserCreate) SetNillableState(u *user.State) *UserCreate + func (uc *UserCreate) SetNillableStatus(s *string) *UserCreate + func (uc *UserCreate) SetParent(u *User) *UserCreate + func (uc *UserCreate) SetParentID(id int) *UserCreate + func (uc *UserCreate) SetRenamed(s string) *UserCreate + func (uc *UserCreate) SetSpouse(u *User) *UserCreate + func (uc *UserCreate) SetSpouseID(id int) *UserCreate + func (uc *UserCreate) SetState(u user.State) *UserCreate + func (uc *UserCreate) SetStatus(s string) *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 + Car *Car + Children []*User + Parent *User + Spouse *User + func (e UserEdges) CarOrErr() (*Car, error) + func (e UserEdges) ChildrenOrErr() ([]*User, error) + func (e UserEdges) ParentOrErr() (*User, error) + func (e UserEdges) SpouseOrErr() (*User, 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 int32) + func (m *UserMutation) AddChildIDs(ids ...int) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddedAge() (r int32, 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) Address() (r string, exists bool) + func (m *UserMutation) AddressCleared() bool + func (m *UserMutation) Age() (r int32, exists bool) + func (m *UserMutation) Blob() (r []byte, exists bool) + func (m *UserMutation) BlobCleared() bool + func (m *UserMutation) CarCleared() bool + func (m *UserMutation) CarID() (id int, exists bool) + func (m *UserMutation) CarIDs() (ids []int) + func (m *UserMutation) ChildrenIDs() (ids []int) + func (m *UserMutation) ClearAddress() + func (m *UserMutation) ClearBlob() + func (m *UserMutation) ClearCar() + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearParent() + func (m *UserMutation) ClearRenamed() + func (m *UserMutation) ClearSpouse() + func (m *UserMutation) ClearState() + func (m *UserMutation) ClearStatus() + 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) Nickname() (r string, exists bool) + func (m *UserMutation) OldAddress(ctx context.Context) (v string, err error) + func (m *UserMutation) OldAge(ctx context.Context) (v int32, err error) + func (m *UserMutation) OldBlob(ctx context.Context) (v []byte, 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) OldNickname(ctx context.Context) (v string, err error) + func (m *UserMutation) OldRenamed(ctx context.Context) (v string, err error) + func (m *UserMutation) OldState(ctx context.Context) (v user.State, err error) + func (m *UserMutation) OldStatus(ctx context.Context) (v string, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) ParentCleared() bool + func (m *UserMutation) ParentID() (id int, exists bool) + func (m *UserMutation) ParentIDs() (ids []int) + func (m *UserMutation) RemoveChildIDs(ids ...int) + func (m *UserMutation) RemovedChildrenIDs() (ids []int) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) Renamed() (r string, exists bool) + func (m *UserMutation) RenamedCleared() bool + func (m *UserMutation) ResetAddress() + func (m *UserMutation) ResetAge() + func (m *UserMutation) ResetBlob() + func (m *UserMutation) ResetCar() + func (m *UserMutation) ResetChildren() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetName() + func (m *UserMutation) ResetNickname() + func (m *UserMutation) ResetParent() + func (m *UserMutation) ResetRenamed() + func (m *UserMutation) ResetSpouse() + func (m *UserMutation) ResetState() + func (m *UserMutation) ResetStatus() + func (m *UserMutation) SetAddress(s string) + func (m *UserMutation) SetAge(i int32) + func (m *UserMutation) SetBlob(b []byte) + func (m *UserMutation) SetCarID(id int) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetID(id int) + func (m *UserMutation) SetName(s string) + func (m *UserMutation) SetNickname(s string) + func (m *UserMutation) SetParentID(id int) + func (m *UserMutation) SetRenamed(s string) + func (m *UserMutation) SetSpouseID(id int) + func (m *UserMutation) SetState(u user.State) + func (m *UserMutation) SetStatus(s string) + func (m *UserMutation) SpouseCleared() bool + func (m *UserMutation) SpouseID() (id int, exists bool) + func (m *UserMutation) SpouseIDs() (ids []int) + func (m *UserMutation) State() (r user.State, exists bool) + func (m *UserMutation) StateCleared() bool + func (m *UserMutation) Status() (r string, exists bool) + func (m *UserMutation) StatusCleared() bool + 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) QueryCar() *CarQuery + func (uq *UserQuery) QueryChildren() *UserQuery + func (uq *UserQuery) QueryParent() *UserQuery + func (uq *UserQuery) QuerySpouse() *UserQuery + func (uq *UserQuery) Select(field string, fields ...string) *UserSelect + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithCar(opts ...func(*CarQuery)) *UserQuery + func (uq *UserQuery) WithChildren(opts ...func(*UserQuery)) *UserQuery + func (uq *UserQuery) WithParent(opts ...func(*UserQuery)) *UserQuery + func (uq *UserQuery) WithSpouse(opts ...func(*UserQuery)) *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 int32) *UserUpdate + func (uu *UserUpdate) AddChildIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddChildren(u ...*User) *UserUpdate + func (uu *UserUpdate) ClearAddress() *UserUpdate + func (uu *UserUpdate) ClearBlob() *UserUpdate + func (uu *UserUpdate) ClearCar() *UserUpdate + func (uu *UserUpdate) ClearParent() *UserUpdate + func (uu *UserUpdate) ClearRenamed() *UserUpdate + func (uu *UserUpdate) ClearSpouse() *UserUpdate + func (uu *UserUpdate) ClearState() *UserUpdate + func (uu *UserUpdate) ClearStatus() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) RemoveChildIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveChildren(u ...*User) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetAddress(s string) *UserUpdate + func (uu *UserUpdate) SetAge(i int32) *UserUpdate + func (uu *UserUpdate) SetBlob(b []byte) *UserUpdate + func (uu *UserUpdate) SetCar(c *Car) *UserUpdate + func (uu *UserUpdate) SetCarID(id int) *UserUpdate + func (uu *UserUpdate) SetName(s string) *UserUpdate + func (uu *UserUpdate) SetNickname(s string) *UserUpdate + func (uu *UserUpdate) SetNillableAddress(s *string) *UserUpdate + func (uu *UserUpdate) SetNillableCarID(id *int) *UserUpdate + func (uu *UserUpdate) SetNillableParentID(id *int) *UserUpdate + func (uu *UserUpdate) SetNillableRenamed(s *string) *UserUpdate + func (uu *UserUpdate) SetNillableSpouseID(id *int) *UserUpdate + func (uu *UserUpdate) SetNillableState(u *user.State) *UserUpdate + func (uu *UserUpdate) SetNillableStatus(s *string) *UserUpdate + func (uu *UserUpdate) SetParent(u *User) *UserUpdate + func (uu *UserUpdate) SetParentID(id int) *UserUpdate + func (uu *UserUpdate) SetRenamed(s string) *UserUpdate + func (uu *UserUpdate) SetSpouse(u *User) *UserUpdate + func (uu *UserUpdate) SetSpouseID(id int) *UserUpdate + func (uu *UserUpdate) SetState(u user.State) *UserUpdate + func (uu *UserUpdate) SetStatus(s string) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddAge(i int32) *UserUpdateOne + func (uuo *UserUpdateOne) AddChildIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddChildren(u ...*User) *UserUpdateOne + func (uuo *UserUpdateOne) ClearAddress() *UserUpdateOne + func (uuo *UserUpdateOne) ClearBlob() *UserUpdateOne + func (uuo *UserUpdateOne) ClearCar() *UserUpdateOne + func (uuo *UserUpdateOne) ClearParent() *UserUpdateOne + func (uuo *UserUpdateOne) ClearRenamed() *UserUpdateOne + func (uuo *UserUpdateOne) ClearSpouse() *UserUpdateOne + func (uuo *UserUpdateOne) ClearState() *UserUpdateOne + func (uuo *UserUpdateOne) ClearStatus() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) RemoveChildIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveChildren(u ...*User) *UserUpdateOne + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) SetAddress(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetAge(i int32) *UserUpdateOne + func (uuo *UserUpdateOne) SetBlob(b []byte) *UserUpdateOne + func (uuo *UserUpdateOne) SetCar(c *Car) *UserUpdateOne + func (uuo *UserUpdateOne) SetCarID(id int) *UserUpdateOne + func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNickname(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableAddress(s *string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableCarID(id *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableParentID(id *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableRenamed(s *string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableSpouseID(id *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableState(u *user.State) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableStatus(s *string) *UserUpdateOne + func (uuo *UserUpdateOne) SetParent(u *User) *UserUpdateOne + func (uuo *UserUpdateOne) SetParentID(id int) *UserUpdateOne + func (uuo *UserUpdateOne) SetRenamed(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetSpouse(u *User) *UserUpdateOne + func (uuo *UserUpdateOne) SetSpouseID(id int) *UserUpdateOne + func (uuo *UserUpdateOne) SetState(u user.State) *UserUpdateOne + func (uuo *UserUpdateOne) SetStatus(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