Versions in this module Expand all Collapse all v0 v0.10.2 Jan 14, 2022 v0.10.1 Jan 14, 2022 v0.10.0 Jan 14, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCar + const TypeConversion + const TypeCustomType + 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) Exec(ctx context.Context) error + func (cc *CarCreate) ExecX(ctx context.Context) + 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) Exec(ctx context.Context) error + func (ccb *CarCreateBulk) ExecX(ctx context.Context) + 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) IDs(ctx context.Context) ([]int, error) + 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) Where(ps ...predicate.Car) + 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) FirstIDX(ctx context.Context) int + func (cq *CarQuery) FirstX(ctx context.Context) *Car + 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(fields ...string) *CarSelect + func (cq *CarQuery) Unique(unique bool) *CarQuery + 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) Select(field string, fields ...string) *CarUpdateOne + 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 + Conversion *ConversionClient + CustomType *CustomTypeClient + 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 Conversion struct + ID int + Int16ToString int16 + Int32ToString int32 + Int64ToString int64 + Int8ToString int8 + Name string + Uint16ToString uint16 + Uint32ToString uint32 + Uint64ToString uint64 + Uint8ToString uint8 + func (c *Conversion) String() string + func (c *Conversion) Unwrap() *Conversion + func (c *Conversion) Update() *ConversionUpdateOne + type ConversionClient struct + func NewConversionClient(c config) *ConversionClient + func (c *ConversionClient) Create() *ConversionCreate + func (c *ConversionClient) CreateBulk(builders ...*ConversionCreate) *ConversionCreateBulk + func (c *ConversionClient) Delete() *ConversionDelete + func (c *ConversionClient) DeleteOne(co *Conversion) *ConversionDeleteOne + func (c *ConversionClient) DeleteOneID(id int) *ConversionDeleteOne + func (c *ConversionClient) Get(ctx context.Context, id int) (*Conversion, error) + func (c *ConversionClient) GetX(ctx context.Context, id int) *Conversion + func (c *ConversionClient) Hooks() []Hook + func (c *ConversionClient) Query() *ConversionQuery + func (c *ConversionClient) Update() *ConversionUpdate + func (c *ConversionClient) UpdateOne(co *Conversion) *ConversionUpdateOne + func (c *ConversionClient) UpdateOneID(id int) *ConversionUpdateOne + func (c *ConversionClient) Use(hooks ...Hook) + type ConversionCreate struct + func (cc *ConversionCreate) Exec(ctx context.Context) error + func (cc *ConversionCreate) ExecX(ctx context.Context) + func (cc *ConversionCreate) Mutation() *ConversionMutation + func (cc *ConversionCreate) Save(ctx context.Context) (*Conversion, error) + func (cc *ConversionCreate) SaveX(ctx context.Context) *Conversion + func (cc *ConversionCreate) SetInt16ToString(i int16) *ConversionCreate + func (cc *ConversionCreate) SetInt32ToString(i int32) *ConversionCreate + func (cc *ConversionCreate) SetInt64ToString(i int64) *ConversionCreate + func (cc *ConversionCreate) SetInt8ToString(i int8) *ConversionCreate + func (cc *ConversionCreate) SetName(s string) *ConversionCreate + func (cc *ConversionCreate) SetNillableInt16ToString(i *int16) *ConversionCreate + func (cc *ConversionCreate) SetNillableInt32ToString(i *int32) *ConversionCreate + func (cc *ConversionCreate) SetNillableInt64ToString(i *int64) *ConversionCreate + func (cc *ConversionCreate) SetNillableInt8ToString(i *int8) *ConversionCreate + func (cc *ConversionCreate) SetNillableName(s *string) *ConversionCreate + func (cc *ConversionCreate) SetNillableUint16ToString(u *uint16) *ConversionCreate + func (cc *ConversionCreate) SetNillableUint32ToString(u *uint32) *ConversionCreate + func (cc *ConversionCreate) SetNillableUint64ToString(u *uint64) *ConversionCreate + func (cc *ConversionCreate) SetNillableUint8ToString(u *uint8) *ConversionCreate + func (cc *ConversionCreate) SetUint16ToString(u uint16) *ConversionCreate + func (cc *ConversionCreate) SetUint32ToString(u uint32) *ConversionCreate + func (cc *ConversionCreate) SetUint64ToString(u uint64) *ConversionCreate + func (cc *ConversionCreate) SetUint8ToString(u uint8) *ConversionCreate + type ConversionCreateBulk struct + func (ccb *ConversionCreateBulk) Exec(ctx context.Context) error + func (ccb *ConversionCreateBulk) ExecX(ctx context.Context) + func (ccb *ConversionCreateBulk) Save(ctx context.Context) ([]*Conversion, error) + func (ccb *ConversionCreateBulk) SaveX(ctx context.Context) []*Conversion + type ConversionDelete struct + func (cd *ConversionDelete) Exec(ctx context.Context) (int, error) + func (cd *ConversionDelete) ExecX(ctx context.Context) int + func (cd *ConversionDelete) Where(ps ...predicate.Conversion) *ConversionDelete + type ConversionDeleteOne struct + func (cdo *ConversionDeleteOne) Exec(ctx context.Context) error + func (cdo *ConversionDeleteOne) ExecX(ctx context.Context) + type ConversionGroupBy struct + func (cgb *ConversionGroupBy) Aggregate(fns ...AggregateFunc) *ConversionGroupBy + func (cgb *ConversionGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *ConversionGroupBy) BoolX(ctx context.Context) bool + func (cgb *ConversionGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *ConversionGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *ConversionGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *ConversionGroupBy) Float64X(ctx context.Context) float64 + func (cgb *ConversionGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *ConversionGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *ConversionGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *ConversionGroupBy) IntX(ctx context.Context) int + func (cgb *ConversionGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *ConversionGroupBy) IntsX(ctx context.Context) []int + func (cgb *ConversionGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *ConversionGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *ConversionGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *ConversionGroupBy) StringX(ctx context.Context) string + func (cgb *ConversionGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *ConversionGroupBy) StringsX(ctx context.Context) []string + type ConversionMutation struct + func (m *ConversionMutation) AddField(name string, value ent.Value) error + func (m *ConversionMutation) AddInt16ToString(i int16) + func (m *ConversionMutation) AddInt32ToString(i int32) + func (m *ConversionMutation) AddInt64ToString(i int64) + func (m *ConversionMutation) AddInt8ToString(i int8) + func (m *ConversionMutation) AddUint16ToString(u int16) + func (m *ConversionMutation) AddUint32ToString(u int32) + func (m *ConversionMutation) AddUint64ToString(u int64) + func (m *ConversionMutation) AddUint8ToString(u int8) + func (m *ConversionMutation) AddedEdges() []string + func (m *ConversionMutation) AddedField(name string) (ent.Value, bool) + func (m *ConversionMutation) AddedFields() []string + func (m *ConversionMutation) AddedIDs(name string) []ent.Value + func (m *ConversionMutation) AddedInt16ToString() (r int16, exists bool) + func (m *ConversionMutation) AddedInt32ToString() (r int32, exists bool) + func (m *ConversionMutation) AddedInt64ToString() (r int64, exists bool) + func (m *ConversionMutation) AddedInt8ToString() (r int8, exists bool) + func (m *ConversionMutation) AddedUint16ToString() (r int16, exists bool) + func (m *ConversionMutation) AddedUint32ToString() (r int32, exists bool) + func (m *ConversionMutation) AddedUint64ToString() (r int64, exists bool) + func (m *ConversionMutation) AddedUint8ToString() (r int8, exists bool) + func (m *ConversionMutation) ClearEdge(name string) error + func (m *ConversionMutation) ClearField(name string) error + func (m *ConversionMutation) ClearInt16ToString() + func (m *ConversionMutation) ClearInt32ToString() + func (m *ConversionMutation) ClearInt64ToString() + func (m *ConversionMutation) ClearInt8ToString() + func (m *ConversionMutation) ClearName() + func (m *ConversionMutation) ClearUint16ToString() + func (m *ConversionMutation) ClearUint32ToString() + func (m *ConversionMutation) ClearUint64ToString() + func (m *ConversionMutation) ClearUint8ToString() + func (m *ConversionMutation) ClearedEdges() []string + func (m *ConversionMutation) ClearedFields() []string + func (m *ConversionMutation) EdgeCleared(name string) bool + func (m *ConversionMutation) Field(name string) (ent.Value, bool) + func (m *ConversionMutation) FieldCleared(name string) bool + func (m *ConversionMutation) Fields() []string + func (m *ConversionMutation) ID() (id int, exists bool) + func (m *ConversionMutation) IDs(ctx context.Context) ([]int, error) + func (m *ConversionMutation) Int16ToString() (r int16, exists bool) + func (m *ConversionMutation) Int16ToStringCleared() bool + func (m *ConversionMutation) Int32ToString() (r int32, exists bool) + func (m *ConversionMutation) Int32ToStringCleared() bool + func (m *ConversionMutation) Int64ToString() (r int64, exists bool) + func (m *ConversionMutation) Int64ToStringCleared() bool + func (m *ConversionMutation) Int8ToString() (r int8, exists bool) + func (m *ConversionMutation) Int8ToStringCleared() bool + func (m *ConversionMutation) Name() (r string, exists bool) + func (m *ConversionMutation) NameCleared() bool + func (m *ConversionMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *ConversionMutation) OldInt16ToString(ctx context.Context) (v int16, err error) + func (m *ConversionMutation) OldInt32ToString(ctx context.Context) (v int32, err error) + func (m *ConversionMutation) OldInt64ToString(ctx context.Context) (v int64, err error) + func (m *ConversionMutation) OldInt8ToString(ctx context.Context) (v int8, err error) + func (m *ConversionMutation) OldName(ctx context.Context) (v string, err error) + func (m *ConversionMutation) OldUint16ToString(ctx context.Context) (v uint16, err error) + func (m *ConversionMutation) OldUint32ToString(ctx context.Context) (v uint32, err error) + func (m *ConversionMutation) OldUint64ToString(ctx context.Context) (v uint64, err error) + func (m *ConversionMutation) OldUint8ToString(ctx context.Context) (v uint8, err error) + func (m *ConversionMutation) Op() Op + func (m *ConversionMutation) RemovedEdges() []string + func (m *ConversionMutation) RemovedIDs(name string) []ent.Value + func (m *ConversionMutation) ResetEdge(name string) error + func (m *ConversionMutation) ResetField(name string) error + func (m *ConversionMutation) ResetInt16ToString() + func (m *ConversionMutation) ResetInt32ToString() + func (m *ConversionMutation) ResetInt64ToString() + func (m *ConversionMutation) ResetInt8ToString() + func (m *ConversionMutation) ResetName() + func (m *ConversionMutation) ResetUint16ToString() + func (m *ConversionMutation) ResetUint32ToString() + func (m *ConversionMutation) ResetUint64ToString() + func (m *ConversionMutation) ResetUint8ToString() + func (m *ConversionMutation) SetField(name string, value ent.Value) error + func (m *ConversionMutation) SetInt16ToString(i int16) + func (m *ConversionMutation) SetInt32ToString(i int32) + func (m *ConversionMutation) SetInt64ToString(i int64) + func (m *ConversionMutation) SetInt8ToString(i int8) + func (m *ConversionMutation) SetName(s string) + func (m *ConversionMutation) SetUint16ToString(u uint16) + func (m *ConversionMutation) SetUint32ToString(u uint32) + func (m *ConversionMutation) SetUint64ToString(u uint64) + func (m *ConversionMutation) SetUint8ToString(u uint8) + func (m *ConversionMutation) Type() string + func (m *ConversionMutation) Uint16ToString() (r uint16, exists bool) + func (m *ConversionMutation) Uint16ToStringCleared() bool + func (m *ConversionMutation) Uint32ToString() (r uint32, exists bool) + func (m *ConversionMutation) Uint32ToStringCleared() bool + func (m *ConversionMutation) Uint64ToString() (r uint64, exists bool) + func (m *ConversionMutation) Uint64ToStringCleared() bool + func (m *ConversionMutation) Uint8ToString() (r uint8, exists bool) + func (m *ConversionMutation) Uint8ToStringCleared() bool + func (m *ConversionMutation) Where(ps ...predicate.Conversion) + func (m ConversionMutation) Client() *Client + func (m ConversionMutation) Tx() (*Tx, error) + type ConversionQuery struct + func (cq *ConversionQuery) All(ctx context.Context) ([]*Conversion, error) + func (cq *ConversionQuery) AllX(ctx context.Context) []*Conversion + func (cq *ConversionQuery) Clone() *ConversionQuery + func (cq *ConversionQuery) Count(ctx context.Context) (int, error) + func (cq *ConversionQuery) CountX(ctx context.Context) int + func (cq *ConversionQuery) Exist(ctx context.Context) (bool, error) + func (cq *ConversionQuery) ExistX(ctx context.Context) bool + func (cq *ConversionQuery) First(ctx context.Context) (*Conversion, error) + func (cq *ConversionQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *ConversionQuery) FirstIDX(ctx context.Context) int + func (cq *ConversionQuery) FirstX(ctx context.Context) *Conversion + func (cq *ConversionQuery) GroupBy(field string, fields ...string) *ConversionGroupBy + func (cq *ConversionQuery) IDs(ctx context.Context) ([]int, error) + func (cq *ConversionQuery) IDsX(ctx context.Context) []int + func (cq *ConversionQuery) Limit(limit int) *ConversionQuery + func (cq *ConversionQuery) Offset(offset int) *ConversionQuery + func (cq *ConversionQuery) Only(ctx context.Context) (*Conversion, error) + func (cq *ConversionQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *ConversionQuery) OnlyIDX(ctx context.Context) int + func (cq *ConversionQuery) OnlyX(ctx context.Context) *Conversion + func (cq *ConversionQuery) Order(o ...OrderFunc) *ConversionQuery + func (cq *ConversionQuery) Select(fields ...string) *ConversionSelect + func (cq *ConversionQuery) Unique(unique bool) *ConversionQuery + func (cq *ConversionQuery) Where(ps ...predicate.Conversion) *ConversionQuery + type ConversionSelect struct + func (cs *ConversionSelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *ConversionSelect) BoolX(ctx context.Context) bool + func (cs *ConversionSelect) Bools(ctx context.Context) ([]bool, error) + func (cs *ConversionSelect) BoolsX(ctx context.Context) []bool + func (cs *ConversionSelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *ConversionSelect) Float64X(ctx context.Context) float64 + func (cs *ConversionSelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *ConversionSelect) Float64sX(ctx context.Context) []float64 + func (cs *ConversionSelect) Int(ctx context.Context) (_ int, err error) + func (cs *ConversionSelect) IntX(ctx context.Context) int + func (cs *ConversionSelect) Ints(ctx context.Context) ([]int, error) + func (cs *ConversionSelect) IntsX(ctx context.Context) []int + func (cs *ConversionSelect) Scan(ctx context.Context, v interface{}) error + func (cs *ConversionSelect) ScanX(ctx context.Context, v interface{}) + func (cs *ConversionSelect) String(ctx context.Context) (_ string, err error) + func (cs *ConversionSelect) StringX(ctx context.Context) string + func (cs *ConversionSelect) Strings(ctx context.Context) ([]string, error) + func (cs *ConversionSelect) StringsX(ctx context.Context) []string + type ConversionUpdate struct + func (cu *ConversionUpdate) AddInt16ToString(i int16) *ConversionUpdate + func (cu *ConversionUpdate) AddInt32ToString(i int32) *ConversionUpdate + func (cu *ConversionUpdate) AddInt64ToString(i int64) *ConversionUpdate + func (cu *ConversionUpdate) AddInt8ToString(i int8) *ConversionUpdate + func (cu *ConversionUpdate) AddUint16ToString(u int16) *ConversionUpdate + func (cu *ConversionUpdate) AddUint32ToString(u int32) *ConversionUpdate + func (cu *ConversionUpdate) AddUint64ToString(u int64) *ConversionUpdate + func (cu *ConversionUpdate) AddUint8ToString(u int8) *ConversionUpdate + func (cu *ConversionUpdate) ClearInt16ToString() *ConversionUpdate + func (cu *ConversionUpdate) ClearInt32ToString() *ConversionUpdate + func (cu *ConversionUpdate) ClearInt64ToString() *ConversionUpdate + func (cu *ConversionUpdate) ClearInt8ToString() *ConversionUpdate + func (cu *ConversionUpdate) ClearName() *ConversionUpdate + func (cu *ConversionUpdate) ClearUint16ToString() *ConversionUpdate + func (cu *ConversionUpdate) ClearUint32ToString() *ConversionUpdate + func (cu *ConversionUpdate) ClearUint64ToString() *ConversionUpdate + func (cu *ConversionUpdate) ClearUint8ToString() *ConversionUpdate + func (cu *ConversionUpdate) Exec(ctx context.Context) error + func (cu *ConversionUpdate) ExecX(ctx context.Context) + func (cu *ConversionUpdate) Mutation() *ConversionMutation + func (cu *ConversionUpdate) Save(ctx context.Context) (int, error) + func (cu *ConversionUpdate) SaveX(ctx context.Context) int + func (cu *ConversionUpdate) SetInt16ToString(i int16) *ConversionUpdate + func (cu *ConversionUpdate) SetInt32ToString(i int32) *ConversionUpdate + func (cu *ConversionUpdate) SetInt64ToString(i int64) *ConversionUpdate + func (cu *ConversionUpdate) SetInt8ToString(i int8) *ConversionUpdate + func (cu *ConversionUpdate) SetName(s string) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableInt16ToString(i *int16) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableInt32ToString(i *int32) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableInt64ToString(i *int64) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableInt8ToString(i *int8) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableName(s *string) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableUint16ToString(u *uint16) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableUint32ToString(u *uint32) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableUint64ToString(u *uint64) *ConversionUpdate + func (cu *ConversionUpdate) SetNillableUint8ToString(u *uint8) *ConversionUpdate + func (cu *ConversionUpdate) SetUint16ToString(u uint16) *ConversionUpdate + func (cu *ConversionUpdate) SetUint32ToString(u uint32) *ConversionUpdate + func (cu *ConversionUpdate) SetUint64ToString(u uint64) *ConversionUpdate + func (cu *ConversionUpdate) SetUint8ToString(u uint8) *ConversionUpdate + func (cu *ConversionUpdate) Where(ps ...predicate.Conversion) *ConversionUpdate + type ConversionUpdateOne struct + func (cuo *ConversionUpdateOne) AddInt16ToString(i int16) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) AddInt32ToString(i int32) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) AddInt64ToString(i int64) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) AddInt8ToString(i int8) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) AddUint16ToString(u int16) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) AddUint32ToString(u int32) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) AddUint64ToString(u int64) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) AddUint8ToString(u int8) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearInt16ToString() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearInt32ToString() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearInt64ToString() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearInt8ToString() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearName() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearUint16ToString() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearUint32ToString() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearUint64ToString() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) ClearUint8ToString() *ConversionUpdateOne + func (cuo *ConversionUpdateOne) Exec(ctx context.Context) error + func (cuo *ConversionUpdateOne) ExecX(ctx context.Context) + func (cuo *ConversionUpdateOne) Mutation() *ConversionMutation + func (cuo *ConversionUpdateOne) Save(ctx context.Context) (*Conversion, error) + func (cuo *ConversionUpdateOne) SaveX(ctx context.Context) *Conversion + func (cuo *ConversionUpdateOne) Select(field string, fields ...string) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetInt16ToString(i int16) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetInt32ToString(i int32) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetInt64ToString(i int64) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetInt8ToString(i int8) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetName(s string) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableInt16ToString(i *int16) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableInt32ToString(i *int32) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableInt64ToString(i *int64) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableInt8ToString(i *int8) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableName(s *string) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableUint16ToString(u *uint16) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableUint32ToString(u *uint32) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableUint64ToString(u *uint64) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetNillableUint8ToString(u *uint8) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetUint16ToString(u uint16) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetUint32ToString(u uint32) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetUint64ToString(u uint64) *ConversionUpdateOne + func (cuo *ConversionUpdateOne) SetUint8ToString(u uint8) *ConversionUpdateOne + type Conversions []*Conversion + type CustomType struct + Custom string + ID int + func (ct *CustomType) String() string + func (ct *CustomType) Unwrap() *CustomType + func (ct *CustomType) Update() *CustomTypeUpdateOne + type CustomTypeClient struct + func NewCustomTypeClient(c config) *CustomTypeClient + func (c *CustomTypeClient) Create() *CustomTypeCreate + func (c *CustomTypeClient) CreateBulk(builders ...*CustomTypeCreate) *CustomTypeCreateBulk + func (c *CustomTypeClient) Delete() *CustomTypeDelete + func (c *CustomTypeClient) DeleteOne(ct *CustomType) *CustomTypeDeleteOne + func (c *CustomTypeClient) DeleteOneID(id int) *CustomTypeDeleteOne + func (c *CustomTypeClient) Get(ctx context.Context, id int) (*CustomType, error) + func (c *CustomTypeClient) GetX(ctx context.Context, id int) *CustomType + func (c *CustomTypeClient) Hooks() []Hook + func (c *CustomTypeClient) Query() *CustomTypeQuery + func (c *CustomTypeClient) Update() *CustomTypeUpdate + func (c *CustomTypeClient) UpdateOne(ct *CustomType) *CustomTypeUpdateOne + func (c *CustomTypeClient) UpdateOneID(id int) *CustomTypeUpdateOne + func (c *CustomTypeClient) Use(hooks ...Hook) + type CustomTypeCreate struct + func (ctc *CustomTypeCreate) Exec(ctx context.Context) error + func (ctc *CustomTypeCreate) ExecX(ctx context.Context) + func (ctc *CustomTypeCreate) Mutation() *CustomTypeMutation + func (ctc *CustomTypeCreate) Save(ctx context.Context) (*CustomType, error) + func (ctc *CustomTypeCreate) SaveX(ctx context.Context) *CustomType + func (ctc *CustomTypeCreate) SetCustom(s string) *CustomTypeCreate + func (ctc *CustomTypeCreate) SetNillableCustom(s *string) *CustomTypeCreate + type CustomTypeCreateBulk struct + func (ctcb *CustomTypeCreateBulk) Exec(ctx context.Context) error + func (ctcb *CustomTypeCreateBulk) ExecX(ctx context.Context) + func (ctcb *CustomTypeCreateBulk) Save(ctx context.Context) ([]*CustomType, error) + func (ctcb *CustomTypeCreateBulk) SaveX(ctx context.Context) []*CustomType + type CustomTypeDelete struct + func (ctd *CustomTypeDelete) Exec(ctx context.Context) (int, error) + func (ctd *CustomTypeDelete) ExecX(ctx context.Context) int + func (ctd *CustomTypeDelete) Where(ps ...predicate.CustomType) *CustomTypeDelete + type CustomTypeDeleteOne struct + func (ctdo *CustomTypeDeleteOne) Exec(ctx context.Context) error + func (ctdo *CustomTypeDeleteOne) ExecX(ctx context.Context) + type CustomTypeGroupBy struct + func (ctgb *CustomTypeGroupBy) Aggregate(fns ...AggregateFunc) *CustomTypeGroupBy + func (ctgb *CustomTypeGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ctgb *CustomTypeGroupBy) BoolX(ctx context.Context) bool + func (ctgb *CustomTypeGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ctgb *CustomTypeGroupBy) BoolsX(ctx context.Context) []bool + func (ctgb *CustomTypeGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ctgb *CustomTypeGroupBy) Float64X(ctx context.Context) float64 + func (ctgb *CustomTypeGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ctgb *CustomTypeGroupBy) Float64sX(ctx context.Context) []float64 + func (ctgb *CustomTypeGroupBy) Int(ctx context.Context) (_ int, err error) + func (ctgb *CustomTypeGroupBy) IntX(ctx context.Context) int + func (ctgb *CustomTypeGroupBy) Ints(ctx context.Context) ([]int, error) + func (ctgb *CustomTypeGroupBy) IntsX(ctx context.Context) []int + func (ctgb *CustomTypeGroupBy) Scan(ctx context.Context, v interface{}) error + func (ctgb *CustomTypeGroupBy) ScanX(ctx context.Context, v interface{}) + func (ctgb *CustomTypeGroupBy) String(ctx context.Context) (_ string, err error) + func (ctgb *CustomTypeGroupBy) StringX(ctx context.Context) string + func (ctgb *CustomTypeGroupBy) Strings(ctx context.Context) ([]string, error) + func (ctgb *CustomTypeGroupBy) StringsX(ctx context.Context) []string + type CustomTypeMutation struct + func (m *CustomTypeMutation) AddField(name string, value ent.Value) error + func (m *CustomTypeMutation) AddedEdges() []string + func (m *CustomTypeMutation) AddedField(name string) (ent.Value, bool) + func (m *CustomTypeMutation) AddedFields() []string + func (m *CustomTypeMutation) AddedIDs(name string) []ent.Value + func (m *CustomTypeMutation) ClearCustom() + func (m *CustomTypeMutation) ClearEdge(name string) error + func (m *CustomTypeMutation) ClearField(name string) error + func (m *CustomTypeMutation) ClearedEdges() []string + func (m *CustomTypeMutation) ClearedFields() []string + func (m *CustomTypeMutation) Custom() (r string, exists bool) + func (m *CustomTypeMutation) CustomCleared() bool + func (m *CustomTypeMutation) EdgeCleared(name string) bool + func (m *CustomTypeMutation) Field(name string) (ent.Value, bool) + func (m *CustomTypeMutation) FieldCleared(name string) bool + func (m *CustomTypeMutation) Fields() []string + func (m *CustomTypeMutation) ID() (id int, exists bool) + func (m *CustomTypeMutation) IDs(ctx context.Context) ([]int, error) + func (m *CustomTypeMutation) OldCustom(ctx context.Context) (v string, err error) + func (m *CustomTypeMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CustomTypeMutation) Op() Op + func (m *CustomTypeMutation) RemovedEdges() []string + func (m *CustomTypeMutation) RemovedIDs(name string) []ent.Value + func (m *CustomTypeMutation) ResetCustom() + func (m *CustomTypeMutation) ResetEdge(name string) error + func (m *CustomTypeMutation) ResetField(name string) error + func (m *CustomTypeMutation) SetCustom(s string) + func (m *CustomTypeMutation) SetField(name string, value ent.Value) error + func (m *CustomTypeMutation) Type() string + func (m *CustomTypeMutation) Where(ps ...predicate.CustomType) + func (m CustomTypeMutation) Client() *Client + func (m CustomTypeMutation) Tx() (*Tx, error) + type CustomTypeQuery struct + func (ctq *CustomTypeQuery) All(ctx context.Context) ([]*CustomType, error) + func (ctq *CustomTypeQuery) AllX(ctx context.Context) []*CustomType + func (ctq *CustomTypeQuery) Clone() *CustomTypeQuery + func (ctq *CustomTypeQuery) Count(ctx context.Context) (int, error) + func (ctq *CustomTypeQuery) CountX(ctx context.Context) int + func (ctq *CustomTypeQuery) Exist(ctx context.Context) (bool, error) + func (ctq *CustomTypeQuery) ExistX(ctx context.Context) bool + func (ctq *CustomTypeQuery) First(ctx context.Context) (*CustomType, error) + func (ctq *CustomTypeQuery) FirstID(ctx context.Context) (id int, err error) + func (ctq *CustomTypeQuery) FirstIDX(ctx context.Context) int + func (ctq *CustomTypeQuery) FirstX(ctx context.Context) *CustomType + func (ctq *CustomTypeQuery) GroupBy(field string, fields ...string) *CustomTypeGroupBy + func (ctq *CustomTypeQuery) IDs(ctx context.Context) ([]int, error) + func (ctq *CustomTypeQuery) IDsX(ctx context.Context) []int + func (ctq *CustomTypeQuery) Limit(limit int) *CustomTypeQuery + func (ctq *CustomTypeQuery) Offset(offset int) *CustomTypeQuery + func (ctq *CustomTypeQuery) Only(ctx context.Context) (*CustomType, error) + func (ctq *CustomTypeQuery) OnlyID(ctx context.Context) (id int, err error) + func (ctq *CustomTypeQuery) OnlyIDX(ctx context.Context) int + func (ctq *CustomTypeQuery) OnlyX(ctx context.Context) *CustomType + func (ctq *CustomTypeQuery) Order(o ...OrderFunc) *CustomTypeQuery + func (ctq *CustomTypeQuery) Select(fields ...string) *CustomTypeSelect + func (ctq *CustomTypeQuery) Unique(unique bool) *CustomTypeQuery + func (ctq *CustomTypeQuery) Where(ps ...predicate.CustomType) *CustomTypeQuery + type CustomTypeSelect struct + func (cts *CustomTypeSelect) Bool(ctx context.Context) (_ bool, err error) + func (cts *CustomTypeSelect) BoolX(ctx context.Context) bool + func (cts *CustomTypeSelect) Bools(ctx context.Context) ([]bool, error) + func (cts *CustomTypeSelect) BoolsX(ctx context.Context) []bool + func (cts *CustomTypeSelect) Float64(ctx context.Context) (_ float64, err error) + func (cts *CustomTypeSelect) Float64X(ctx context.Context) float64 + func (cts *CustomTypeSelect) Float64s(ctx context.Context) ([]float64, error) + func (cts *CustomTypeSelect) Float64sX(ctx context.Context) []float64 + func (cts *CustomTypeSelect) Int(ctx context.Context) (_ int, err error) + func (cts *CustomTypeSelect) IntX(ctx context.Context) int + func (cts *CustomTypeSelect) Ints(ctx context.Context) ([]int, error) + func (cts *CustomTypeSelect) IntsX(ctx context.Context) []int + func (cts *CustomTypeSelect) Scan(ctx context.Context, v interface{}) error + func (cts *CustomTypeSelect) ScanX(ctx context.Context, v interface{}) + func (cts *CustomTypeSelect) String(ctx context.Context) (_ string, err error) + func (cts *CustomTypeSelect) StringX(ctx context.Context) string + func (cts *CustomTypeSelect) Strings(ctx context.Context) ([]string, error) + func (cts *CustomTypeSelect) StringsX(ctx context.Context) []string + type CustomTypeUpdate struct + func (ctu *CustomTypeUpdate) ClearCustom() *CustomTypeUpdate + func (ctu *CustomTypeUpdate) Exec(ctx context.Context) error + func (ctu *CustomTypeUpdate) ExecX(ctx context.Context) + func (ctu *CustomTypeUpdate) Mutation() *CustomTypeMutation + func (ctu *CustomTypeUpdate) Save(ctx context.Context) (int, error) + func (ctu *CustomTypeUpdate) SaveX(ctx context.Context) int + func (ctu *CustomTypeUpdate) SetCustom(s string) *CustomTypeUpdate + func (ctu *CustomTypeUpdate) SetNillableCustom(s *string) *CustomTypeUpdate + func (ctu *CustomTypeUpdate) Where(ps ...predicate.CustomType) *CustomTypeUpdate + type CustomTypeUpdateOne struct + func (ctuo *CustomTypeUpdateOne) ClearCustom() *CustomTypeUpdateOne + func (ctuo *CustomTypeUpdateOne) Exec(ctx context.Context) error + func (ctuo *CustomTypeUpdateOne) ExecX(ctx context.Context) + func (ctuo *CustomTypeUpdateOne) Mutation() *CustomTypeMutation + func (ctuo *CustomTypeUpdateOne) Save(ctx context.Context) (*CustomType, error) + func (ctuo *CustomTypeUpdateOne) SaveX(ctx context.Context) *CustomType + func (ctuo *CustomTypeUpdateOne) Select(field string, fields ...string) *CustomTypeUpdateOne + func (ctuo *CustomTypeUpdateOne) SetCustom(s string) *CustomTypeUpdateOne + func (ctuo *CustomTypeUpdateOne) SetNillableCustom(s *string) *CustomTypeUpdateOne + type CustomTypes []*CustomType + 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 + Conversion *ConversionClient + CustomType *CustomTypeClient + 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 + Description string + Edges UserEdges + ID int + Name string + Nickname string + Renamed string + State user.State + Status string + Workplace 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) 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) 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) SetDescription(s string) *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) SetNillableDescription(s *string) *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) SetNillableWorkplace(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 + func (uc *UserCreate) SetWorkplace(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 + 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) ChildrenCleared() bool + func (m *UserMutation) ChildrenIDs() (ids []int) + func (m *UserMutation) ClearAddress() + func (m *UserMutation) ClearBlob() + func (m *UserMutation) ClearCar() + func (m *UserMutation) ClearChildren() + func (m *UserMutation) ClearDescription() + 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) ClearWorkplace() + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) Description() (r string, exists bool) + func (m *UserMutation) DescriptionCleared() bool + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserMutation) Name() (r string, exists bool) + func (m *UserMutation) 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) OldDescription(ctx context.Context) (v string, 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) OldWorkplace(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) ResetDescription() + 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) ResetWorkplace() + 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) SetDescription(s string) + 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) SetWorkplace(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) Where(ps ...predicate.User) + func (m *UserMutation) Workplace() (r string, exists bool) + func (m *UserMutation) WorkplaceCleared() bool + 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) QueryCar() *CarQuery + func (uq *UserQuery) QueryChildren() *UserQuery + func (uq *UserQuery) QueryParent() *UserQuery + func (uq *UserQuery) QuerySpouse() *UserQuery + 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) 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) ClearChildren() *UserUpdate + func (uu *UserUpdate) ClearDescription() *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) ClearWorkplace() *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) SetDescription(s string) *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) SetNillableDescription(s *string) *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) SetNillableWorkplace(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) SetWorkplace(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) ClearChildren() *UserUpdateOne + func (uuo *UserUpdateOne) ClearDescription() *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) ClearWorkplace() *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) Select(field string, fields ...string) *UserUpdateOne + 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) SetDescription(s string) *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) SetNillableDescription(s *string) *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) SetNillableWorkplace(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 + func (uuo *UserUpdateOne) SetWorkplace(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