Versions in this module Expand all Collapse all v0 v0.5.2 Oct 27, 2021 v0.5.1 Oct 17, 2021 v0.5.0 Oct 15, 2021 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCategory + const TypeCollar + const TypeOwner + const TypePet + 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 Categories []*Category + type Category struct + Edges CategoryEdges + ID uint64 + Name string + func (c *Category) QueryPets() *PetQuery + func (c *Category) String() string + func (c *Category) Unwrap() *Category + func (c *Category) Update() *CategoryUpdateOne + type CategoryClient struct + func NewCategoryClient(c config) *CategoryClient + func (c *CategoryClient) Create() *CategoryCreate + func (c *CategoryClient) CreateBulk(builders ...*CategoryCreate) *CategoryCreateBulk + func (c *CategoryClient) Delete() *CategoryDelete + func (c *CategoryClient) DeleteOne(ca *Category) *CategoryDeleteOne + func (c *CategoryClient) DeleteOneID(id uint64) *CategoryDeleteOne + func (c *CategoryClient) Get(ctx context.Context, id uint64) (*Category, error) + func (c *CategoryClient) GetX(ctx context.Context, id uint64) *Category + func (c *CategoryClient) Hooks() []Hook + func (c *CategoryClient) Query() *CategoryQuery + func (c *CategoryClient) QueryPets(ca *Category) *PetQuery + func (c *CategoryClient) Update() *CategoryUpdate + func (c *CategoryClient) UpdateOne(ca *Category) *CategoryUpdateOne + func (c *CategoryClient) UpdateOneID(id uint64) *CategoryUpdateOne + func (c *CategoryClient) Use(hooks ...Hook) + type CategoryCreate struct + func (cc *CategoryCreate) AddPetIDs(ids ...string) *CategoryCreate + func (cc *CategoryCreate) AddPets(p ...*Pet) *CategoryCreate + func (cc *CategoryCreate) Exec(ctx context.Context) error + func (cc *CategoryCreate) ExecX(ctx context.Context) + func (cc *CategoryCreate) Mutation() *CategoryMutation + func (cc *CategoryCreate) Save(ctx context.Context) (*Category, error) + func (cc *CategoryCreate) SaveX(ctx context.Context) *Category + func (cc *CategoryCreate) SetID(u uint64) *CategoryCreate + func (cc *CategoryCreate) SetName(s string) *CategoryCreate + type CategoryCreateBulk struct + func (ccb *CategoryCreateBulk) Exec(ctx context.Context) error + func (ccb *CategoryCreateBulk) ExecX(ctx context.Context) + func (ccb *CategoryCreateBulk) Save(ctx context.Context) ([]*Category, error) + func (ccb *CategoryCreateBulk) SaveX(ctx context.Context) []*Category + type CategoryDelete struct + func (cd *CategoryDelete) Exec(ctx context.Context) (int, error) + func (cd *CategoryDelete) ExecX(ctx context.Context) int + func (cd *CategoryDelete) Where(ps ...predicate.Category) *CategoryDelete + type CategoryDeleteOne struct + func (cdo *CategoryDeleteOne) Exec(ctx context.Context) error + func (cdo *CategoryDeleteOne) ExecX(ctx context.Context) + type CategoryEdges struct + Pets []*Pet + func (e CategoryEdges) PetsOrErr() ([]*Pet, error) + type CategoryGroupBy struct + func (cgb *CategoryGroupBy) Aggregate(fns ...AggregateFunc) *CategoryGroupBy + func (cgb *CategoryGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *CategoryGroupBy) BoolX(ctx context.Context) bool + func (cgb *CategoryGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *CategoryGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *CategoryGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *CategoryGroupBy) Float64X(ctx context.Context) float64 + func (cgb *CategoryGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *CategoryGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *CategoryGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *CategoryGroupBy) IntX(ctx context.Context) int + func (cgb *CategoryGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *CategoryGroupBy) IntsX(ctx context.Context) []int + func (cgb *CategoryGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *CategoryGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *CategoryGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *CategoryGroupBy) StringX(ctx context.Context) string + func (cgb *CategoryGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *CategoryGroupBy) StringsX(ctx context.Context) []string + type CategoryMutation struct + func (m *CategoryMutation) AddField(name string, value ent.Value) error + func (m *CategoryMutation) AddPetIDs(ids ...string) + func (m *CategoryMutation) AddedEdges() []string + func (m *CategoryMutation) AddedField(name string) (ent.Value, bool) + func (m *CategoryMutation) AddedFields() []string + func (m *CategoryMutation) AddedIDs(name string) []ent.Value + func (m *CategoryMutation) ClearEdge(name string) error + func (m *CategoryMutation) ClearField(name string) error + func (m *CategoryMutation) ClearPets() + func (m *CategoryMutation) ClearedEdges() []string + func (m *CategoryMutation) ClearedFields() []string + func (m *CategoryMutation) EdgeCleared(name string) bool + func (m *CategoryMutation) Field(name string) (ent.Value, bool) + func (m *CategoryMutation) FieldCleared(name string) bool + func (m *CategoryMutation) Fields() []string + func (m *CategoryMutation) ID() (id uint64, exists bool) + func (m *CategoryMutation) Name() (r string, exists bool) + func (m *CategoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CategoryMutation) OldName(ctx context.Context) (v string, err error) + func (m *CategoryMutation) Op() Op + func (m *CategoryMutation) PetsCleared() bool + func (m *CategoryMutation) PetsIDs() (ids []string) + func (m *CategoryMutation) RemovePetIDs(ids ...string) + func (m *CategoryMutation) RemovedEdges() []string + func (m *CategoryMutation) RemovedIDs(name string) []ent.Value + func (m *CategoryMutation) RemovedPetsIDs() (ids []string) + func (m *CategoryMutation) ResetEdge(name string) error + func (m *CategoryMutation) ResetField(name string) error + func (m *CategoryMutation) ResetName() + func (m *CategoryMutation) ResetPets() + func (m *CategoryMutation) SetField(name string, value ent.Value) error + func (m *CategoryMutation) SetID(id uint64) + func (m *CategoryMutation) SetName(s string) + func (m *CategoryMutation) Type() string + func (m *CategoryMutation) Where(ps ...predicate.Category) + func (m CategoryMutation) Client() *Client + func (m CategoryMutation) Tx() (*Tx, error) + type CategoryQuery struct + func (cq *CategoryQuery) All(ctx context.Context) ([]*Category, error) + func (cq *CategoryQuery) AllX(ctx context.Context) []*Category + func (cq *CategoryQuery) Clone() *CategoryQuery + func (cq *CategoryQuery) Count(ctx context.Context) (int, error) + func (cq *CategoryQuery) CountX(ctx context.Context) int + func (cq *CategoryQuery) Exist(ctx context.Context) (bool, error) + func (cq *CategoryQuery) ExistX(ctx context.Context) bool + func (cq *CategoryQuery) First(ctx context.Context) (*Category, error) + func (cq *CategoryQuery) FirstID(ctx context.Context) (id uint64, err error) + func (cq *CategoryQuery) FirstIDX(ctx context.Context) uint64 + func (cq *CategoryQuery) FirstX(ctx context.Context) *Category + func (cq *CategoryQuery) GroupBy(field string, fields ...string) *CategoryGroupBy + func (cq *CategoryQuery) IDs(ctx context.Context) ([]uint64, error) + func (cq *CategoryQuery) IDsX(ctx context.Context) []uint64 + func (cq *CategoryQuery) Limit(limit int) *CategoryQuery + func (cq *CategoryQuery) Offset(offset int) *CategoryQuery + func (cq *CategoryQuery) Only(ctx context.Context) (*Category, error) + func (cq *CategoryQuery) OnlyID(ctx context.Context) (id uint64, err error) + func (cq *CategoryQuery) OnlyIDX(ctx context.Context) uint64 + func (cq *CategoryQuery) OnlyX(ctx context.Context) *Category + func (cq *CategoryQuery) Order(o ...OrderFunc) *CategoryQuery + func (cq *CategoryQuery) QueryPets() *PetQuery + func (cq *CategoryQuery) Select(fields ...string) *CategorySelect + func (cq *CategoryQuery) Unique(unique bool) *CategoryQuery + func (cq *CategoryQuery) Where(ps ...predicate.Category) *CategoryQuery + func (cq *CategoryQuery) WithPets(opts ...func(*PetQuery)) *CategoryQuery + type CategorySelect struct + func (cs *CategorySelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *CategorySelect) BoolX(ctx context.Context) bool + func (cs *CategorySelect) Bools(ctx context.Context) ([]bool, error) + func (cs *CategorySelect) BoolsX(ctx context.Context) []bool + func (cs *CategorySelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *CategorySelect) Float64X(ctx context.Context) float64 + func (cs *CategorySelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *CategorySelect) Float64sX(ctx context.Context) []float64 + func (cs *CategorySelect) Int(ctx context.Context) (_ int, err error) + func (cs *CategorySelect) IntX(ctx context.Context) int + func (cs *CategorySelect) Ints(ctx context.Context) ([]int, error) + func (cs *CategorySelect) IntsX(ctx context.Context) []int + func (cs *CategorySelect) Scan(ctx context.Context, v interface{}) error + func (cs *CategorySelect) ScanX(ctx context.Context, v interface{}) + func (cs *CategorySelect) String(ctx context.Context) (_ string, err error) + func (cs *CategorySelect) StringX(ctx context.Context) string + func (cs *CategorySelect) Strings(ctx context.Context) ([]string, error) + func (cs *CategorySelect) StringsX(ctx context.Context) []string + type CategoryUpdate struct + func (cu *CategoryUpdate) AddPetIDs(ids ...string) *CategoryUpdate + func (cu *CategoryUpdate) AddPets(p ...*Pet) *CategoryUpdate + func (cu *CategoryUpdate) ClearPets() *CategoryUpdate + func (cu *CategoryUpdate) Exec(ctx context.Context) error + func (cu *CategoryUpdate) ExecX(ctx context.Context) + func (cu *CategoryUpdate) Mutation() *CategoryMutation + func (cu *CategoryUpdate) RemovePetIDs(ids ...string) *CategoryUpdate + func (cu *CategoryUpdate) RemovePets(p ...*Pet) *CategoryUpdate + func (cu *CategoryUpdate) Save(ctx context.Context) (int, error) + func (cu *CategoryUpdate) SaveX(ctx context.Context) int + func (cu *CategoryUpdate) SetName(s string) *CategoryUpdate + func (cu *CategoryUpdate) Where(ps ...predicate.Category) *CategoryUpdate + type CategoryUpdateOne struct + func (cuo *CategoryUpdateOne) AddPetIDs(ids ...string) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) AddPets(p ...*Pet) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearPets() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) Exec(ctx context.Context) error + func (cuo *CategoryUpdateOne) ExecX(ctx context.Context) + func (cuo *CategoryUpdateOne) Mutation() *CategoryMutation + func (cuo *CategoryUpdateOne) RemovePetIDs(ids ...string) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) RemovePets(p ...*Pet) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) Save(ctx context.Context) (*Category, error) + func (cuo *CategoryUpdateOne) SaveX(ctx context.Context) *Category + func (cuo *CategoryUpdateOne) Select(field string, fields ...string) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetName(s string) *CategoryUpdateOne + type Client struct + Category *CategoryClient + Collar *CollarClient + Owner *OwnerClient + Pet *PetClient + Schema *migrate.Schema + 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 Collar struct + Color collar.Color + Edges CollarEdges + ID int + func (c *Collar) QueryPet() *PetQuery + func (c *Collar) String() string + func (c *Collar) Unwrap() *Collar + func (c *Collar) Update() *CollarUpdateOne + type CollarClient struct + func NewCollarClient(c config) *CollarClient + func (c *CollarClient) Create() *CollarCreate + func (c *CollarClient) CreateBulk(builders ...*CollarCreate) *CollarCreateBulk + func (c *CollarClient) Delete() *CollarDelete + func (c *CollarClient) DeleteOne(co *Collar) *CollarDeleteOne + func (c *CollarClient) DeleteOneID(id int) *CollarDeleteOne + func (c *CollarClient) Get(ctx context.Context, id int) (*Collar, error) + func (c *CollarClient) GetX(ctx context.Context, id int) *Collar + func (c *CollarClient) Hooks() []Hook + func (c *CollarClient) Query() *CollarQuery + func (c *CollarClient) QueryPet(co *Collar) *PetQuery + func (c *CollarClient) Update() *CollarUpdate + func (c *CollarClient) UpdateOne(co *Collar) *CollarUpdateOne + func (c *CollarClient) UpdateOneID(id int) *CollarUpdateOne + func (c *CollarClient) Use(hooks ...Hook) + type CollarCreate struct + func (cc *CollarCreate) Exec(ctx context.Context) error + func (cc *CollarCreate) ExecX(ctx context.Context) + func (cc *CollarCreate) Mutation() *CollarMutation + func (cc *CollarCreate) Save(ctx context.Context) (*Collar, error) + func (cc *CollarCreate) SaveX(ctx context.Context) *Collar + func (cc *CollarCreate) SetColor(c collar.Color) *CollarCreate + func (cc *CollarCreate) SetNillablePetID(id *string) *CollarCreate + func (cc *CollarCreate) SetPet(p *Pet) *CollarCreate + func (cc *CollarCreate) SetPetID(id string) *CollarCreate + type CollarCreateBulk struct + func (ccb *CollarCreateBulk) Exec(ctx context.Context) error + func (ccb *CollarCreateBulk) ExecX(ctx context.Context) + func (ccb *CollarCreateBulk) Save(ctx context.Context) ([]*Collar, error) + func (ccb *CollarCreateBulk) SaveX(ctx context.Context) []*Collar + type CollarDelete struct + func (cd *CollarDelete) Exec(ctx context.Context) (int, error) + func (cd *CollarDelete) ExecX(ctx context.Context) int + func (cd *CollarDelete) Where(ps ...predicate.Collar) *CollarDelete + type CollarDeleteOne struct + func (cdo *CollarDeleteOne) Exec(ctx context.Context) error + func (cdo *CollarDeleteOne) ExecX(ctx context.Context) + type CollarEdges struct + Pet *Pet + func (e CollarEdges) PetOrErr() (*Pet, error) + type CollarGroupBy struct + func (cgb *CollarGroupBy) Aggregate(fns ...AggregateFunc) *CollarGroupBy + func (cgb *CollarGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *CollarGroupBy) BoolX(ctx context.Context) bool + func (cgb *CollarGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *CollarGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *CollarGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *CollarGroupBy) Float64X(ctx context.Context) float64 + func (cgb *CollarGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *CollarGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *CollarGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *CollarGroupBy) IntX(ctx context.Context) int + func (cgb *CollarGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *CollarGroupBy) IntsX(ctx context.Context) []int + func (cgb *CollarGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *CollarGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *CollarGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *CollarGroupBy) StringX(ctx context.Context) string + func (cgb *CollarGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *CollarGroupBy) StringsX(ctx context.Context) []string + type CollarMutation struct + func (m *CollarMutation) AddField(name string, value ent.Value) error + func (m *CollarMutation) AddedEdges() []string + func (m *CollarMutation) AddedField(name string) (ent.Value, bool) + func (m *CollarMutation) AddedFields() []string + func (m *CollarMutation) AddedIDs(name string) []ent.Value + func (m *CollarMutation) ClearEdge(name string) error + func (m *CollarMutation) ClearField(name string) error + func (m *CollarMutation) ClearPet() + func (m *CollarMutation) ClearedEdges() []string + func (m *CollarMutation) ClearedFields() []string + func (m *CollarMutation) Color() (r collar.Color, exists bool) + func (m *CollarMutation) EdgeCleared(name string) bool + func (m *CollarMutation) Field(name string) (ent.Value, bool) + func (m *CollarMutation) FieldCleared(name string) bool + func (m *CollarMutation) Fields() []string + func (m *CollarMutation) ID() (id int, exists bool) + func (m *CollarMutation) OldColor(ctx context.Context) (v collar.Color, err error) + func (m *CollarMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CollarMutation) Op() Op + func (m *CollarMutation) PetCleared() bool + func (m *CollarMutation) PetID() (id string, exists bool) + func (m *CollarMutation) PetIDs() (ids []string) + func (m *CollarMutation) RemovedEdges() []string + func (m *CollarMutation) RemovedIDs(name string) []ent.Value + func (m *CollarMutation) ResetColor() + func (m *CollarMutation) ResetEdge(name string) error + func (m *CollarMutation) ResetField(name string) error + func (m *CollarMutation) ResetPet() + func (m *CollarMutation) SetColor(c collar.Color) + func (m *CollarMutation) SetField(name string, value ent.Value) error + func (m *CollarMutation) SetPetID(id string) + func (m *CollarMutation) Type() string + func (m *CollarMutation) Where(ps ...predicate.Collar) + func (m CollarMutation) Client() *Client + func (m CollarMutation) Tx() (*Tx, error) + type CollarQuery struct + func (cq *CollarQuery) All(ctx context.Context) ([]*Collar, error) + func (cq *CollarQuery) AllX(ctx context.Context) []*Collar + func (cq *CollarQuery) Clone() *CollarQuery + func (cq *CollarQuery) Count(ctx context.Context) (int, error) + func (cq *CollarQuery) CountX(ctx context.Context) int + func (cq *CollarQuery) Exist(ctx context.Context) (bool, error) + func (cq *CollarQuery) ExistX(ctx context.Context) bool + func (cq *CollarQuery) First(ctx context.Context) (*Collar, error) + func (cq *CollarQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CollarQuery) FirstIDX(ctx context.Context) int + func (cq *CollarQuery) FirstX(ctx context.Context) *Collar + func (cq *CollarQuery) GroupBy(field string, fields ...string) *CollarGroupBy + func (cq *CollarQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CollarQuery) IDsX(ctx context.Context) []int + func (cq *CollarQuery) Limit(limit int) *CollarQuery + func (cq *CollarQuery) Offset(offset int) *CollarQuery + func (cq *CollarQuery) Only(ctx context.Context) (*Collar, error) + func (cq *CollarQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CollarQuery) OnlyIDX(ctx context.Context) int + func (cq *CollarQuery) OnlyX(ctx context.Context) *Collar + func (cq *CollarQuery) Order(o ...OrderFunc) *CollarQuery + func (cq *CollarQuery) QueryPet() *PetQuery + func (cq *CollarQuery) Select(fields ...string) *CollarSelect + func (cq *CollarQuery) Unique(unique bool) *CollarQuery + func (cq *CollarQuery) Where(ps ...predicate.Collar) *CollarQuery + func (cq *CollarQuery) WithPet(opts ...func(*PetQuery)) *CollarQuery + type CollarSelect struct + func (cs *CollarSelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *CollarSelect) BoolX(ctx context.Context) bool + func (cs *CollarSelect) Bools(ctx context.Context) ([]bool, error) + func (cs *CollarSelect) BoolsX(ctx context.Context) []bool + func (cs *CollarSelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *CollarSelect) Float64X(ctx context.Context) float64 + func (cs *CollarSelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *CollarSelect) Float64sX(ctx context.Context) []float64 + func (cs *CollarSelect) Int(ctx context.Context) (_ int, err error) + func (cs *CollarSelect) IntX(ctx context.Context) int + func (cs *CollarSelect) Ints(ctx context.Context) ([]int, error) + func (cs *CollarSelect) IntsX(ctx context.Context) []int + func (cs *CollarSelect) Scan(ctx context.Context, v interface{}) error + func (cs *CollarSelect) ScanX(ctx context.Context, v interface{}) + func (cs *CollarSelect) String(ctx context.Context) (_ string, err error) + func (cs *CollarSelect) StringX(ctx context.Context) string + func (cs *CollarSelect) Strings(ctx context.Context) ([]string, error) + func (cs *CollarSelect) StringsX(ctx context.Context) []string + type CollarUpdate struct + func (cu *CollarUpdate) ClearPet() *CollarUpdate + func (cu *CollarUpdate) Exec(ctx context.Context) error + func (cu *CollarUpdate) ExecX(ctx context.Context) + func (cu *CollarUpdate) Mutation() *CollarMutation + func (cu *CollarUpdate) Save(ctx context.Context) (int, error) + func (cu *CollarUpdate) SaveX(ctx context.Context) int + func (cu *CollarUpdate) SetColor(c collar.Color) *CollarUpdate + func (cu *CollarUpdate) SetNillablePetID(id *string) *CollarUpdate + func (cu *CollarUpdate) SetPet(p *Pet) *CollarUpdate + func (cu *CollarUpdate) SetPetID(id string) *CollarUpdate + func (cu *CollarUpdate) Where(ps ...predicate.Collar) *CollarUpdate + type CollarUpdateOne struct + func (cuo *CollarUpdateOne) ClearPet() *CollarUpdateOne + func (cuo *CollarUpdateOne) Exec(ctx context.Context) error + func (cuo *CollarUpdateOne) ExecX(ctx context.Context) + func (cuo *CollarUpdateOne) Mutation() *CollarMutation + func (cuo *CollarUpdateOne) Save(ctx context.Context) (*Collar, error) + func (cuo *CollarUpdateOne) SaveX(ctx context.Context) *Collar + func (cuo *CollarUpdateOne) Select(field string, fields ...string) *CollarUpdateOne + func (cuo *CollarUpdateOne) SetColor(c collar.Color) *CollarUpdateOne + func (cuo *CollarUpdateOne) SetNillablePetID(id *string) *CollarUpdateOne + func (cuo *CollarUpdateOne) SetPet(p *Pet) *CollarUpdateOne + func (cuo *CollarUpdateOne) SetPetID(id string) *CollarUpdateOne + type Collars []*Collar + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...interface{})) Option + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Owner struct + Age int + Edges OwnerEdges + ID uuid.UUID + Name string + func (o *Owner) QueryPets() *PetQuery + func (o *Owner) String() string + func (o *Owner) Unwrap() *Owner + func (o *Owner) Update() *OwnerUpdateOne + type OwnerClient struct + func NewOwnerClient(c config) *OwnerClient + func (c *OwnerClient) Create() *OwnerCreate + func (c *OwnerClient) CreateBulk(builders ...*OwnerCreate) *OwnerCreateBulk + func (c *OwnerClient) Delete() *OwnerDelete + func (c *OwnerClient) DeleteOne(o *Owner) *OwnerDeleteOne + func (c *OwnerClient) DeleteOneID(id uuid.UUID) *OwnerDeleteOne + func (c *OwnerClient) Get(ctx context.Context, id uuid.UUID) (*Owner, error) + func (c *OwnerClient) GetX(ctx context.Context, id uuid.UUID) *Owner + func (c *OwnerClient) Hooks() []Hook + func (c *OwnerClient) Query() *OwnerQuery + func (c *OwnerClient) QueryPets(o *Owner) *PetQuery + func (c *OwnerClient) Update() *OwnerUpdate + func (c *OwnerClient) UpdateOne(o *Owner) *OwnerUpdateOne + func (c *OwnerClient) UpdateOneID(id uuid.UUID) *OwnerUpdateOne + func (c *OwnerClient) Use(hooks ...Hook) + type OwnerCreate struct + func (oc *OwnerCreate) AddPetIDs(ids ...string) *OwnerCreate + func (oc *OwnerCreate) AddPets(p ...*Pet) *OwnerCreate + func (oc *OwnerCreate) Exec(ctx context.Context) error + func (oc *OwnerCreate) ExecX(ctx context.Context) + func (oc *OwnerCreate) Mutation() *OwnerMutation + func (oc *OwnerCreate) Save(ctx context.Context) (*Owner, error) + func (oc *OwnerCreate) SaveX(ctx context.Context) *Owner + func (oc *OwnerCreate) SetAge(i int) *OwnerCreate + func (oc *OwnerCreate) SetID(u uuid.UUID) *OwnerCreate + func (oc *OwnerCreate) SetName(s string) *OwnerCreate + type OwnerCreateBulk struct + func (ocb *OwnerCreateBulk) Exec(ctx context.Context) error + func (ocb *OwnerCreateBulk) ExecX(ctx context.Context) + func (ocb *OwnerCreateBulk) Save(ctx context.Context) ([]*Owner, error) + func (ocb *OwnerCreateBulk) SaveX(ctx context.Context) []*Owner + type OwnerDelete struct + func (od *OwnerDelete) Exec(ctx context.Context) (int, error) + func (od *OwnerDelete) ExecX(ctx context.Context) int + func (od *OwnerDelete) Where(ps ...predicate.Owner) *OwnerDelete + type OwnerDeleteOne struct + func (odo *OwnerDeleteOne) Exec(ctx context.Context) error + func (odo *OwnerDeleteOne) ExecX(ctx context.Context) + type OwnerEdges struct + Pets []*Pet + func (e OwnerEdges) PetsOrErr() ([]*Pet, error) + type OwnerGroupBy struct + func (ogb *OwnerGroupBy) Aggregate(fns ...AggregateFunc) *OwnerGroupBy + func (ogb *OwnerGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ogb *OwnerGroupBy) BoolX(ctx context.Context) bool + func (ogb *OwnerGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ogb *OwnerGroupBy) BoolsX(ctx context.Context) []bool + func (ogb *OwnerGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ogb *OwnerGroupBy) Float64X(ctx context.Context) float64 + func (ogb *OwnerGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ogb *OwnerGroupBy) Float64sX(ctx context.Context) []float64 + func (ogb *OwnerGroupBy) Int(ctx context.Context) (_ int, err error) + func (ogb *OwnerGroupBy) IntX(ctx context.Context) int + func (ogb *OwnerGroupBy) Ints(ctx context.Context) ([]int, error) + func (ogb *OwnerGroupBy) IntsX(ctx context.Context) []int + func (ogb *OwnerGroupBy) Scan(ctx context.Context, v interface{}) error + func (ogb *OwnerGroupBy) ScanX(ctx context.Context, v interface{}) + func (ogb *OwnerGroupBy) String(ctx context.Context) (_ string, err error) + func (ogb *OwnerGroupBy) StringX(ctx context.Context) string + func (ogb *OwnerGroupBy) Strings(ctx context.Context) ([]string, error) + func (ogb *OwnerGroupBy) StringsX(ctx context.Context) []string + type OwnerMutation struct + func (m *OwnerMutation) AddAge(i int) + func (m *OwnerMutation) AddField(name string, value ent.Value) error + func (m *OwnerMutation) AddPetIDs(ids ...string) + func (m *OwnerMutation) AddedAge() (r int, exists bool) + func (m *OwnerMutation) AddedEdges() []string + func (m *OwnerMutation) AddedField(name string) (ent.Value, bool) + func (m *OwnerMutation) AddedFields() []string + func (m *OwnerMutation) AddedIDs(name string) []ent.Value + func (m *OwnerMutation) Age() (r int, exists bool) + func (m *OwnerMutation) ClearEdge(name string) error + func (m *OwnerMutation) ClearField(name string) error + func (m *OwnerMutation) ClearPets() + func (m *OwnerMutation) ClearedEdges() []string + func (m *OwnerMutation) ClearedFields() []string + func (m *OwnerMutation) EdgeCleared(name string) bool + func (m *OwnerMutation) Field(name string) (ent.Value, bool) + func (m *OwnerMutation) FieldCleared(name string) bool + func (m *OwnerMutation) Fields() []string + func (m *OwnerMutation) ID() (id uuid.UUID, exists bool) + func (m *OwnerMutation) Name() (r string, exists bool) + func (m *OwnerMutation) OldAge(ctx context.Context) (v int, err error) + func (m *OwnerMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *OwnerMutation) OldName(ctx context.Context) (v string, err error) + func (m *OwnerMutation) Op() Op + func (m *OwnerMutation) PetsCleared() bool + func (m *OwnerMutation) PetsIDs() (ids []string) + func (m *OwnerMutation) RemovePetIDs(ids ...string) + func (m *OwnerMutation) RemovedEdges() []string + func (m *OwnerMutation) RemovedIDs(name string) []ent.Value + func (m *OwnerMutation) RemovedPetsIDs() (ids []string) + func (m *OwnerMutation) ResetAge() + func (m *OwnerMutation) ResetEdge(name string) error + func (m *OwnerMutation) ResetField(name string) error + func (m *OwnerMutation) ResetName() + func (m *OwnerMutation) ResetPets() + func (m *OwnerMutation) SetAge(i int) + func (m *OwnerMutation) SetField(name string, value ent.Value) error + func (m *OwnerMutation) SetID(id uuid.UUID) + func (m *OwnerMutation) SetName(s string) + func (m *OwnerMutation) Type() string + func (m *OwnerMutation) Where(ps ...predicate.Owner) + func (m OwnerMutation) Client() *Client + func (m OwnerMutation) Tx() (*Tx, error) + type OwnerQuery struct + func (oq *OwnerQuery) All(ctx context.Context) ([]*Owner, error) + func (oq *OwnerQuery) AllX(ctx context.Context) []*Owner + func (oq *OwnerQuery) Clone() *OwnerQuery + func (oq *OwnerQuery) Count(ctx context.Context) (int, error) + func (oq *OwnerQuery) CountX(ctx context.Context) int + func (oq *OwnerQuery) Exist(ctx context.Context) (bool, error) + func (oq *OwnerQuery) ExistX(ctx context.Context) bool + func (oq *OwnerQuery) First(ctx context.Context) (*Owner, error) + func (oq *OwnerQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (oq *OwnerQuery) FirstIDX(ctx context.Context) uuid.UUID + func (oq *OwnerQuery) FirstX(ctx context.Context) *Owner + func (oq *OwnerQuery) GroupBy(field string, fields ...string) *OwnerGroupBy + func (oq *OwnerQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (oq *OwnerQuery) IDsX(ctx context.Context) []uuid.UUID + func (oq *OwnerQuery) Limit(limit int) *OwnerQuery + func (oq *OwnerQuery) Offset(offset int) *OwnerQuery + func (oq *OwnerQuery) Only(ctx context.Context) (*Owner, error) + func (oq *OwnerQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (oq *OwnerQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (oq *OwnerQuery) OnlyX(ctx context.Context) *Owner + func (oq *OwnerQuery) Order(o ...OrderFunc) *OwnerQuery + func (oq *OwnerQuery) QueryPets() *PetQuery + func (oq *OwnerQuery) Select(fields ...string) *OwnerSelect + func (oq *OwnerQuery) Unique(unique bool) *OwnerQuery + func (oq *OwnerQuery) Where(ps ...predicate.Owner) *OwnerQuery + func (oq *OwnerQuery) WithPets(opts ...func(*PetQuery)) *OwnerQuery + type OwnerSelect struct + func (os *OwnerSelect) Bool(ctx context.Context) (_ bool, err error) + func (os *OwnerSelect) BoolX(ctx context.Context) bool + func (os *OwnerSelect) Bools(ctx context.Context) ([]bool, error) + func (os *OwnerSelect) BoolsX(ctx context.Context) []bool + func (os *OwnerSelect) Float64(ctx context.Context) (_ float64, err error) + func (os *OwnerSelect) Float64X(ctx context.Context) float64 + func (os *OwnerSelect) Float64s(ctx context.Context) ([]float64, error) + func (os *OwnerSelect) Float64sX(ctx context.Context) []float64 + func (os *OwnerSelect) Int(ctx context.Context) (_ int, err error) + func (os *OwnerSelect) IntX(ctx context.Context) int + func (os *OwnerSelect) Ints(ctx context.Context) ([]int, error) + func (os *OwnerSelect) IntsX(ctx context.Context) []int + func (os *OwnerSelect) Scan(ctx context.Context, v interface{}) error + func (os *OwnerSelect) ScanX(ctx context.Context, v interface{}) + func (os *OwnerSelect) String(ctx context.Context) (_ string, err error) + func (os *OwnerSelect) StringX(ctx context.Context) string + func (os *OwnerSelect) Strings(ctx context.Context) ([]string, error) + func (os *OwnerSelect) StringsX(ctx context.Context) []string + type OwnerUpdate struct + func (ou *OwnerUpdate) AddAge(i int) *OwnerUpdate + func (ou *OwnerUpdate) AddPetIDs(ids ...string) *OwnerUpdate + func (ou *OwnerUpdate) AddPets(p ...*Pet) *OwnerUpdate + func (ou *OwnerUpdate) ClearPets() *OwnerUpdate + func (ou *OwnerUpdate) Exec(ctx context.Context) error + func (ou *OwnerUpdate) ExecX(ctx context.Context) + func (ou *OwnerUpdate) Mutation() *OwnerMutation + func (ou *OwnerUpdate) RemovePetIDs(ids ...string) *OwnerUpdate + func (ou *OwnerUpdate) RemovePets(p ...*Pet) *OwnerUpdate + func (ou *OwnerUpdate) Save(ctx context.Context) (int, error) + func (ou *OwnerUpdate) SaveX(ctx context.Context) int + func (ou *OwnerUpdate) SetAge(i int) *OwnerUpdate + func (ou *OwnerUpdate) SetName(s string) *OwnerUpdate + func (ou *OwnerUpdate) Where(ps ...predicate.Owner) *OwnerUpdate + type OwnerUpdateOne struct + func (ouo *OwnerUpdateOne) AddAge(i int) *OwnerUpdateOne + func (ouo *OwnerUpdateOne) AddPetIDs(ids ...string) *OwnerUpdateOne + func (ouo *OwnerUpdateOne) AddPets(p ...*Pet) *OwnerUpdateOne + func (ouo *OwnerUpdateOne) ClearPets() *OwnerUpdateOne + func (ouo *OwnerUpdateOne) Exec(ctx context.Context) error + func (ouo *OwnerUpdateOne) ExecX(ctx context.Context) + func (ouo *OwnerUpdateOne) Mutation() *OwnerMutation + func (ouo *OwnerUpdateOne) RemovePetIDs(ids ...string) *OwnerUpdateOne + func (ouo *OwnerUpdateOne) RemovePets(p ...*Pet) *OwnerUpdateOne + func (ouo *OwnerUpdateOne) Save(ctx context.Context) (*Owner, error) + func (ouo *OwnerUpdateOne) SaveX(ctx context.Context) *Owner + func (ouo *OwnerUpdateOne) Select(field string, fields ...string) *OwnerUpdateOne + func (ouo *OwnerUpdateOne) SetAge(i int) *OwnerUpdateOne + func (ouo *OwnerUpdateOne) SetName(s string) *OwnerUpdateOne + type Owners []*Owner + type Pet struct + Age int + Edges PetEdges + ID string + Name string + func (pe *Pet) QueryCategories() *CategoryQuery + func (pe *Pet) QueryCollar() *CollarQuery + func (pe *Pet) QueryFriends() *PetQuery + func (pe *Pet) QueryOwner() *OwnerQuery + 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) QueryCategories(pe *Pet) *CategoryQuery + func (c *PetClient) QueryCollar(pe *Pet) *CollarQuery + func (c *PetClient) QueryFriends(pe *Pet) *PetQuery + func (c *PetClient) QueryOwner(pe *Pet) *OwnerQuery + 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) AddCategories(c ...*Category) *PetCreate + func (pc *PetCreate) AddCategoryIDs(ids ...uint64) *PetCreate + func (pc *PetCreate) AddFriendIDs(ids ...string) *PetCreate + func (pc *PetCreate) AddFriends(p ...*Pet) *PetCreate + func (pc *PetCreate) Exec(ctx context.Context) error + func (pc *PetCreate) ExecX(ctx context.Context) + 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) SetAge(i int) *PetCreate + func (pc *PetCreate) SetCollar(c *Collar) *PetCreate + func (pc *PetCreate) SetCollarID(id int) *PetCreate + func (pc *PetCreate) SetID(s string) *PetCreate + func (pc *PetCreate) SetName(s string) *PetCreate + func (pc *PetCreate) SetNillableCollarID(id *int) *PetCreate + func (pc *PetCreate) SetNillableID(s *string) *PetCreate + func (pc *PetCreate) SetNillableOwnerID(id *uuid.UUID) *PetCreate + func (pc *PetCreate) SetOwner(o *Owner) *PetCreate + func (pc *PetCreate) SetOwnerID(id uuid.UUID) *PetCreate + type PetCreateBulk struct + func (pcb *PetCreateBulk) Exec(ctx context.Context) error + func (pcb *PetCreateBulk) ExecX(ctx context.Context) + 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 + Categories []*Category + Collar *Collar + Friends []*Pet + Owner *Owner + func (e PetEdges) CategoriesOrErr() ([]*Category, error) + func (e PetEdges) CollarOrErr() (*Collar, error) + func (e PetEdges) FriendsOrErr() ([]*Pet, error) + func (e PetEdges) OwnerOrErr() (*Owner, 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) AddAge(i int) + func (m *PetMutation) AddCategoryIDs(ids ...uint64) + func (m *PetMutation) AddField(name string, value ent.Value) error + func (m *PetMutation) AddFriendIDs(ids ...string) + func (m *PetMutation) AddedAge() (r int, exists bool) + 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) Age() (r int, exists bool) + func (m *PetMutation) CategoriesCleared() bool + func (m *PetMutation) CategoriesIDs() (ids []uint64) + func (m *PetMutation) ClearCategories() + func (m *PetMutation) ClearCollar() + 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) CollarCleared() bool + func (m *PetMutation) CollarID() (id int, exists bool) + func (m *PetMutation) CollarIDs() (ids []int) + 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) Name() (r string, exists bool) + func (m *PetMutation) OldAge(ctx context.Context) (v int, err error) + func (m *PetMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PetMutation) OldName(ctx context.Context) (v string, err error) + func (m *PetMutation) Op() Op + func (m *PetMutation) OwnerCleared() bool + func (m *PetMutation) OwnerID() (id uuid.UUID, exists bool) + func (m *PetMutation) OwnerIDs() (ids []uuid.UUID) + func (m *PetMutation) RemoveCategoryIDs(ids ...uint64) + func (m *PetMutation) RemoveFriendIDs(ids ...string) + func (m *PetMutation) RemovedCategoriesIDs() (ids []uint64) + func (m *PetMutation) RemovedEdges() []string + func (m *PetMutation) RemovedFriendsIDs() (ids []string) + func (m *PetMutation) RemovedIDs(name string) []ent.Value + func (m *PetMutation) ResetAge() + func (m *PetMutation) ResetCategories() + func (m *PetMutation) ResetCollar() + func (m *PetMutation) ResetEdge(name string) error + func (m *PetMutation) ResetField(name string) error + func (m *PetMutation) ResetFriends() + func (m *PetMutation) ResetName() + func (m *PetMutation) ResetOwner() + func (m *PetMutation) SetAge(i int) + func (m *PetMutation) SetCollarID(id int) + func (m *PetMutation) SetField(name string, value ent.Value) error + func (m *PetMutation) SetID(id string) + func (m *PetMutation) SetName(s string) + func (m *PetMutation) SetOwnerID(id uuid.UUID) + func (m *PetMutation) Type() string + func (m *PetMutation) Where(ps ...predicate.Pet) + 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) QueryCategories() *CategoryQuery + func (pq *PetQuery) QueryCollar() *CollarQuery + func (pq *PetQuery) QueryFriends() *PetQuery + func (pq *PetQuery) QueryOwner() *OwnerQuery + func (pq *PetQuery) Select(fields ...string) *PetSelect + func (pq *PetQuery) Unique(unique bool) *PetQuery + func (pq *PetQuery) Where(ps ...predicate.Pet) *PetQuery + func (pq *PetQuery) WithCategories(opts ...func(*CategoryQuery)) *PetQuery + func (pq *PetQuery) WithCollar(opts ...func(*CollarQuery)) *PetQuery + func (pq *PetQuery) WithFriends(opts ...func(*PetQuery)) *PetQuery + func (pq *PetQuery) WithOwner(opts ...func(*OwnerQuery)) *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) AddAge(i int) *PetUpdate + func (pu *PetUpdate) AddCategories(c ...*Category) *PetUpdate + func (pu *PetUpdate) AddCategoryIDs(ids ...uint64) *PetUpdate + func (pu *PetUpdate) AddFriendIDs(ids ...string) *PetUpdate + func (pu *PetUpdate) AddFriends(p ...*Pet) *PetUpdate + func (pu *PetUpdate) ClearCategories() *PetUpdate + func (pu *PetUpdate) ClearCollar() *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) RemoveCategories(c ...*Category) *PetUpdate + func (pu *PetUpdate) RemoveCategoryIDs(ids ...uint64) *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) SetAge(i int) *PetUpdate + func (pu *PetUpdate) SetCollar(c *Collar) *PetUpdate + func (pu *PetUpdate) SetCollarID(id int) *PetUpdate + func (pu *PetUpdate) SetName(s string) *PetUpdate + func (pu *PetUpdate) SetNillableCollarID(id *int) *PetUpdate + func (pu *PetUpdate) SetNillableOwnerID(id *uuid.UUID) *PetUpdate + func (pu *PetUpdate) SetOwner(o *Owner) *PetUpdate + func (pu *PetUpdate) SetOwnerID(id uuid.UUID) *PetUpdate + func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate + type PetUpdateOne struct + func (puo *PetUpdateOne) AddAge(i int) *PetUpdateOne + func (puo *PetUpdateOne) AddCategories(c ...*Category) *PetUpdateOne + func (puo *PetUpdateOne) AddCategoryIDs(ids ...uint64) *PetUpdateOne + func (puo *PetUpdateOne) AddFriendIDs(ids ...string) *PetUpdateOne + func (puo *PetUpdateOne) AddFriends(p ...*Pet) *PetUpdateOne + func (puo *PetUpdateOne) ClearCategories() *PetUpdateOne + func (puo *PetUpdateOne) ClearCollar() *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) RemoveCategories(c ...*Category) *PetUpdateOne + func (puo *PetUpdateOne) RemoveCategoryIDs(ids ...uint64) *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) Select(field string, fields ...string) *PetUpdateOne + func (puo *PetUpdateOne) SetAge(i int) *PetUpdateOne + func (puo *PetUpdateOne) SetCollar(c *Collar) *PetUpdateOne + func (puo *PetUpdateOne) SetCollarID(id int) *PetUpdateOne + func (puo *PetUpdateOne) SetName(s string) *PetUpdateOne + func (puo *PetUpdateOne) SetNillableCollarID(id *int) *PetUpdateOne + func (puo *PetUpdateOne) SetNillableOwnerID(id *uuid.UUID) *PetUpdateOne + func (puo *PetUpdateOne) SetOwner(o *Owner) *PetUpdateOne + func (puo *PetUpdateOne) SetOwnerID(id uuid.UUID) *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 + Category *CategoryClient + Collar *CollarClient + Owner *OwnerClient + Pet *PetClient + 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 ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value