Versions in this module Expand all Collapse all v0 v0.6.1 Feb 16, 2021 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeBlob + const TypeCar + const TypeGroup + const TypeMixinID + const TypePet + 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, func(string) bool) 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 Blob struct + Edges BlobEdges + ID uuid.UUID + UUID uuid.UUID + func (b *Blob) QueryLinks() *BlobQuery + func (b *Blob) QueryParent() *BlobQuery + func (b *Blob) String() string + func (b *Blob) Unwrap() *Blob + func (b *Blob) Update() *BlobUpdateOne + type BlobClient struct + func NewBlobClient(c config) *BlobClient + func (c *BlobClient) Create() *BlobCreate + func (c *BlobClient) CreateBulk(builders ...*BlobCreate) *BlobCreateBulk + func (c *BlobClient) Delete() *BlobDelete + func (c *BlobClient) DeleteOne(b *Blob) *BlobDeleteOne + func (c *BlobClient) DeleteOneID(id uuid.UUID) *BlobDeleteOne + func (c *BlobClient) Get(ctx context.Context, id uuid.UUID) (*Blob, error) + func (c *BlobClient) GetX(ctx context.Context, id uuid.UUID) *Blob + func (c *BlobClient) Hooks() []Hook + func (c *BlobClient) Query() *BlobQuery + func (c *BlobClient) QueryLinks(b *Blob) *BlobQuery + func (c *BlobClient) QueryParent(b *Blob) *BlobQuery + func (c *BlobClient) Update() *BlobUpdate + func (c *BlobClient) UpdateOne(b *Blob) *BlobUpdateOne + func (c *BlobClient) UpdateOneID(id uuid.UUID) *BlobUpdateOne + func (c *BlobClient) Use(hooks ...Hook) + type BlobCreate struct + func (bc *BlobCreate) AddLinkIDs(ids ...uuid.UUID) *BlobCreate + func (bc *BlobCreate) AddLinks(b ...*Blob) *BlobCreate + func (bc *BlobCreate) Mutation() *BlobMutation + func (bc *BlobCreate) Save(ctx context.Context) (*Blob, error) + func (bc *BlobCreate) SaveX(ctx context.Context) *Blob + func (bc *BlobCreate) SetID(u uuid.UUID) *BlobCreate + func (bc *BlobCreate) SetNillableParentID(id *uuid.UUID) *BlobCreate + func (bc *BlobCreate) SetParent(b *Blob) *BlobCreate + func (bc *BlobCreate) SetParentID(id uuid.UUID) *BlobCreate + func (bc *BlobCreate) SetUUID(u uuid.UUID) *BlobCreate + type BlobCreateBulk struct + func (bcb *BlobCreateBulk) Save(ctx context.Context) ([]*Blob, error) + func (bcb *BlobCreateBulk) SaveX(ctx context.Context) []*Blob + type BlobDelete struct + func (bd *BlobDelete) Exec(ctx context.Context) (int, error) + func (bd *BlobDelete) ExecX(ctx context.Context) int + func (bd *BlobDelete) Where(ps ...predicate.Blob) *BlobDelete + type BlobDeleteOne struct + func (bdo *BlobDeleteOne) Exec(ctx context.Context) error + func (bdo *BlobDeleteOne) ExecX(ctx context.Context) + type BlobEdges struct + Links []*Blob + Parent *Blob + func (e BlobEdges) LinksOrErr() ([]*Blob, error) + func (e BlobEdges) ParentOrErr() (*Blob, error) + type BlobGroupBy struct + func (bgb *BlobGroupBy) Aggregate(fns ...AggregateFunc) *BlobGroupBy + func (bgb *BlobGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (bgb *BlobGroupBy) BoolX(ctx context.Context) bool + func (bgb *BlobGroupBy) Bools(ctx context.Context) ([]bool, error) + func (bgb *BlobGroupBy) BoolsX(ctx context.Context) []bool + func (bgb *BlobGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (bgb *BlobGroupBy) Float64X(ctx context.Context) float64 + func (bgb *BlobGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (bgb *BlobGroupBy) Float64sX(ctx context.Context) []float64 + func (bgb *BlobGroupBy) Int(ctx context.Context) (_ int, err error) + func (bgb *BlobGroupBy) IntX(ctx context.Context) int + func (bgb *BlobGroupBy) Ints(ctx context.Context) ([]int, error) + func (bgb *BlobGroupBy) IntsX(ctx context.Context) []int + func (bgb *BlobGroupBy) Scan(ctx context.Context, v interface{}) error + func (bgb *BlobGroupBy) ScanX(ctx context.Context, v interface{}) + func (bgb *BlobGroupBy) String(ctx context.Context) (_ string, err error) + func (bgb *BlobGroupBy) StringX(ctx context.Context) string + func (bgb *BlobGroupBy) Strings(ctx context.Context) ([]string, error) + func (bgb *BlobGroupBy) StringsX(ctx context.Context) []string + type BlobMutation struct + func (m *BlobMutation) AddField(name string, value ent.Value) error + func (m *BlobMutation) AddLinkIDs(ids ...uuid.UUID) + func (m *BlobMutation) AddedEdges() []string + func (m *BlobMutation) AddedField(name string) (ent.Value, bool) + func (m *BlobMutation) AddedFields() []string + func (m *BlobMutation) AddedIDs(name string) []ent.Value + func (m *BlobMutation) ClearEdge(name string) error + func (m *BlobMutation) ClearField(name string) error + func (m *BlobMutation) ClearLinks() + func (m *BlobMutation) ClearParent() + func (m *BlobMutation) ClearedEdges() []string + func (m *BlobMutation) ClearedFields() []string + func (m *BlobMutation) EdgeCleared(name string) bool + func (m *BlobMutation) Field(name string) (ent.Value, bool) + func (m *BlobMutation) FieldCleared(name string) bool + func (m *BlobMutation) Fields() []string + func (m *BlobMutation) ID() (id uuid.UUID, exists bool) + func (m *BlobMutation) LinksCleared() bool + func (m *BlobMutation) LinksIDs() (ids []uuid.UUID) + func (m *BlobMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *BlobMutation) OldUUID(ctx context.Context) (v uuid.UUID, err error) + func (m *BlobMutation) Op() Op + func (m *BlobMutation) ParentCleared() bool + func (m *BlobMutation) ParentID() (id uuid.UUID, exists bool) + func (m *BlobMutation) ParentIDs() (ids []uuid.UUID) + func (m *BlobMutation) RemoveLinkIDs(ids ...uuid.UUID) + func (m *BlobMutation) RemovedEdges() []string + func (m *BlobMutation) RemovedIDs(name string) []ent.Value + func (m *BlobMutation) RemovedLinksIDs() (ids []uuid.UUID) + func (m *BlobMutation) ResetEdge(name string) error + func (m *BlobMutation) ResetField(name string) error + func (m *BlobMutation) ResetLinks() + func (m *BlobMutation) ResetParent() + func (m *BlobMutation) ResetUUID() + func (m *BlobMutation) SetField(name string, value ent.Value) error + func (m *BlobMutation) SetID(id uuid.UUID) + func (m *BlobMutation) SetParentID(id uuid.UUID) + func (m *BlobMutation) SetUUID(u uuid.UUID) + func (m *BlobMutation) Type() string + func (m *BlobMutation) UUID() (r uuid.UUID, exists bool) + func (m BlobMutation) Client() *Client + func (m BlobMutation) Tx() (*Tx, error) + type BlobQuery struct + func (bq *BlobQuery) All(ctx context.Context) ([]*Blob, error) + func (bq *BlobQuery) AllX(ctx context.Context) []*Blob + func (bq *BlobQuery) Clone() *BlobQuery + func (bq *BlobQuery) Count(ctx context.Context) (int, error) + func (bq *BlobQuery) CountX(ctx context.Context) int + func (bq *BlobQuery) Exist(ctx context.Context) (bool, error) + func (bq *BlobQuery) ExistX(ctx context.Context) bool + func (bq *BlobQuery) First(ctx context.Context) (*Blob, error) + func (bq *BlobQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (bq *BlobQuery) FirstIDX(ctx context.Context) uuid.UUID + func (bq *BlobQuery) FirstX(ctx context.Context) *Blob + func (bq *BlobQuery) GroupBy(field string, fields ...string) *BlobGroupBy + func (bq *BlobQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (bq *BlobQuery) IDsX(ctx context.Context) []uuid.UUID + func (bq *BlobQuery) Limit(limit int) *BlobQuery + func (bq *BlobQuery) Offset(offset int) *BlobQuery + func (bq *BlobQuery) Only(ctx context.Context) (*Blob, error) + func (bq *BlobQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (bq *BlobQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (bq *BlobQuery) OnlyX(ctx context.Context) *Blob + func (bq *BlobQuery) Order(o ...OrderFunc) *BlobQuery + func (bq *BlobQuery) QueryLinks() *BlobQuery + func (bq *BlobQuery) QueryParent() *BlobQuery + func (bq *BlobQuery) Select(field string, fields ...string) *BlobSelect + func (bq *BlobQuery) Where(ps ...predicate.Blob) *BlobQuery + func (bq *BlobQuery) WithLinks(opts ...func(*BlobQuery)) *BlobQuery + func (bq *BlobQuery) WithParent(opts ...func(*BlobQuery)) *BlobQuery + type BlobSelect struct + func (bs *BlobSelect) Bool(ctx context.Context) (_ bool, err error) + func (bs *BlobSelect) BoolX(ctx context.Context) bool + func (bs *BlobSelect) Bools(ctx context.Context) ([]bool, error) + func (bs *BlobSelect) BoolsX(ctx context.Context) []bool + func (bs *BlobSelect) Float64(ctx context.Context) (_ float64, err error) + func (bs *BlobSelect) Float64X(ctx context.Context) float64 + func (bs *BlobSelect) Float64s(ctx context.Context) ([]float64, error) + func (bs *BlobSelect) Float64sX(ctx context.Context) []float64 + func (bs *BlobSelect) Int(ctx context.Context) (_ int, err error) + func (bs *BlobSelect) IntX(ctx context.Context) int + func (bs *BlobSelect) Ints(ctx context.Context) ([]int, error) + func (bs *BlobSelect) IntsX(ctx context.Context) []int + func (bs *BlobSelect) Scan(ctx context.Context, v interface{}) error + func (bs *BlobSelect) ScanX(ctx context.Context, v interface{}) + func (bs *BlobSelect) String(ctx context.Context) (_ string, err error) + func (bs *BlobSelect) StringX(ctx context.Context) string + func (bs *BlobSelect) Strings(ctx context.Context) ([]string, error) + func (bs *BlobSelect) StringsX(ctx context.Context) []string + type BlobUpdate struct + func (bu *BlobUpdate) AddLinkIDs(ids ...uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) AddLinks(b ...*Blob) *BlobUpdate + func (bu *BlobUpdate) ClearLinks() *BlobUpdate + func (bu *BlobUpdate) ClearParent() *BlobUpdate + func (bu *BlobUpdate) Exec(ctx context.Context) error + func (bu *BlobUpdate) ExecX(ctx context.Context) + func (bu *BlobUpdate) Mutation() *BlobMutation + func (bu *BlobUpdate) RemoveLinkIDs(ids ...uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) RemoveLinks(b ...*Blob) *BlobUpdate + func (bu *BlobUpdate) Save(ctx context.Context) (int, error) + func (bu *BlobUpdate) SaveX(ctx context.Context) int + func (bu *BlobUpdate) SetNillableParentID(id *uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) SetParent(b *Blob) *BlobUpdate + func (bu *BlobUpdate) SetParentID(id uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) SetUUID(u uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) Where(ps ...predicate.Blob) *BlobUpdate + type BlobUpdateOne struct + func (buo *BlobUpdateOne) AddLinkIDs(ids ...uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) AddLinks(b ...*Blob) *BlobUpdateOne + func (buo *BlobUpdateOne) ClearLinks() *BlobUpdateOne + func (buo *BlobUpdateOne) ClearParent() *BlobUpdateOne + func (buo *BlobUpdateOne) Exec(ctx context.Context) error + func (buo *BlobUpdateOne) ExecX(ctx context.Context) + func (buo *BlobUpdateOne) Mutation() *BlobMutation + func (buo *BlobUpdateOne) RemoveLinkIDs(ids ...uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) RemoveLinks(b ...*Blob) *BlobUpdateOne + func (buo *BlobUpdateOne) Save(ctx context.Context) (*Blob, error) + func (buo *BlobUpdateOne) SaveX(ctx context.Context) *Blob + func (buo *BlobUpdateOne) SetNillableParentID(id *uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) SetParent(b *Blob) *BlobUpdateOne + func (buo *BlobUpdateOne) SetParentID(id uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) SetUUID(u uuid.UUID) *BlobUpdateOne + type Blobs []*Blob + type Car struct + AfterID float64 + BeforeID float64 + Edges CarEdges + ID int + Model string + func (c *Car) QueryOwner() *PetQuery + 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) *PetQuery + 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) SetAfterID(f float64) *CarCreate + func (cc *CarCreate) SetBeforeID(f float64) *CarCreate + func (cc *CarCreate) SetID(i int) *CarCreate + func (cc *CarCreate) SetModel(s string) *CarCreate + func (cc *CarCreate) SetNillableAfterID(f *float64) *CarCreate + func (cc *CarCreate) SetNillableBeforeID(f *float64) *CarCreate + func (cc *CarCreate) SetNillableOwnerID(id *string) *CarCreate + func (cc *CarCreate) SetOwner(p *Pet) *CarCreate + func (cc *CarCreate) SetOwnerID(id string) *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 *Pet + func (e CarEdges) OwnerOrErr() (*Pet, 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) AddAfterID(f float64) + func (m *CarMutation) AddBeforeID(f float64) + func (m *CarMutation) AddField(name string, value ent.Value) error + func (m *CarMutation) AddedAfterID() (r float64, exists bool) + func (m *CarMutation) AddedBeforeID() (r float64, exists bool) + 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) AfterID() (r float64, exists bool) + func (m *CarMutation) AfterIDCleared() bool + func (m *CarMutation) BeforeID() (r float64, exists bool) + func (m *CarMutation) BeforeIDCleared() bool + func (m *CarMutation) ClearAfterID() + func (m *CarMutation) ClearBeforeID() + 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) Model() (r string, exists bool) + func (m *CarMutation) OldAfterID(ctx context.Context) (v float64, err error) + func (m *CarMutation) OldBeforeID(ctx context.Context) (v float64, err error) + func (m *CarMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CarMutation) OldModel(ctx context.Context) (v string, err error) + func (m *CarMutation) Op() Op + func (m *CarMutation) OwnerCleared() bool + func (m *CarMutation) OwnerID() (id string, exists bool) + func (m *CarMutation) OwnerIDs() (ids []string) + func (m *CarMutation) RemovedEdges() []string + func (m *CarMutation) RemovedIDs(name string) []ent.Value + func (m *CarMutation) ResetAfterID() + func (m *CarMutation) ResetBeforeID() + func (m *CarMutation) ResetEdge(name string) error + func (m *CarMutation) ResetField(name string) error + func (m *CarMutation) ResetModel() + func (m *CarMutation) ResetOwner() + func (m *CarMutation) SetAfterID(f float64) + func (m *CarMutation) SetBeforeID(f float64) + func (m *CarMutation) SetField(name string, value ent.Value) error + func (m *CarMutation) SetID(id int) + func (m *CarMutation) SetModel(s string) + func (m *CarMutation) SetOwnerID(id string) + 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) 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() *PetQuery + func (cq *CarQuery) Select(field string, fields ...string) *CarSelect + func (cq *CarQuery) Where(ps ...predicate.Car) *CarQuery + func (cq *CarQuery) WithOwner(opts ...func(*PetQuery)) *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) AddAfterID(f float64) *CarUpdate + func (cu *CarUpdate) AddBeforeID(f float64) *CarUpdate + func (cu *CarUpdate) ClearAfterID() *CarUpdate + func (cu *CarUpdate) ClearBeforeID() *CarUpdate + 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) SetAfterID(f float64) *CarUpdate + func (cu *CarUpdate) SetBeforeID(f float64) *CarUpdate + func (cu *CarUpdate) SetModel(s string) *CarUpdate + func (cu *CarUpdate) SetNillableAfterID(f *float64) *CarUpdate + func (cu *CarUpdate) SetNillableBeforeID(f *float64) *CarUpdate + func (cu *CarUpdate) SetNillableOwnerID(id *string) *CarUpdate + func (cu *CarUpdate) SetOwner(p *Pet) *CarUpdate + func (cu *CarUpdate) SetOwnerID(id string) *CarUpdate + func (cu *CarUpdate) Where(ps ...predicate.Car) *CarUpdate + type CarUpdateOne struct + func (cuo *CarUpdateOne) AddAfterID(f float64) *CarUpdateOne + func (cuo *CarUpdateOne) AddBeforeID(f float64) *CarUpdateOne + func (cuo *CarUpdateOne) ClearAfterID() *CarUpdateOne + func (cuo *CarUpdateOne) ClearBeforeID() *CarUpdateOne + 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) SetAfterID(f float64) *CarUpdateOne + func (cuo *CarUpdateOne) SetBeforeID(f float64) *CarUpdateOne + func (cuo *CarUpdateOne) SetModel(s string) *CarUpdateOne + func (cuo *CarUpdateOne) SetNillableAfterID(f *float64) *CarUpdateOne + func (cuo *CarUpdateOne) SetNillableBeforeID(f *float64) *CarUpdateOne + func (cuo *CarUpdateOne) SetNillableOwnerID(id *string) *CarUpdateOne + func (cuo *CarUpdateOne) SetOwner(p *Pet) *CarUpdateOne + func (cuo *CarUpdateOne) SetOwnerID(id string) *CarUpdateOne + type Cars []*Car + type Client struct + Blob *BlobClient + Car *CarClient + Group *GroupClient + MixinID *MixinIDClient + Pet *PetClient + 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 Group struct + Edges GroupEdges + ID int + func (gr *Group) QueryUsers() *UserQuery + func (gr *Group) String() string + func (gr *Group) Unwrap() *Group + func (gr *Group) Update() *GroupUpdateOne + type GroupClient struct + func NewGroupClient(c config) *GroupClient + func (c *GroupClient) Create() *GroupCreate + func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk + func (c *GroupClient) Delete() *GroupDelete + func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne + func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne + func (c *GroupClient) Get(ctx context.Context, id int) (*Group, error) + func (c *GroupClient) GetX(ctx context.Context, id int) *Group + func (c *GroupClient) Hooks() []Hook + func (c *GroupClient) Query() *GroupQuery + func (c *GroupClient) QueryUsers(gr *Group) *UserQuery + func (c *GroupClient) Update() *GroupUpdate + func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne + func (c *GroupClient) UpdateOneID(id int) *GroupUpdateOne + func (c *GroupClient) Use(hooks ...Hook) + type GroupCreate struct + func (gc *GroupCreate) AddUserIDs(ids ...int) *GroupCreate + func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate + func (gc *GroupCreate) Mutation() *GroupMutation + func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) + func (gc *GroupCreate) SaveX(ctx context.Context) *Group + func (gc *GroupCreate) SetID(i int) *GroupCreate + type GroupCreateBulk struct + func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) + func (gcb *GroupCreateBulk) SaveX(ctx context.Context) []*Group + type GroupDelete struct + func (gd *GroupDelete) Exec(ctx context.Context) (int, error) + func (gd *GroupDelete) ExecX(ctx context.Context) int + func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete + type GroupDeleteOne struct + func (gdo *GroupDeleteOne) Exec(ctx context.Context) error + func (gdo *GroupDeleteOne) ExecX(ctx context.Context) + type GroupEdges struct + Users []*User + func (e GroupEdges) UsersOrErr() ([]*User, error) + type GroupGroupBy struct + func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy + func (ggb *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ggb *GroupGroupBy) BoolX(ctx context.Context) bool + func (ggb *GroupGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ggb *GroupGroupBy) BoolsX(ctx context.Context) []bool + func (ggb *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ggb *GroupGroupBy) Float64X(ctx context.Context) float64 + func (ggb *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ggb *GroupGroupBy) Float64sX(ctx context.Context) []float64 + func (ggb *GroupGroupBy) Int(ctx context.Context) (_ int, err error) + func (ggb *GroupGroupBy) IntX(ctx context.Context) int + func (ggb *GroupGroupBy) Ints(ctx context.Context) ([]int, error) + func (ggb *GroupGroupBy) IntsX(ctx context.Context) []int + func (ggb *GroupGroupBy) Scan(ctx context.Context, v interface{}) error + func (ggb *GroupGroupBy) ScanX(ctx context.Context, v interface{}) + func (ggb *GroupGroupBy) String(ctx context.Context) (_ string, err error) + func (ggb *GroupGroupBy) StringX(ctx context.Context) string + func (ggb *GroupGroupBy) Strings(ctx context.Context) ([]string, error) + func (ggb *GroupGroupBy) StringsX(ctx context.Context) []string + type GroupMutation struct + func (m *GroupMutation) AddField(name string, value ent.Value) error + func (m *GroupMutation) AddUserIDs(ids ...int) + func (m *GroupMutation) AddedEdges() []string + func (m *GroupMutation) AddedField(name string) (ent.Value, bool) + func (m *GroupMutation) AddedFields() []string + func (m *GroupMutation) AddedIDs(name string) []ent.Value + func (m *GroupMutation) ClearEdge(name string) error + func (m *GroupMutation) ClearField(name string) error + func (m *GroupMutation) ClearUsers() + func (m *GroupMutation) ClearedEdges() []string + func (m *GroupMutation) ClearedFields() []string + func (m *GroupMutation) EdgeCleared(name string) bool + func (m *GroupMutation) Field(name string) (ent.Value, bool) + func (m *GroupMutation) FieldCleared(name string) bool + func (m *GroupMutation) Fields() []string + func (m *GroupMutation) ID() (id int, exists bool) + func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *GroupMutation) Op() Op + func (m *GroupMutation) RemoveUserIDs(ids ...int) + func (m *GroupMutation) RemovedEdges() []string + func (m *GroupMutation) RemovedIDs(name string) []ent.Value + func (m *GroupMutation) RemovedUsersIDs() (ids []int) + func (m *GroupMutation) ResetEdge(name string) error + func (m *GroupMutation) ResetField(name string) error + func (m *GroupMutation) ResetUsers() + func (m *GroupMutation) SetField(name string, value ent.Value) error + func (m *GroupMutation) SetID(id int) + func (m *GroupMutation) Type() string + func (m *GroupMutation) UsersCleared() bool + func (m *GroupMutation) UsersIDs() (ids []int) + func (m GroupMutation) Client() *Client + func (m GroupMutation) Tx() (*Tx, error) + type GroupQuery struct + func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error) + func (gq *GroupQuery) AllX(ctx context.Context) []*Group + func (gq *GroupQuery) Clone() *GroupQuery + func (gq *GroupQuery) Count(ctx context.Context) (int, error) + func (gq *GroupQuery) CountX(ctx context.Context) int + func (gq *GroupQuery) Exist(ctx context.Context) (bool, error) + func (gq *GroupQuery) ExistX(ctx context.Context) bool + func (gq *GroupQuery) First(ctx context.Context) (*Group, error) + func (gq *GroupQuery) FirstID(ctx context.Context) (id int, err error) + func (gq *GroupQuery) FirstIDX(ctx context.Context) int + func (gq *GroupQuery) FirstX(ctx context.Context) *Group + func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy + func (gq *GroupQuery) IDs(ctx context.Context) ([]int, error) + func (gq *GroupQuery) IDsX(ctx context.Context) []int + func (gq *GroupQuery) Limit(limit int) *GroupQuery + func (gq *GroupQuery) Offset(offset int) *GroupQuery + func (gq *GroupQuery) Only(ctx context.Context) (*Group, error) + func (gq *GroupQuery) OnlyID(ctx context.Context) (id int, err error) + func (gq *GroupQuery) OnlyIDX(ctx context.Context) int + func (gq *GroupQuery) OnlyX(ctx context.Context) *Group + func (gq *GroupQuery) Order(o ...OrderFunc) *GroupQuery + func (gq *GroupQuery) QueryUsers() *UserQuery + func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect + func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery + func (gq *GroupQuery) WithUsers(opts ...func(*UserQuery)) *GroupQuery + type GroupSelect struct + func (gs *GroupSelect) Bool(ctx context.Context) (_ bool, err error) + func (gs *GroupSelect) BoolX(ctx context.Context) bool + func (gs *GroupSelect) Bools(ctx context.Context) ([]bool, error) + func (gs *GroupSelect) BoolsX(ctx context.Context) []bool + func (gs *GroupSelect) Float64(ctx context.Context) (_ float64, err error) + func (gs *GroupSelect) Float64X(ctx context.Context) float64 + func (gs *GroupSelect) Float64s(ctx context.Context) ([]float64, error) + func (gs *GroupSelect) Float64sX(ctx context.Context) []float64 + func (gs *GroupSelect) Int(ctx context.Context) (_ int, err error) + func (gs *GroupSelect) IntX(ctx context.Context) int + func (gs *GroupSelect) Ints(ctx context.Context) ([]int, error) + func (gs *GroupSelect) IntsX(ctx context.Context) []int + func (gs *GroupSelect) Scan(ctx context.Context, v interface{}) error + func (gs *GroupSelect) ScanX(ctx context.Context, v interface{}) + func (gs *GroupSelect) String(ctx context.Context) (_ string, err error) + func (gs *GroupSelect) StringX(ctx context.Context) string + func (gs *GroupSelect) Strings(ctx context.Context) ([]string, error) + func (gs *GroupSelect) StringsX(ctx context.Context) []string + type GroupUpdate struct + func (gu *GroupUpdate) AddUserIDs(ids ...int) *GroupUpdate + func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate + func (gu *GroupUpdate) ClearUsers() *GroupUpdate + func (gu *GroupUpdate) Exec(ctx context.Context) error + func (gu *GroupUpdate) ExecX(ctx context.Context) + func (gu *GroupUpdate) Mutation() *GroupMutation + func (gu *GroupUpdate) RemoveUserIDs(ids ...int) *GroupUpdate + func (gu *GroupUpdate) RemoveUsers(u ...*User) *GroupUpdate + func (gu *GroupUpdate) Save(ctx context.Context) (int, error) + func (gu *GroupUpdate) SaveX(ctx context.Context) int + func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate + type GroupUpdateOne struct + func (guo *GroupUpdateOne) AddUserIDs(ids ...int) *GroupUpdateOne + func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne + func (guo *GroupUpdateOne) ClearUsers() *GroupUpdateOne + func (guo *GroupUpdateOne) Exec(ctx context.Context) error + func (guo *GroupUpdateOne) ExecX(ctx context.Context) + func (guo *GroupUpdateOne) Mutation() *GroupMutation + func (guo *GroupUpdateOne) RemoveUserIDs(ids ...int) *GroupUpdateOne + func (guo *GroupUpdateOne) RemoveUsers(u ...*User) *GroupUpdateOne + func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error) + func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group + type Groups []*Group + type Hook = ent.Hook + type MixinID struct + ID uuid.UUID + MixinField string + SomeField string + func (mi *MixinID) String() string + func (mi *MixinID) Unwrap() *MixinID + func (mi *MixinID) Update() *MixinIDUpdateOne + type MixinIDClient struct + func NewMixinIDClient(c config) *MixinIDClient + func (c *MixinIDClient) Create() *MixinIDCreate + func (c *MixinIDClient) CreateBulk(builders ...*MixinIDCreate) *MixinIDCreateBulk + func (c *MixinIDClient) Delete() *MixinIDDelete + func (c *MixinIDClient) DeleteOne(mi *MixinID) *MixinIDDeleteOne + func (c *MixinIDClient) DeleteOneID(id uuid.UUID) *MixinIDDeleteOne + func (c *MixinIDClient) Get(ctx context.Context, id uuid.UUID) (*MixinID, error) + func (c *MixinIDClient) GetX(ctx context.Context, id uuid.UUID) *MixinID + func (c *MixinIDClient) Hooks() []Hook + func (c *MixinIDClient) Query() *MixinIDQuery + func (c *MixinIDClient) Update() *MixinIDUpdate + func (c *MixinIDClient) UpdateOne(mi *MixinID) *MixinIDUpdateOne + func (c *MixinIDClient) UpdateOneID(id uuid.UUID) *MixinIDUpdateOne + func (c *MixinIDClient) Use(hooks ...Hook) + type MixinIDCreate struct + func (mic *MixinIDCreate) Mutation() *MixinIDMutation + func (mic *MixinIDCreate) Save(ctx context.Context) (*MixinID, error) + func (mic *MixinIDCreate) SaveX(ctx context.Context) *MixinID + func (mic *MixinIDCreate) SetID(u uuid.UUID) *MixinIDCreate + func (mic *MixinIDCreate) SetMixinField(s string) *MixinIDCreate + func (mic *MixinIDCreate) SetSomeField(s string) *MixinIDCreate + type MixinIDCreateBulk struct + func (micb *MixinIDCreateBulk) Save(ctx context.Context) ([]*MixinID, error) + func (micb *MixinIDCreateBulk) SaveX(ctx context.Context) []*MixinID + type MixinIDDelete struct + func (mid *MixinIDDelete) Exec(ctx context.Context) (int, error) + func (mid *MixinIDDelete) ExecX(ctx context.Context) int + func (mid *MixinIDDelete) Where(ps ...predicate.MixinID) *MixinIDDelete + type MixinIDDeleteOne struct + func (mido *MixinIDDeleteOne) Exec(ctx context.Context) error + func (mido *MixinIDDeleteOne) ExecX(ctx context.Context) + type MixinIDGroupBy struct + func (migb *MixinIDGroupBy) Aggregate(fns ...AggregateFunc) *MixinIDGroupBy + func (migb *MixinIDGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (migb *MixinIDGroupBy) BoolX(ctx context.Context) bool + func (migb *MixinIDGroupBy) Bools(ctx context.Context) ([]bool, error) + func (migb *MixinIDGroupBy) BoolsX(ctx context.Context) []bool + func (migb *MixinIDGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (migb *MixinIDGroupBy) Float64X(ctx context.Context) float64 + func (migb *MixinIDGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (migb *MixinIDGroupBy) Float64sX(ctx context.Context) []float64 + func (migb *MixinIDGroupBy) Int(ctx context.Context) (_ int, err error) + func (migb *MixinIDGroupBy) IntX(ctx context.Context) int + func (migb *MixinIDGroupBy) Ints(ctx context.Context) ([]int, error) + func (migb *MixinIDGroupBy) IntsX(ctx context.Context) []int + func (migb *MixinIDGroupBy) Scan(ctx context.Context, v interface{}) error + func (migb *MixinIDGroupBy) ScanX(ctx context.Context, v interface{}) + func (migb *MixinIDGroupBy) String(ctx context.Context) (_ string, err error) + func (migb *MixinIDGroupBy) StringX(ctx context.Context) string + func (migb *MixinIDGroupBy) Strings(ctx context.Context) ([]string, error) + func (migb *MixinIDGroupBy) StringsX(ctx context.Context) []string + type MixinIDMutation struct + func (m *MixinIDMutation) AddField(name string, value ent.Value) error + func (m *MixinIDMutation) AddedEdges() []string + func (m *MixinIDMutation) AddedField(name string) (ent.Value, bool) + func (m *MixinIDMutation) AddedFields() []string + func (m *MixinIDMutation) AddedIDs(name string) []ent.Value + func (m *MixinIDMutation) ClearEdge(name string) error + func (m *MixinIDMutation) ClearField(name string) error + func (m *MixinIDMutation) ClearedEdges() []string + func (m *MixinIDMutation) ClearedFields() []string + func (m *MixinIDMutation) EdgeCleared(name string) bool + func (m *MixinIDMutation) Field(name string) (ent.Value, bool) + func (m *MixinIDMutation) FieldCleared(name string) bool + func (m *MixinIDMutation) Fields() []string + func (m *MixinIDMutation) ID() (id uuid.UUID, exists bool) + func (m *MixinIDMutation) MixinField() (r string, exists bool) + func (m *MixinIDMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *MixinIDMutation) OldMixinField(ctx context.Context) (v string, err error) + func (m *MixinIDMutation) OldSomeField(ctx context.Context) (v string, err error) + func (m *MixinIDMutation) Op() Op + func (m *MixinIDMutation) RemovedEdges() []string + func (m *MixinIDMutation) RemovedIDs(name string) []ent.Value + func (m *MixinIDMutation) ResetEdge(name string) error + func (m *MixinIDMutation) ResetField(name string) error + func (m *MixinIDMutation) ResetMixinField() + func (m *MixinIDMutation) ResetSomeField() + func (m *MixinIDMutation) SetField(name string, value ent.Value) error + func (m *MixinIDMutation) SetID(id uuid.UUID) + func (m *MixinIDMutation) SetMixinField(s string) + func (m *MixinIDMutation) SetSomeField(s string) + func (m *MixinIDMutation) SomeField() (r string, exists bool) + func (m *MixinIDMutation) Type() string + func (m MixinIDMutation) Client() *Client + func (m MixinIDMutation) Tx() (*Tx, error) + type MixinIDQuery struct + func (miq *MixinIDQuery) All(ctx context.Context) ([]*MixinID, error) + func (miq *MixinIDQuery) AllX(ctx context.Context) []*MixinID + func (miq *MixinIDQuery) Clone() *MixinIDQuery + func (miq *MixinIDQuery) Count(ctx context.Context) (int, error) + func (miq *MixinIDQuery) CountX(ctx context.Context) int + func (miq *MixinIDQuery) Exist(ctx context.Context) (bool, error) + func (miq *MixinIDQuery) ExistX(ctx context.Context) bool + func (miq *MixinIDQuery) First(ctx context.Context) (*MixinID, error) + func (miq *MixinIDQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (miq *MixinIDQuery) FirstIDX(ctx context.Context) uuid.UUID + func (miq *MixinIDQuery) FirstX(ctx context.Context) *MixinID + func (miq *MixinIDQuery) GroupBy(field string, fields ...string) *MixinIDGroupBy + func (miq *MixinIDQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (miq *MixinIDQuery) IDsX(ctx context.Context) []uuid.UUID + func (miq *MixinIDQuery) Limit(limit int) *MixinIDQuery + func (miq *MixinIDQuery) Offset(offset int) *MixinIDQuery + func (miq *MixinIDQuery) Only(ctx context.Context) (*MixinID, error) + func (miq *MixinIDQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (miq *MixinIDQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (miq *MixinIDQuery) OnlyX(ctx context.Context) *MixinID + func (miq *MixinIDQuery) Order(o ...OrderFunc) *MixinIDQuery + func (miq *MixinIDQuery) Select(field string, fields ...string) *MixinIDSelect + func (miq *MixinIDQuery) Where(ps ...predicate.MixinID) *MixinIDQuery + type MixinIDSelect struct + func (mis *MixinIDSelect) Bool(ctx context.Context) (_ bool, err error) + func (mis *MixinIDSelect) BoolX(ctx context.Context) bool + func (mis *MixinIDSelect) Bools(ctx context.Context) ([]bool, error) + func (mis *MixinIDSelect) BoolsX(ctx context.Context) []bool + func (mis *MixinIDSelect) Float64(ctx context.Context) (_ float64, err error) + func (mis *MixinIDSelect) Float64X(ctx context.Context) float64 + func (mis *MixinIDSelect) Float64s(ctx context.Context) ([]float64, error) + func (mis *MixinIDSelect) Float64sX(ctx context.Context) []float64 + func (mis *MixinIDSelect) Int(ctx context.Context) (_ int, err error) + func (mis *MixinIDSelect) IntX(ctx context.Context) int + func (mis *MixinIDSelect) Ints(ctx context.Context) ([]int, error) + func (mis *MixinIDSelect) IntsX(ctx context.Context) []int + func (mis *MixinIDSelect) Scan(ctx context.Context, v interface{}) error + func (mis *MixinIDSelect) ScanX(ctx context.Context, v interface{}) + func (mis *MixinIDSelect) String(ctx context.Context) (_ string, err error) + func (mis *MixinIDSelect) StringX(ctx context.Context) string + func (mis *MixinIDSelect) Strings(ctx context.Context) ([]string, error) + func (mis *MixinIDSelect) StringsX(ctx context.Context) []string + type MixinIDUpdate struct + func (miu *MixinIDUpdate) Exec(ctx context.Context) error + func (miu *MixinIDUpdate) ExecX(ctx context.Context) + func (miu *MixinIDUpdate) Mutation() *MixinIDMutation + func (miu *MixinIDUpdate) Save(ctx context.Context) (int, error) + func (miu *MixinIDUpdate) SaveX(ctx context.Context) int + func (miu *MixinIDUpdate) SetMixinField(s string) *MixinIDUpdate + func (miu *MixinIDUpdate) SetSomeField(s string) *MixinIDUpdate + func (miu *MixinIDUpdate) Where(ps ...predicate.MixinID) *MixinIDUpdate + type MixinIDUpdateOne struct + func (miuo *MixinIDUpdateOne) Exec(ctx context.Context) error + func (miuo *MixinIDUpdateOne) ExecX(ctx context.Context) + func (miuo *MixinIDUpdateOne) Mutation() *MixinIDMutation + func (miuo *MixinIDUpdateOne) Save(ctx context.Context) (*MixinID, error) + func (miuo *MixinIDUpdateOne) SaveX(ctx context.Context) *MixinID + func (miuo *MixinIDUpdateOne) SetMixinField(s string) *MixinIDUpdateOne + func (miuo *MixinIDUpdateOne) SetSomeField(s string) *MixinIDUpdateOne + type MixinIDs []*MixinID + 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(string) bool) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Pet struct + Edges PetEdges + ID string + func (pe *Pet) QueryBestFriend() *PetQuery + func (pe *Pet) QueryCars() *CarQuery + func (pe *Pet) QueryFriends() *PetQuery + func (pe *Pet) QueryOwner() *UserQuery + func (pe *Pet) String() string + func (pe *Pet) Unwrap() *Pet + func (pe *Pet) Update() *PetUpdateOne + type PetClient struct + func NewPetClient(c config) *PetClient + func (c *PetClient) Create() *PetCreate + func (c *PetClient) CreateBulk(builders ...*PetCreate) *PetCreateBulk + func (c *PetClient) Delete() *PetDelete + func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne + func (c *PetClient) DeleteOneID(id string) *PetDeleteOne + func (c *PetClient) Get(ctx context.Context, id string) (*Pet, error) + func (c *PetClient) GetX(ctx context.Context, id string) *Pet + func (c *PetClient) Hooks() []Hook + func (c *PetClient) Query() *PetQuery + func (c *PetClient) QueryBestFriend(pe *Pet) *PetQuery + func (c *PetClient) QueryCars(pe *Pet) *CarQuery + func (c *PetClient) QueryFriends(pe *Pet) *PetQuery + func (c *PetClient) QueryOwner(pe *Pet) *UserQuery + func (c *PetClient) Update() *PetUpdate + func (c *PetClient) UpdateOne(pe *Pet) *PetUpdateOne + func (c *PetClient) UpdateOneID(id string) *PetUpdateOne + func (c *PetClient) Use(hooks ...Hook) + type PetCreate struct + func (pc *PetCreate) AddCarIDs(ids ...int) *PetCreate + func (pc *PetCreate) AddCars(c ...*Car) *PetCreate + func (pc *PetCreate) AddFriendIDs(ids ...string) *PetCreate + func (pc *PetCreate) AddFriends(p ...*Pet) *PetCreate + func (pc *PetCreate) Mutation() *PetMutation + func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) + func (pc *PetCreate) SaveX(ctx context.Context) *Pet + func (pc *PetCreate) SetBestFriend(p *Pet) *PetCreate + func (pc *PetCreate) SetBestFriendID(id string) *PetCreate + func (pc *PetCreate) SetID(s string) *PetCreate + func (pc *PetCreate) SetNillableBestFriendID(id *string) *PetCreate + func (pc *PetCreate) SetNillableOwnerID(id *int) *PetCreate + func (pc *PetCreate) SetOwner(u *User) *PetCreate + func (pc *PetCreate) SetOwnerID(id int) *PetCreate + type PetCreateBulk struct + func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) + func (pcb *PetCreateBulk) SaveX(ctx context.Context) []*Pet + type PetDelete struct + func (pd *PetDelete) Exec(ctx context.Context) (int, error) + func (pd *PetDelete) ExecX(ctx context.Context) int + func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete + type PetDeleteOne struct + func (pdo *PetDeleteOne) Exec(ctx context.Context) error + func (pdo *PetDeleteOne) ExecX(ctx context.Context) + type PetEdges struct + BestFriend *Pet + Cars []*Car + Friends []*Pet + Owner *User + func (e PetEdges) BestFriendOrErr() (*Pet, error) + func (e PetEdges) CarsOrErr() ([]*Car, error) + func (e PetEdges) FriendsOrErr() ([]*Pet, error) + func (e PetEdges) OwnerOrErr() (*User, error) + type PetGroupBy struct + func (pgb *PetGroupBy) Aggregate(fns ...AggregateFunc) *PetGroupBy + func (pgb *PetGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (pgb *PetGroupBy) BoolX(ctx context.Context) bool + func (pgb *PetGroupBy) Bools(ctx context.Context) ([]bool, error) + func (pgb *PetGroupBy) BoolsX(ctx context.Context) []bool + func (pgb *PetGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (pgb *PetGroupBy) Float64X(ctx context.Context) float64 + func (pgb *PetGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (pgb *PetGroupBy) Float64sX(ctx context.Context) []float64 + func (pgb *PetGroupBy) Int(ctx context.Context) (_ int, err error) + func (pgb *PetGroupBy) IntX(ctx context.Context) int + func (pgb *PetGroupBy) Ints(ctx context.Context) ([]int, error) + func (pgb *PetGroupBy) IntsX(ctx context.Context) []int + func (pgb *PetGroupBy) Scan(ctx context.Context, v interface{}) error + func (pgb *PetGroupBy) ScanX(ctx context.Context, v interface{}) + func (pgb *PetGroupBy) String(ctx context.Context) (_ string, err error) + func (pgb *PetGroupBy) StringX(ctx context.Context) string + func (pgb *PetGroupBy) Strings(ctx context.Context) ([]string, error) + func (pgb *PetGroupBy) StringsX(ctx context.Context) []string + type PetMutation struct + func (m *PetMutation) AddCarIDs(ids ...int) + func (m *PetMutation) AddField(name string, value ent.Value) error + func (m *PetMutation) AddFriendIDs(ids ...string) + func (m *PetMutation) AddedEdges() []string + func (m *PetMutation) AddedField(name string) (ent.Value, bool) + func (m *PetMutation) AddedFields() []string + func (m *PetMutation) AddedIDs(name string) []ent.Value + func (m *PetMutation) BestFriendCleared() bool + func (m *PetMutation) BestFriendID() (id string, exists bool) + func (m *PetMutation) BestFriendIDs() (ids []string) + func (m *PetMutation) CarsCleared() bool + func (m *PetMutation) CarsIDs() (ids []int) + func (m *PetMutation) ClearBestFriend() + func (m *PetMutation) ClearCars() + func (m *PetMutation) ClearEdge(name string) error + func (m *PetMutation) ClearField(name string) error + func (m *PetMutation) ClearFriends() + func (m *PetMutation) ClearOwner() + func (m *PetMutation) ClearedEdges() []string + func (m *PetMutation) ClearedFields() []string + func (m *PetMutation) EdgeCleared(name string) bool + func (m *PetMutation) Field(name string) (ent.Value, bool) + func (m *PetMutation) FieldCleared(name string) bool + func (m *PetMutation) Fields() []string + func (m *PetMutation) FriendsCleared() bool + func (m *PetMutation) FriendsIDs() (ids []string) + func (m *PetMutation) ID() (id string, exists bool) + func (m *PetMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PetMutation) Op() Op + func (m *PetMutation) OwnerCleared() bool + func (m *PetMutation) OwnerID() (id int, exists bool) + func (m *PetMutation) OwnerIDs() (ids []int) + func (m *PetMutation) RemoveCarIDs(ids ...int) + func (m *PetMutation) RemoveFriendIDs(ids ...string) + func (m *PetMutation) RemovedCarsIDs() (ids []int) + func (m *PetMutation) RemovedEdges() []string + func (m *PetMutation) RemovedFriendsIDs() (ids []string) + func (m *PetMutation) RemovedIDs(name string) []ent.Value + func (m *PetMutation) ResetBestFriend() + func (m *PetMutation) ResetCars() + func (m *PetMutation) ResetEdge(name string) error + func (m *PetMutation) ResetField(name string) error + func (m *PetMutation) ResetFriends() + func (m *PetMutation) ResetOwner() + func (m *PetMutation) SetBestFriendID(id string) + func (m *PetMutation) SetField(name string, value ent.Value) error + func (m *PetMutation) SetID(id string) + func (m *PetMutation) SetOwnerID(id int) + func (m *PetMutation) Type() string + func (m PetMutation) Client() *Client + func (m PetMutation) Tx() (*Tx, error) + type PetQuery struct + func (pq *PetQuery) All(ctx context.Context) ([]*Pet, error) + func (pq *PetQuery) AllX(ctx context.Context) []*Pet + func (pq *PetQuery) Clone() *PetQuery + func (pq *PetQuery) Count(ctx context.Context) (int, error) + func (pq *PetQuery) CountX(ctx context.Context) int + func (pq *PetQuery) Exist(ctx context.Context) (bool, error) + func (pq *PetQuery) ExistX(ctx context.Context) bool + func (pq *PetQuery) First(ctx context.Context) (*Pet, error) + func (pq *PetQuery) FirstID(ctx context.Context) (id string, err error) + func (pq *PetQuery) FirstIDX(ctx context.Context) string + func (pq *PetQuery) FirstX(ctx context.Context) *Pet + func (pq *PetQuery) GroupBy(field string, fields ...string) *PetGroupBy + func (pq *PetQuery) IDs(ctx context.Context) ([]string, error) + func (pq *PetQuery) IDsX(ctx context.Context) []string + func (pq *PetQuery) Limit(limit int) *PetQuery + func (pq *PetQuery) Offset(offset int) *PetQuery + func (pq *PetQuery) Only(ctx context.Context) (*Pet, error) + func (pq *PetQuery) OnlyID(ctx context.Context) (id string, err error) + func (pq *PetQuery) OnlyIDX(ctx context.Context) string + func (pq *PetQuery) OnlyX(ctx context.Context) *Pet + func (pq *PetQuery) Order(o ...OrderFunc) *PetQuery + func (pq *PetQuery) QueryBestFriend() *PetQuery + func (pq *PetQuery) QueryCars() *CarQuery + func (pq *PetQuery) QueryFriends() *PetQuery + func (pq *PetQuery) QueryOwner() *UserQuery + func (pq *PetQuery) Select(field string, fields ...string) *PetSelect + func (pq *PetQuery) Where(ps ...predicate.Pet) *PetQuery + func (pq *PetQuery) WithBestFriend(opts ...func(*PetQuery)) *PetQuery + func (pq *PetQuery) WithCars(opts ...func(*CarQuery)) *PetQuery + func (pq *PetQuery) WithFriends(opts ...func(*PetQuery)) *PetQuery + func (pq *PetQuery) WithOwner(opts ...func(*UserQuery)) *PetQuery + type PetSelect struct + func (ps *PetSelect) Bool(ctx context.Context) (_ bool, err error) + func (ps *PetSelect) BoolX(ctx context.Context) bool + func (ps *PetSelect) Bools(ctx context.Context) ([]bool, error) + func (ps *PetSelect) BoolsX(ctx context.Context) []bool + func (ps *PetSelect) Float64(ctx context.Context) (_ float64, err error) + func (ps *PetSelect) Float64X(ctx context.Context) float64 + func (ps *PetSelect) Float64s(ctx context.Context) ([]float64, error) + func (ps *PetSelect) Float64sX(ctx context.Context) []float64 + func (ps *PetSelect) Int(ctx context.Context) (_ int, err error) + func (ps *PetSelect) IntX(ctx context.Context) int + func (ps *PetSelect) Ints(ctx context.Context) ([]int, error) + func (ps *PetSelect) IntsX(ctx context.Context) []int + func (ps *PetSelect) Scan(ctx context.Context, v interface{}) error + func (ps *PetSelect) ScanX(ctx context.Context, v interface{}) + func (ps *PetSelect) String(ctx context.Context) (_ string, err error) + func (ps *PetSelect) StringX(ctx context.Context) string + func (ps *PetSelect) Strings(ctx context.Context) ([]string, error) + func (ps *PetSelect) StringsX(ctx context.Context) []string + type PetUpdate struct + func (pu *PetUpdate) AddCarIDs(ids ...int) *PetUpdate + func (pu *PetUpdate) AddCars(c ...*Car) *PetUpdate + func (pu *PetUpdate) AddFriendIDs(ids ...string) *PetUpdate + func (pu *PetUpdate) AddFriends(p ...*Pet) *PetUpdate + func (pu *PetUpdate) ClearBestFriend() *PetUpdate + func (pu *PetUpdate) ClearCars() *PetUpdate + func (pu *PetUpdate) ClearFriends() *PetUpdate + func (pu *PetUpdate) ClearOwner() *PetUpdate + func (pu *PetUpdate) Exec(ctx context.Context) error + func (pu *PetUpdate) ExecX(ctx context.Context) + func (pu *PetUpdate) Mutation() *PetMutation + func (pu *PetUpdate) RemoveCarIDs(ids ...int) *PetUpdate + func (pu *PetUpdate) RemoveCars(c ...*Car) *PetUpdate + func (pu *PetUpdate) RemoveFriendIDs(ids ...string) *PetUpdate + func (pu *PetUpdate) RemoveFriends(p ...*Pet) *PetUpdate + func (pu *PetUpdate) Save(ctx context.Context) (int, error) + func (pu *PetUpdate) SaveX(ctx context.Context) int + func (pu *PetUpdate) SetBestFriend(p *Pet) *PetUpdate + func (pu *PetUpdate) SetBestFriendID(id string) *PetUpdate + func (pu *PetUpdate) SetNillableBestFriendID(id *string) *PetUpdate + func (pu *PetUpdate) SetNillableOwnerID(id *int) *PetUpdate + func (pu *PetUpdate) SetOwner(u *User) *PetUpdate + func (pu *PetUpdate) SetOwnerID(id int) *PetUpdate + func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate + type PetUpdateOne struct + func (puo *PetUpdateOne) AddCarIDs(ids ...int) *PetUpdateOne + func (puo *PetUpdateOne) AddCars(c ...*Car) *PetUpdateOne + func (puo *PetUpdateOne) AddFriendIDs(ids ...string) *PetUpdateOne + func (puo *PetUpdateOne) AddFriends(p ...*Pet) *PetUpdateOne + func (puo *PetUpdateOne) ClearBestFriend() *PetUpdateOne + func (puo *PetUpdateOne) ClearCars() *PetUpdateOne + func (puo *PetUpdateOne) ClearFriends() *PetUpdateOne + func (puo *PetUpdateOne) ClearOwner() *PetUpdateOne + func (puo *PetUpdateOne) Exec(ctx context.Context) error + func (puo *PetUpdateOne) ExecX(ctx context.Context) + func (puo *PetUpdateOne) Mutation() *PetMutation + func (puo *PetUpdateOne) RemoveCarIDs(ids ...int) *PetUpdateOne + func (puo *PetUpdateOne) RemoveCars(c ...*Car) *PetUpdateOne + func (puo *PetUpdateOne) RemoveFriendIDs(ids ...string) *PetUpdateOne + func (puo *PetUpdateOne) RemoveFriends(p ...*Pet) *PetUpdateOne + func (puo *PetUpdateOne) Save(ctx context.Context) (*Pet, error) + func (puo *PetUpdateOne) SaveX(ctx context.Context) *Pet + func (puo *PetUpdateOne) SetBestFriend(p *Pet) *PetUpdateOne + func (puo *PetUpdateOne) SetBestFriendID(id string) *PetUpdateOne + func (puo *PetUpdateOne) SetNillableBestFriendID(id *string) *PetUpdateOne + func (puo *PetUpdateOne) SetNillableOwnerID(id *int) *PetUpdateOne + func (puo *PetUpdateOne) SetOwner(u *User) *PetUpdateOne + func (puo *PetUpdateOne) SetOwnerID(id int) *PetUpdateOne + type Pets []*Pet + 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 + Blob *BlobClient + Car *CarClient + Group *GroupClient + MixinID *MixinIDClient + Pet *PetClient + 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 + Edges UserEdges + ID int + func (u *User) QueryChildren() *UserQuery + func (u *User) QueryGroups() *GroupQuery + func (u *User) QueryParent() *UserQuery + func (u *User) QueryPets() *PetQuery + 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) QueryChildren(u *User) *UserQuery + func (c *UserClient) QueryGroups(u *User) *GroupQuery + func (c *UserClient) QueryParent(u *User) *UserQuery + func (c *UserClient) QueryPets(u *User) *PetQuery + 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) AddGroupIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate + func (uc *UserCreate) AddPetIDs(ids ...string) *UserCreate + func (uc *UserCreate) AddPets(p ...*Pet) *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) SetID(i int) *UserCreate + func (uc *UserCreate) SetNillableParentID(id *int) *UserCreate + func (uc *UserCreate) SetParent(u *User) *UserCreate + func (uc *UserCreate) SetParentID(id int) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + type UserEdges struct + Children []*User + Groups []*Group + Parent *User + Pets []*Pet + func (e UserEdges) ChildrenOrErr() ([]*User, error) + func (e UserEdges) GroupsOrErr() ([]*Group, error) + func (e UserEdges) ParentOrErr() (*User, error) + func (e UserEdges) PetsOrErr() ([]*Pet, 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) AddChildIDs(ids ...int) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddGroupIDs(ids ...int) + func (m *UserMutation) AddPetIDs(ids ...string) + 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) ChildrenCleared() bool + func (m *UserMutation) ChildrenIDs() (ids []int) + func (m *UserMutation) ClearChildren() + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearGroups() + func (m *UserMutation) ClearParent() + func (m *UserMutation) ClearPets() + 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) GroupsCleared() bool + func (m *UserMutation) GroupsIDs() (ids []int) + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, 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) PetsCleared() bool + func (m *UserMutation) PetsIDs() (ids []string) + func (m *UserMutation) RemoveChildIDs(ids ...int) + func (m *UserMutation) RemoveGroupIDs(ids ...int) + func (m *UserMutation) RemovePetIDs(ids ...string) + func (m *UserMutation) RemovedChildrenIDs() (ids []int) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedGroupsIDs() (ids []int) + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) RemovedPetsIDs() (ids []string) + func (m *UserMutation) ResetChildren() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetGroups() + func (m *UserMutation) ResetParent() + func (m *UserMutation) ResetPets() + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetID(id int) + func (m *UserMutation) SetParentID(id int) + 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) 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) QueryChildren() *UserQuery + func (uq *UserQuery) QueryGroups() *GroupQuery + func (uq *UserQuery) QueryParent() *UserQuery + func (uq *UserQuery) QueryPets() *PetQuery + func (uq *UserQuery) Select(field string, fields ...string) *UserSelect + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithChildren(opts ...func(*UserQuery)) *UserQuery + func (uq *UserQuery) WithGroups(opts ...func(*GroupQuery)) *UserQuery + func (uq *UserQuery) WithParent(opts ...func(*UserQuery)) *UserQuery + func (uq *UserQuery) WithPets(opts ...func(*PetQuery)) *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) AddChildIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddChildren(u ...*User) *UserUpdate + func (uu *UserUpdate) AddGroupIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate + func (uu *UserUpdate) AddPetIDs(ids ...string) *UserUpdate + func (uu *UserUpdate) AddPets(p ...*Pet) *UserUpdate + func (uu *UserUpdate) ClearChildren() *UserUpdate + func (uu *UserUpdate) ClearGroups() *UserUpdate + func (uu *UserUpdate) ClearParent() *UserUpdate + func (uu *UserUpdate) ClearPets() *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) RemoveGroupIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveGroups(g ...*Group) *UserUpdate + func (uu *UserUpdate) RemovePetIDs(ids ...string) *UserUpdate + func (uu *UserUpdate) RemovePets(p ...*Pet) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetNillableParentID(id *int) *UserUpdate + func (uu *UserUpdate) SetParent(u *User) *UserUpdate + func (uu *UserUpdate) SetParentID(id int) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddChildIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddChildren(u ...*User) *UserUpdateOne + func (uuo *UserUpdateOne) AddGroupIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne + func (uuo *UserUpdateOne) AddPetIDs(ids ...string) *UserUpdateOne + func (uuo *UserUpdateOne) AddPets(p ...*Pet) *UserUpdateOne + func (uuo *UserUpdateOne) ClearChildren() *UserUpdateOne + func (uuo *UserUpdateOne) ClearGroups() *UserUpdateOne + func (uuo *UserUpdateOne) ClearParent() *UserUpdateOne + func (uuo *UserUpdateOne) ClearPets() *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) RemoveGroupIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveGroups(g ...*Group) *UserUpdateOne + func (uuo *UserUpdateOne) RemovePetIDs(ids ...string) *UserUpdateOne + func (uuo *UserUpdateOne) RemovePets(p ...*Pet) *UserUpdateOne + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) SetNillableParentID(id *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetParent(u *User) *UserUpdateOne + func (uuo *UserUpdateOne) SetParentID(id int) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value