Versions in this module Expand all Collapse all v1 v1.0.1 Apr 12, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCar + const TypeCard + const TypeInfo + const TypeMetadata + const TypeNode + const TypePet + const TypePost + const TypeRental + const TypeUser + func IsConstraintError(err error) bool + func IsNotFound(err error) bool + func IsNotLoaded(err error) bool + func IsNotSingular(err error) bool + func IsValidationError(err error) bool + func MaskNotFound(err error) error + func NewContext(parent context.Context, c *Client) context.Context + func NewTxContext(parent context.Context, tx *Tx) context.Context + type AggregateFunc func(*sql.Selector) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Car struct + Edges CarEdges + ID uuid.UUID + Number string + func (c *Car) QueryRentals() *RentalQuery + 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 uuid.UUID) *CarDeleteOne + func (c *CarClient) Get(ctx context.Context, id uuid.UUID) (*Car, error) + func (c *CarClient) GetX(ctx context.Context, id uuid.UUID) *Car + func (c *CarClient) Hooks() []Hook + func (c *CarClient) Query() *CarQuery + func (c *CarClient) QueryRentals(ca *Car) *RentalQuery + func (c *CarClient) Update() *CarUpdate + func (c *CarClient) UpdateOne(ca *Car) *CarUpdateOne + func (c *CarClient) UpdateOneID(id uuid.UUID) *CarUpdateOne + func (c *CarClient) Use(hooks ...Hook) + type CarCreate struct + func (cc *CarCreate) AddRentalIDs(ids ...int) *CarCreate + func (cc *CarCreate) AddRentals(r ...*Rental) *CarCreate + func (cc *CarCreate) Exec(ctx context.Context) error + func (cc *CarCreate) ExecX(ctx context.Context) + func (cc *CarCreate) Mutation() *CarMutation + func (cc *CarCreate) Save(ctx context.Context) (*Car, error) + func (cc *CarCreate) SaveX(ctx context.Context) *Car + func (cc *CarCreate) SetID(u uuid.UUID) *CarCreate + func (cc *CarCreate) SetNillableID(u *uuid.UUID) *CarCreate + func (cc *CarCreate) SetNillableNumber(s *string) *CarCreate + func (cc *CarCreate) SetNumber(s string) *CarCreate + type CarCreateBulk struct + func (ccb *CarCreateBulk) Exec(ctx context.Context) error + func (ccb *CarCreateBulk) ExecX(ctx context.Context) + func (ccb *CarCreateBulk) Save(ctx context.Context) ([]*Car, error) + func (ccb *CarCreateBulk) SaveX(ctx context.Context) []*Car + type CarDelete struct + func (cd *CarDelete) Exec(ctx context.Context) (int, error) + func (cd *CarDelete) ExecX(ctx context.Context) int + func (cd *CarDelete) Where(ps ...predicate.Car) *CarDelete + type CarDeleteOne struct + func (cdo *CarDeleteOne) Exec(ctx context.Context) error + func (cdo *CarDeleteOne) ExecX(ctx context.Context) + type CarEdges struct + Rentals []*Rental + func (e CarEdges) RentalsOrErr() ([]*Rental, error) + type CarGroupBy struct + func (cgb *CarGroupBy) Aggregate(fns ...AggregateFunc) *CarGroupBy + func (cgb *CarGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *CarGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *CarGroupBy) BoolX(ctx context.Context) bool + func (s *CarGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *CarGroupBy) BoolsX(ctx context.Context) []bool + func (s *CarGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *CarGroupBy) Float64X(ctx context.Context) float64 + func (s *CarGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *CarGroupBy) Float64sX(ctx context.Context) []float64 + func (s *CarGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *CarGroupBy) IntX(ctx context.Context) int + func (s *CarGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *CarGroupBy) IntsX(ctx context.Context) []int + func (s *CarGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *CarGroupBy) String(ctx context.Context) (_ string, err error) + func (s *CarGroupBy) StringX(ctx context.Context) string + func (s *CarGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *CarGroupBy) StringsX(ctx context.Context) []string + type CarMutation struct + func (m *CarMutation) AddField(name string, value ent.Value) error + func (m *CarMutation) AddRentalIDs(ids ...int) + func (m *CarMutation) AddedEdges() []string + func (m *CarMutation) AddedField(name string) (ent.Value, bool) + func (m *CarMutation) AddedFields() []string + func (m *CarMutation) AddedIDs(name string) []ent.Value + func (m *CarMutation) ClearEdge(name string) error + func (m *CarMutation) ClearField(name string) error + func (m *CarMutation) ClearNumber() + func (m *CarMutation) ClearRentals() + 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 uuid.UUID, exists bool) + func (m *CarMutation) IDs(ctx context.Context) ([]uuid.UUID, error) + func (m *CarMutation) Number() (r string, exists bool) + func (m *CarMutation) NumberCleared() bool + func (m *CarMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CarMutation) OldNumber(ctx context.Context) (v string, err error) + func (m *CarMutation) Op() Op + func (m *CarMutation) RemoveRentalIDs(ids ...int) + func (m *CarMutation) RemovedEdges() []string + func (m *CarMutation) RemovedIDs(name string) []ent.Value + func (m *CarMutation) RemovedRentalsIDs() (ids []int) + func (m *CarMutation) RentalsCleared() bool + func (m *CarMutation) RentalsIDs() (ids []int) + func (m *CarMutation) ResetEdge(name string) error + func (m *CarMutation) ResetField(name string) error + func (m *CarMutation) ResetNumber() + func (m *CarMutation) ResetRentals() + func (m *CarMutation) SetField(name string, value ent.Value) error + func (m *CarMutation) SetID(id uuid.UUID) + func (m *CarMutation) SetNumber(s string) + func (m *CarMutation) Type() string + func (m *CarMutation) Where(ps ...predicate.Car) + func (m CarMutation) Client() *Client + func (m CarMutation) Tx() (*Tx, error) + type CarQuery struct + func (cq *CarQuery) All(ctx context.Context) ([]*Car, error) + func (cq *CarQuery) AllX(ctx context.Context) []*Car + func (cq *CarQuery) Clone() *CarQuery + func (cq *CarQuery) Count(ctx context.Context) (int, error) + func (cq *CarQuery) CountX(ctx context.Context) int + func (cq *CarQuery) Exist(ctx context.Context) (bool, error) + func (cq *CarQuery) ExistX(ctx context.Context) bool + func (cq *CarQuery) First(ctx context.Context) (*Car, error) + func (cq *CarQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (cq *CarQuery) FirstIDX(ctx context.Context) uuid.UUID + func (cq *CarQuery) FirstX(ctx context.Context) *Car + func (cq *CarQuery) GroupBy(field string, fields ...string) *CarGroupBy + func (cq *CarQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (cq *CarQuery) IDsX(ctx context.Context) []uuid.UUID + 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 uuid.UUID, err error) + func (cq *CarQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (cq *CarQuery) OnlyX(ctx context.Context) *Car + func (cq *CarQuery) Order(o ...OrderFunc) *CarQuery + func (cq *CarQuery) QueryRentals() *RentalQuery + func (cq *CarQuery) Select(fields ...string) *CarSelect + func (cq *CarQuery) Unique(unique bool) *CarQuery + func (cq *CarQuery) Where(ps ...predicate.Car) *CarQuery + func (cq *CarQuery) WithRentals(opts ...func(*RentalQuery)) *CarQuery + type CarSelect struct + func (cs *CarSelect) Scan(ctx context.Context, v interface{}) error + func (s *CarSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *CarSelect) BoolX(ctx context.Context) bool + func (s *CarSelect) Bools(ctx context.Context) ([]bool, error) + func (s *CarSelect) BoolsX(ctx context.Context) []bool + func (s *CarSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *CarSelect) Float64X(ctx context.Context) float64 + func (s *CarSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *CarSelect) Float64sX(ctx context.Context) []float64 + func (s *CarSelect) Int(ctx context.Context) (_ int, err error) + func (s *CarSelect) IntX(ctx context.Context) int + func (s *CarSelect) Ints(ctx context.Context) ([]int, error) + func (s *CarSelect) IntsX(ctx context.Context) []int + func (s *CarSelect) ScanX(ctx context.Context, v interface{}) + func (s *CarSelect) String(ctx context.Context) (_ string, err error) + func (s *CarSelect) StringX(ctx context.Context) string + func (s *CarSelect) Strings(ctx context.Context) ([]string, error) + func (s *CarSelect) StringsX(ctx context.Context) []string + type CarUpdate struct + func (cu *CarUpdate) AddRentalIDs(ids ...int) *CarUpdate + func (cu *CarUpdate) AddRentals(r ...*Rental) *CarUpdate + func (cu *CarUpdate) ClearNumber() *CarUpdate + func (cu *CarUpdate) ClearRentals() *CarUpdate + func (cu *CarUpdate) Exec(ctx context.Context) error + func (cu *CarUpdate) ExecX(ctx context.Context) + func (cu *CarUpdate) Mutation() *CarMutation + func (cu *CarUpdate) RemoveRentalIDs(ids ...int) *CarUpdate + func (cu *CarUpdate) RemoveRentals(r ...*Rental) *CarUpdate + func (cu *CarUpdate) Save(ctx context.Context) (int, error) + func (cu *CarUpdate) SaveX(ctx context.Context) int + func (cu *CarUpdate) SetNillableNumber(s *string) *CarUpdate + func (cu *CarUpdate) SetNumber(s string) *CarUpdate + func (cu *CarUpdate) Where(ps ...predicate.Car) *CarUpdate + type CarUpdateOne struct + func (cuo *CarUpdateOne) AddRentalIDs(ids ...int) *CarUpdateOne + func (cuo *CarUpdateOne) AddRentals(r ...*Rental) *CarUpdateOne + func (cuo *CarUpdateOne) ClearNumber() *CarUpdateOne + func (cuo *CarUpdateOne) ClearRentals() *CarUpdateOne + func (cuo *CarUpdateOne) Exec(ctx context.Context) error + func (cuo *CarUpdateOne) ExecX(ctx context.Context) + func (cuo *CarUpdateOne) Mutation() *CarMutation + func (cuo *CarUpdateOne) RemoveRentalIDs(ids ...int) *CarUpdateOne + func (cuo *CarUpdateOne) RemoveRentals(r ...*Rental) *CarUpdateOne + func (cuo *CarUpdateOne) Save(ctx context.Context) (*Car, error) + func (cuo *CarUpdateOne) SaveX(ctx context.Context) *Car + func (cuo *CarUpdateOne) Select(field string, fields ...string) *CarUpdateOne + func (cuo *CarUpdateOne) SetNillableNumber(s *string) *CarUpdateOne + func (cuo *CarUpdateOne) SetNumber(s string) *CarUpdateOne + type Card struct + Edges CardEdges + ID int + Number string + OwnerID int + func (c *Card) QueryOwner() *UserQuery + func (c *Card) String() string + func (c *Card) Unwrap() *Card + func (c *Card) Update() *CardUpdateOne + type CardClient struct + func NewCardClient(c config) *CardClient + func (c *CardClient) Create() *CardCreate + func (c *CardClient) CreateBulk(builders ...*CardCreate) *CardCreateBulk + func (c *CardClient) Delete() *CardDelete + func (c *CardClient) DeleteOne(ca *Card) *CardDeleteOne + func (c *CardClient) DeleteOneID(id int) *CardDeleteOne + func (c *CardClient) Get(ctx context.Context, id int) (*Card, error) + func (c *CardClient) GetX(ctx context.Context, id int) *Card + func (c *CardClient) Hooks() []Hook + func (c *CardClient) Query() *CardQuery + func (c *CardClient) QueryOwner(ca *Card) *UserQuery + func (c *CardClient) Update() *CardUpdate + func (c *CardClient) UpdateOne(ca *Card) *CardUpdateOne + func (c *CardClient) UpdateOneID(id int) *CardUpdateOne + func (c *CardClient) Use(hooks ...Hook) + type CardCreate struct + func (cc *CardCreate) Exec(ctx context.Context) error + func (cc *CardCreate) ExecX(ctx context.Context) + func (cc *CardCreate) Mutation() *CardMutation + func (cc *CardCreate) Save(ctx context.Context) (*Card, error) + func (cc *CardCreate) SaveX(ctx context.Context) *Card + func (cc *CardCreate) SetNillableNumber(s *string) *CardCreate + func (cc *CardCreate) SetNillableOwnerID(i *int) *CardCreate + func (cc *CardCreate) SetNumber(s string) *CardCreate + func (cc *CardCreate) SetOwner(u *User) *CardCreate + func (cc *CardCreate) SetOwnerID(i int) *CardCreate + type CardCreateBulk struct + func (ccb *CardCreateBulk) Exec(ctx context.Context) error + func (ccb *CardCreateBulk) ExecX(ctx context.Context) + func (ccb *CardCreateBulk) Save(ctx context.Context) ([]*Card, error) + func (ccb *CardCreateBulk) SaveX(ctx context.Context) []*Card + type CardDelete struct + func (cd *CardDelete) Exec(ctx context.Context) (int, error) + func (cd *CardDelete) ExecX(ctx context.Context) int + func (cd *CardDelete) Where(ps ...predicate.Card) *CardDelete + type CardDeleteOne struct + func (cdo *CardDeleteOne) Exec(ctx context.Context) error + func (cdo *CardDeleteOne) ExecX(ctx context.Context) + type CardEdges struct + Owner *User + func (e CardEdges) OwnerOrErr() (*User, error) + type CardGroupBy struct + func (cgb *CardGroupBy) Aggregate(fns ...AggregateFunc) *CardGroupBy + func (cgb *CardGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *CardGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *CardGroupBy) BoolX(ctx context.Context) bool + func (s *CardGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *CardGroupBy) BoolsX(ctx context.Context) []bool + func (s *CardGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *CardGroupBy) Float64X(ctx context.Context) float64 + func (s *CardGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *CardGroupBy) Float64sX(ctx context.Context) []float64 + func (s *CardGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *CardGroupBy) IntX(ctx context.Context) int + func (s *CardGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *CardGroupBy) IntsX(ctx context.Context) []int + func (s *CardGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *CardGroupBy) String(ctx context.Context) (_ string, err error) + func (s *CardGroupBy) StringX(ctx context.Context) string + func (s *CardGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *CardGroupBy) StringsX(ctx context.Context) []string + type CardMutation struct + func (m *CardMutation) AddField(name string, value ent.Value) error + func (m *CardMutation) AddedEdges() []string + func (m *CardMutation) AddedField(name string) (ent.Value, bool) + func (m *CardMutation) AddedFields() []string + func (m *CardMutation) AddedIDs(name string) []ent.Value + func (m *CardMutation) ClearEdge(name string) error + func (m *CardMutation) ClearField(name string) error + func (m *CardMutation) ClearNumber() + func (m *CardMutation) ClearOwner() + func (m *CardMutation) ClearOwnerID() + func (m *CardMutation) ClearedEdges() []string + func (m *CardMutation) ClearedFields() []string + func (m *CardMutation) EdgeCleared(name string) bool + func (m *CardMutation) Field(name string) (ent.Value, bool) + func (m *CardMutation) FieldCleared(name string) bool + func (m *CardMutation) Fields() []string + func (m *CardMutation) ID() (id int, exists bool) + func (m *CardMutation) IDs(ctx context.Context) ([]int, error) + func (m *CardMutation) Number() (r string, exists bool) + func (m *CardMutation) NumberCleared() bool + func (m *CardMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CardMutation) OldNumber(ctx context.Context) (v string, err error) + func (m *CardMutation) OldOwnerID(ctx context.Context) (v int, err error) + func (m *CardMutation) Op() Op + func (m *CardMutation) OwnerCleared() bool + func (m *CardMutation) OwnerID() (r int, exists bool) + func (m *CardMutation) OwnerIDCleared() bool + func (m *CardMutation) OwnerIDs() (ids []int) + func (m *CardMutation) RemovedEdges() []string + func (m *CardMutation) RemovedIDs(name string) []ent.Value + func (m *CardMutation) ResetEdge(name string) error + func (m *CardMutation) ResetField(name string) error + func (m *CardMutation) ResetNumber() + func (m *CardMutation) ResetOwner() + func (m *CardMutation) ResetOwnerID() + func (m *CardMutation) SetField(name string, value ent.Value) error + func (m *CardMutation) SetNumber(s string) + func (m *CardMutation) SetOwnerID(i int) + func (m *CardMutation) Type() string + func (m *CardMutation) Where(ps ...predicate.Card) + func (m CardMutation) Client() *Client + func (m CardMutation) Tx() (*Tx, error) + type CardQuery struct + func (cq *CardQuery) All(ctx context.Context) ([]*Card, error) + func (cq *CardQuery) AllX(ctx context.Context) []*Card + func (cq *CardQuery) Clone() *CardQuery + func (cq *CardQuery) Count(ctx context.Context) (int, error) + func (cq *CardQuery) CountX(ctx context.Context) int + func (cq *CardQuery) Exist(ctx context.Context) (bool, error) + func (cq *CardQuery) ExistX(ctx context.Context) bool + func (cq *CardQuery) First(ctx context.Context) (*Card, error) + func (cq *CardQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CardQuery) FirstIDX(ctx context.Context) int + func (cq *CardQuery) FirstX(ctx context.Context) *Card + func (cq *CardQuery) GroupBy(field string, fields ...string) *CardGroupBy + func (cq *CardQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CardQuery) IDsX(ctx context.Context) []int + func (cq *CardQuery) Limit(limit int) *CardQuery + func (cq *CardQuery) Offset(offset int) *CardQuery + func (cq *CardQuery) Only(ctx context.Context) (*Card, error) + func (cq *CardQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CardQuery) OnlyIDX(ctx context.Context) int + func (cq *CardQuery) OnlyX(ctx context.Context) *Card + func (cq *CardQuery) Order(o ...OrderFunc) *CardQuery + func (cq *CardQuery) QueryOwner() *UserQuery + func (cq *CardQuery) Select(fields ...string) *CardSelect + func (cq *CardQuery) Unique(unique bool) *CardQuery + func (cq *CardQuery) Where(ps ...predicate.Card) *CardQuery + func (cq *CardQuery) WithOwner(opts ...func(*UserQuery)) *CardQuery + type CardSelect struct + func (cs *CardSelect) Scan(ctx context.Context, v interface{}) error + func (s *CardSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *CardSelect) BoolX(ctx context.Context) bool + func (s *CardSelect) Bools(ctx context.Context) ([]bool, error) + func (s *CardSelect) BoolsX(ctx context.Context) []bool + func (s *CardSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *CardSelect) Float64X(ctx context.Context) float64 + func (s *CardSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *CardSelect) Float64sX(ctx context.Context) []float64 + func (s *CardSelect) Int(ctx context.Context) (_ int, err error) + func (s *CardSelect) IntX(ctx context.Context) int + func (s *CardSelect) Ints(ctx context.Context) ([]int, error) + func (s *CardSelect) IntsX(ctx context.Context) []int + func (s *CardSelect) ScanX(ctx context.Context, v interface{}) + func (s *CardSelect) String(ctx context.Context) (_ string, err error) + func (s *CardSelect) StringX(ctx context.Context) string + func (s *CardSelect) Strings(ctx context.Context) ([]string, error) + func (s *CardSelect) StringsX(ctx context.Context) []string + type CardUpdate struct + func (cu *CardUpdate) ClearNumber() *CardUpdate + func (cu *CardUpdate) ClearOwner() *CardUpdate + func (cu *CardUpdate) ClearOwnerID() *CardUpdate + func (cu *CardUpdate) Exec(ctx context.Context) error + func (cu *CardUpdate) ExecX(ctx context.Context) + func (cu *CardUpdate) Mutation() *CardMutation + func (cu *CardUpdate) Save(ctx context.Context) (int, error) + func (cu *CardUpdate) SaveX(ctx context.Context) int + func (cu *CardUpdate) SetNillableNumber(s *string) *CardUpdate + func (cu *CardUpdate) SetNillableOwnerID(i *int) *CardUpdate + func (cu *CardUpdate) SetNumber(s string) *CardUpdate + func (cu *CardUpdate) SetOwner(u *User) *CardUpdate + func (cu *CardUpdate) SetOwnerID(i int) *CardUpdate + func (cu *CardUpdate) Where(ps ...predicate.Card) *CardUpdate + type CardUpdateOne struct + func (cuo *CardUpdateOne) ClearNumber() *CardUpdateOne + func (cuo *CardUpdateOne) ClearOwner() *CardUpdateOne + func (cuo *CardUpdateOne) ClearOwnerID() *CardUpdateOne + func (cuo *CardUpdateOne) Exec(ctx context.Context) error + func (cuo *CardUpdateOne) ExecX(ctx context.Context) + func (cuo *CardUpdateOne) Mutation() *CardMutation + func (cuo *CardUpdateOne) Save(ctx context.Context) (*Card, error) + func (cuo *CardUpdateOne) SaveX(ctx context.Context) *Card + func (cuo *CardUpdateOne) Select(field string, fields ...string) *CardUpdateOne + func (cuo *CardUpdateOne) SetNillableNumber(s *string) *CardUpdateOne + func (cuo *CardUpdateOne) SetNillableOwnerID(i *int) *CardUpdateOne + func (cuo *CardUpdateOne) SetNumber(s string) *CardUpdateOne + func (cuo *CardUpdateOne) SetOwner(u *User) *CardUpdateOne + func (cuo *CardUpdateOne) SetOwnerID(i int) *CardUpdateOne + type Cards []*Card + type Cars []*Car + type Client struct + Car *CarClient + Card *CardClient + Info *InfoClient + Metadata *MetadataClient + Node *NodeClient + Pet *PetClient + Post *PostClient + Rental *RentalClient + Schema *migrate.Schema + User *UserClient + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type Info struct + Content json.RawMessage + Edges InfoEdges + ID int + func (i *Info) QueryUser() *UserQuery + func (i *Info) String() string + func (i *Info) Unwrap() *Info + func (i *Info) Update() *InfoUpdateOne + type InfoClient struct + func NewInfoClient(c config) *InfoClient + func (c *InfoClient) Create() *InfoCreate + func (c *InfoClient) CreateBulk(builders ...*InfoCreate) *InfoCreateBulk + func (c *InfoClient) Delete() *InfoDelete + func (c *InfoClient) DeleteOne(i *Info) *InfoDeleteOne + func (c *InfoClient) DeleteOneID(id int) *InfoDeleteOne + func (c *InfoClient) Get(ctx context.Context, id int) (*Info, error) + func (c *InfoClient) GetX(ctx context.Context, id int) *Info + func (c *InfoClient) Hooks() []Hook + func (c *InfoClient) Query() *InfoQuery + func (c *InfoClient) QueryUser(i *Info) *UserQuery + func (c *InfoClient) Update() *InfoUpdate + func (c *InfoClient) UpdateOne(i *Info) *InfoUpdateOne + func (c *InfoClient) UpdateOneID(id int) *InfoUpdateOne + func (c *InfoClient) Use(hooks ...Hook) + type InfoCreate struct + func (ic *InfoCreate) Exec(ctx context.Context) error + func (ic *InfoCreate) ExecX(ctx context.Context) + func (ic *InfoCreate) Mutation() *InfoMutation + func (ic *InfoCreate) Save(ctx context.Context) (*Info, error) + func (ic *InfoCreate) SaveX(ctx context.Context) *Info + func (ic *InfoCreate) SetContent(jm json.RawMessage) *InfoCreate + func (ic *InfoCreate) SetID(i int) *InfoCreate + func (ic *InfoCreate) SetNillableUserID(id *int) *InfoCreate + func (ic *InfoCreate) SetUser(u *User) *InfoCreate + func (ic *InfoCreate) SetUserID(id int) *InfoCreate + type InfoCreateBulk struct + func (icb *InfoCreateBulk) Exec(ctx context.Context) error + func (icb *InfoCreateBulk) ExecX(ctx context.Context) + func (icb *InfoCreateBulk) Save(ctx context.Context) ([]*Info, error) + func (icb *InfoCreateBulk) SaveX(ctx context.Context) []*Info + type InfoDelete struct + func (id *InfoDelete) Exec(ctx context.Context) (int, error) + func (id *InfoDelete) ExecX(ctx context.Context) int + func (id *InfoDelete) Where(ps ...predicate.Info) *InfoDelete + type InfoDeleteOne struct + func (ido *InfoDeleteOne) Exec(ctx context.Context) error + func (ido *InfoDeleteOne) ExecX(ctx context.Context) + type InfoEdges struct + User *User + func (e InfoEdges) UserOrErr() (*User, error) + type InfoGroupBy struct + func (igb *InfoGroupBy) Aggregate(fns ...AggregateFunc) *InfoGroupBy + func (igb *InfoGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *InfoGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *InfoGroupBy) BoolX(ctx context.Context) bool + func (s *InfoGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *InfoGroupBy) BoolsX(ctx context.Context) []bool + func (s *InfoGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *InfoGroupBy) Float64X(ctx context.Context) float64 + func (s *InfoGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *InfoGroupBy) Float64sX(ctx context.Context) []float64 + func (s *InfoGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *InfoGroupBy) IntX(ctx context.Context) int + func (s *InfoGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *InfoGroupBy) IntsX(ctx context.Context) []int + func (s *InfoGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *InfoGroupBy) String(ctx context.Context) (_ string, err error) + func (s *InfoGroupBy) StringX(ctx context.Context) string + func (s *InfoGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *InfoGroupBy) StringsX(ctx context.Context) []string + type InfoMutation struct + func (m *InfoMutation) AddField(name string, value ent.Value) error + func (m *InfoMutation) AddedEdges() []string + func (m *InfoMutation) AddedField(name string) (ent.Value, bool) + func (m *InfoMutation) AddedFields() []string + func (m *InfoMutation) AddedIDs(name string) []ent.Value + func (m *InfoMutation) ClearEdge(name string) error + func (m *InfoMutation) ClearField(name string) error + func (m *InfoMutation) ClearUser() + func (m *InfoMutation) ClearedEdges() []string + func (m *InfoMutation) ClearedFields() []string + func (m *InfoMutation) Content() (r json.RawMessage, exists bool) + func (m *InfoMutation) EdgeCleared(name string) bool + func (m *InfoMutation) Field(name string) (ent.Value, bool) + func (m *InfoMutation) FieldCleared(name string) bool + func (m *InfoMutation) Fields() []string + func (m *InfoMutation) ID() (id int, exists bool) + func (m *InfoMutation) IDs(ctx context.Context) ([]int, error) + func (m *InfoMutation) OldContent(ctx context.Context) (v json.RawMessage, err error) + func (m *InfoMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *InfoMutation) Op() Op + func (m *InfoMutation) RemovedEdges() []string + func (m *InfoMutation) RemovedIDs(name string) []ent.Value + func (m *InfoMutation) ResetContent() + func (m *InfoMutation) ResetEdge(name string) error + func (m *InfoMutation) ResetField(name string) error + func (m *InfoMutation) ResetUser() + func (m *InfoMutation) SetContent(jm json.RawMessage) + func (m *InfoMutation) SetField(name string, value ent.Value) error + func (m *InfoMutation) SetID(id int) + func (m *InfoMutation) SetUserID(id int) + func (m *InfoMutation) Type() string + func (m *InfoMutation) UserCleared() bool + func (m *InfoMutation) UserID() (id int, exists bool) + func (m *InfoMutation) UserIDs() (ids []int) + func (m *InfoMutation) Where(ps ...predicate.Info) + func (m InfoMutation) Client() *Client + func (m InfoMutation) Tx() (*Tx, error) + type InfoQuery struct + func (iq *InfoQuery) All(ctx context.Context) ([]*Info, error) + func (iq *InfoQuery) AllX(ctx context.Context) []*Info + func (iq *InfoQuery) Clone() *InfoQuery + func (iq *InfoQuery) Count(ctx context.Context) (int, error) + func (iq *InfoQuery) CountX(ctx context.Context) int + func (iq *InfoQuery) Exist(ctx context.Context) (bool, error) + func (iq *InfoQuery) ExistX(ctx context.Context) bool + func (iq *InfoQuery) First(ctx context.Context) (*Info, error) + func (iq *InfoQuery) FirstID(ctx context.Context) (id int, err error) + func (iq *InfoQuery) FirstIDX(ctx context.Context) int + func (iq *InfoQuery) FirstX(ctx context.Context) *Info + func (iq *InfoQuery) GroupBy(field string, fields ...string) *InfoGroupBy + func (iq *InfoQuery) IDs(ctx context.Context) ([]int, error) + func (iq *InfoQuery) IDsX(ctx context.Context) []int + func (iq *InfoQuery) Limit(limit int) *InfoQuery + func (iq *InfoQuery) Offset(offset int) *InfoQuery + func (iq *InfoQuery) Only(ctx context.Context) (*Info, error) + func (iq *InfoQuery) OnlyID(ctx context.Context) (id int, err error) + func (iq *InfoQuery) OnlyIDX(ctx context.Context) int + func (iq *InfoQuery) OnlyX(ctx context.Context) *Info + func (iq *InfoQuery) Order(o ...OrderFunc) *InfoQuery + func (iq *InfoQuery) QueryUser() *UserQuery + func (iq *InfoQuery) Select(fields ...string) *InfoSelect + func (iq *InfoQuery) Unique(unique bool) *InfoQuery + func (iq *InfoQuery) Where(ps ...predicate.Info) *InfoQuery + func (iq *InfoQuery) WithUser(opts ...func(*UserQuery)) *InfoQuery + type InfoSelect struct + func (is *InfoSelect) Scan(ctx context.Context, v interface{}) error + func (s *InfoSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *InfoSelect) BoolX(ctx context.Context) bool + func (s *InfoSelect) Bools(ctx context.Context) ([]bool, error) + func (s *InfoSelect) BoolsX(ctx context.Context) []bool + func (s *InfoSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *InfoSelect) Float64X(ctx context.Context) float64 + func (s *InfoSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *InfoSelect) Float64sX(ctx context.Context) []float64 + func (s *InfoSelect) Int(ctx context.Context) (_ int, err error) + func (s *InfoSelect) IntX(ctx context.Context) int + func (s *InfoSelect) Ints(ctx context.Context) ([]int, error) + func (s *InfoSelect) IntsX(ctx context.Context) []int + func (s *InfoSelect) ScanX(ctx context.Context, v interface{}) + func (s *InfoSelect) String(ctx context.Context) (_ string, err error) + func (s *InfoSelect) StringX(ctx context.Context) string + func (s *InfoSelect) Strings(ctx context.Context) ([]string, error) + func (s *InfoSelect) StringsX(ctx context.Context) []string + type InfoUpdate struct + func (iu *InfoUpdate) ClearUser() *InfoUpdate + func (iu *InfoUpdate) Exec(ctx context.Context) error + func (iu *InfoUpdate) ExecX(ctx context.Context) + func (iu *InfoUpdate) Mutation() *InfoMutation + func (iu *InfoUpdate) Save(ctx context.Context) (int, error) + func (iu *InfoUpdate) SaveX(ctx context.Context) int + func (iu *InfoUpdate) SetContent(jm json.RawMessage) *InfoUpdate + func (iu *InfoUpdate) SetNillableUserID(id *int) *InfoUpdate + func (iu *InfoUpdate) SetUser(u *User) *InfoUpdate + func (iu *InfoUpdate) SetUserID(id int) *InfoUpdate + func (iu *InfoUpdate) Where(ps ...predicate.Info) *InfoUpdate + type InfoUpdateOne struct + func (iuo *InfoUpdateOne) ClearUser() *InfoUpdateOne + func (iuo *InfoUpdateOne) Exec(ctx context.Context) error + func (iuo *InfoUpdateOne) ExecX(ctx context.Context) + func (iuo *InfoUpdateOne) Mutation() *InfoMutation + func (iuo *InfoUpdateOne) Save(ctx context.Context) (*Info, error) + func (iuo *InfoUpdateOne) SaveX(ctx context.Context) *Info + func (iuo *InfoUpdateOne) Select(field string, fields ...string) *InfoUpdateOne + func (iuo *InfoUpdateOne) SetContent(jm json.RawMessage) *InfoUpdateOne + func (iuo *InfoUpdateOne) SetNillableUserID(id *int) *InfoUpdateOne + func (iuo *InfoUpdateOne) SetUser(u *User) *InfoUpdateOne + func (iuo *InfoUpdateOne) SetUserID(id int) *InfoUpdateOne + type Infos []*Info + type Metadata struct + Age int + Edges MetadataEdges + ID int + ParentID int + func (m *Metadata) QueryChildren() *MetadataQuery + func (m *Metadata) QueryParent() *MetadataQuery + func (m *Metadata) QueryUser() *UserQuery + func (m *Metadata) String() string + func (m *Metadata) Unwrap() *Metadata + func (m *Metadata) Update() *MetadataUpdateOne + type MetadataClient struct + func NewMetadataClient(c config) *MetadataClient + func (c *MetadataClient) Create() *MetadataCreate + func (c *MetadataClient) CreateBulk(builders ...*MetadataCreate) *MetadataCreateBulk + func (c *MetadataClient) Delete() *MetadataDelete + func (c *MetadataClient) DeleteOne(m *Metadata) *MetadataDeleteOne + func (c *MetadataClient) DeleteOneID(id int) *MetadataDeleteOne + func (c *MetadataClient) Get(ctx context.Context, id int) (*Metadata, error) + func (c *MetadataClient) GetX(ctx context.Context, id int) *Metadata + func (c *MetadataClient) Hooks() []Hook + func (c *MetadataClient) Query() *MetadataQuery + func (c *MetadataClient) QueryChildren(m *Metadata) *MetadataQuery + func (c *MetadataClient) QueryParent(m *Metadata) *MetadataQuery + func (c *MetadataClient) QueryUser(m *Metadata) *UserQuery + func (c *MetadataClient) Update() *MetadataUpdate + func (c *MetadataClient) UpdateOne(m *Metadata) *MetadataUpdateOne + func (c *MetadataClient) UpdateOneID(id int) *MetadataUpdateOne + func (c *MetadataClient) Use(hooks ...Hook) + type MetadataCreate struct + func (mc *MetadataCreate) AddChildIDs(ids ...int) *MetadataCreate + func (mc *MetadataCreate) AddChildren(m ...*Metadata) *MetadataCreate + func (mc *MetadataCreate) Exec(ctx context.Context) error + func (mc *MetadataCreate) ExecX(ctx context.Context) + func (mc *MetadataCreate) Mutation() *MetadataMutation + func (mc *MetadataCreate) Save(ctx context.Context) (*Metadata, error) + func (mc *MetadataCreate) SaveX(ctx context.Context) *Metadata + func (mc *MetadataCreate) SetAge(i int) *MetadataCreate + func (mc *MetadataCreate) SetID(i int) *MetadataCreate + func (mc *MetadataCreate) SetNillableAge(i *int) *MetadataCreate + func (mc *MetadataCreate) SetNillableParentID(i *int) *MetadataCreate + func (mc *MetadataCreate) SetNillableUserID(id *int) *MetadataCreate + func (mc *MetadataCreate) SetParent(m *Metadata) *MetadataCreate + func (mc *MetadataCreate) SetParentID(i int) *MetadataCreate + func (mc *MetadataCreate) SetUser(u *User) *MetadataCreate + func (mc *MetadataCreate) SetUserID(id int) *MetadataCreate + type MetadataCreateBulk struct + func (mcb *MetadataCreateBulk) Exec(ctx context.Context) error + func (mcb *MetadataCreateBulk) ExecX(ctx context.Context) + func (mcb *MetadataCreateBulk) Save(ctx context.Context) ([]*Metadata, error) + func (mcb *MetadataCreateBulk) SaveX(ctx context.Context) []*Metadata + type MetadataDelete struct + func (md *MetadataDelete) Exec(ctx context.Context) (int, error) + func (md *MetadataDelete) ExecX(ctx context.Context) int + func (md *MetadataDelete) Where(ps ...predicate.Metadata) *MetadataDelete + type MetadataDeleteOne struct + func (mdo *MetadataDeleteOne) Exec(ctx context.Context) error + func (mdo *MetadataDeleteOne) ExecX(ctx context.Context) + type MetadataEdges struct + Children []*Metadata + Parent *Metadata + User *User + func (e MetadataEdges) ChildrenOrErr() ([]*Metadata, error) + func (e MetadataEdges) ParentOrErr() (*Metadata, error) + func (e MetadataEdges) UserOrErr() (*User, error) + type MetadataGroupBy struct + func (mgb *MetadataGroupBy) Aggregate(fns ...AggregateFunc) *MetadataGroupBy + func (mgb *MetadataGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *MetadataGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *MetadataGroupBy) BoolX(ctx context.Context) bool + func (s *MetadataGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *MetadataGroupBy) BoolsX(ctx context.Context) []bool + func (s *MetadataGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *MetadataGroupBy) Float64X(ctx context.Context) float64 + func (s *MetadataGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *MetadataGroupBy) Float64sX(ctx context.Context) []float64 + func (s *MetadataGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *MetadataGroupBy) IntX(ctx context.Context) int + func (s *MetadataGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *MetadataGroupBy) IntsX(ctx context.Context) []int + func (s *MetadataGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *MetadataGroupBy) String(ctx context.Context) (_ string, err error) + func (s *MetadataGroupBy) StringX(ctx context.Context) string + func (s *MetadataGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *MetadataGroupBy) StringsX(ctx context.Context) []string + type MetadataMutation struct + func (m *MetadataMutation) AddAge(i int) + func (m *MetadataMutation) AddChildIDs(ids ...int) + func (m *MetadataMutation) AddField(name string, value ent.Value) error + func (m *MetadataMutation) AddedAge() (r int, exists bool) + func (m *MetadataMutation) AddedEdges() []string + func (m *MetadataMutation) AddedField(name string) (ent.Value, bool) + func (m *MetadataMutation) AddedFields() []string + func (m *MetadataMutation) AddedIDs(name string) []ent.Value + func (m *MetadataMutation) Age() (r int, exists bool) + func (m *MetadataMutation) ChildrenCleared() bool + func (m *MetadataMutation) ChildrenIDs() (ids []int) + func (m *MetadataMutation) ClearChildren() + func (m *MetadataMutation) ClearEdge(name string) error + func (m *MetadataMutation) ClearField(name string) error + func (m *MetadataMutation) ClearParent() + func (m *MetadataMutation) ClearParentID() + func (m *MetadataMutation) ClearUser() + func (m *MetadataMutation) ClearedEdges() []string + func (m *MetadataMutation) ClearedFields() []string + func (m *MetadataMutation) EdgeCleared(name string) bool + func (m *MetadataMutation) Field(name string) (ent.Value, bool) + func (m *MetadataMutation) FieldCleared(name string) bool + func (m *MetadataMutation) Fields() []string + func (m *MetadataMutation) ID() (id int, exists bool) + func (m *MetadataMutation) IDs(ctx context.Context) ([]int, error) + func (m *MetadataMutation) OldAge(ctx context.Context) (v int, err error) + func (m *MetadataMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *MetadataMutation) OldParentID(ctx context.Context) (v int, err error) + func (m *MetadataMutation) Op() Op + func (m *MetadataMutation) ParentCleared() bool + func (m *MetadataMutation) ParentID() (r int, exists bool) + func (m *MetadataMutation) ParentIDCleared() bool + func (m *MetadataMutation) ParentIDs() (ids []int) + func (m *MetadataMutation) RemoveChildIDs(ids ...int) + func (m *MetadataMutation) RemovedChildrenIDs() (ids []int) + func (m *MetadataMutation) RemovedEdges() []string + func (m *MetadataMutation) RemovedIDs(name string) []ent.Value + func (m *MetadataMutation) ResetAge() + func (m *MetadataMutation) ResetChildren() + func (m *MetadataMutation) ResetEdge(name string) error + func (m *MetadataMutation) ResetField(name string) error + func (m *MetadataMutation) ResetParent() + func (m *MetadataMutation) ResetParentID() + func (m *MetadataMutation) ResetUser() + func (m *MetadataMutation) SetAge(i int) + func (m *MetadataMutation) SetField(name string, value ent.Value) error + func (m *MetadataMutation) SetID(id int) + func (m *MetadataMutation) SetParentID(i int) + func (m *MetadataMutation) SetUserID(id int) + func (m *MetadataMutation) Type() string + func (m *MetadataMutation) UserCleared() bool + func (m *MetadataMutation) UserID() (id int, exists bool) + func (m *MetadataMutation) UserIDs() (ids []int) + func (m *MetadataMutation) Where(ps ...predicate.Metadata) + func (m MetadataMutation) Client() *Client + func (m MetadataMutation) Tx() (*Tx, error) + type MetadataQuery struct + func (mq *MetadataQuery) All(ctx context.Context) ([]*Metadata, error) + func (mq *MetadataQuery) AllX(ctx context.Context) []*Metadata + func (mq *MetadataQuery) Clone() *MetadataQuery + func (mq *MetadataQuery) Count(ctx context.Context) (int, error) + func (mq *MetadataQuery) CountX(ctx context.Context) int + func (mq *MetadataQuery) Exist(ctx context.Context) (bool, error) + func (mq *MetadataQuery) ExistX(ctx context.Context) bool + func (mq *MetadataQuery) First(ctx context.Context) (*Metadata, error) + func (mq *MetadataQuery) FirstID(ctx context.Context) (id int, err error) + func (mq *MetadataQuery) FirstIDX(ctx context.Context) int + func (mq *MetadataQuery) FirstX(ctx context.Context) *Metadata + func (mq *MetadataQuery) GroupBy(field string, fields ...string) *MetadataGroupBy + func (mq *MetadataQuery) IDs(ctx context.Context) ([]int, error) + func (mq *MetadataQuery) IDsX(ctx context.Context) []int + func (mq *MetadataQuery) Limit(limit int) *MetadataQuery + func (mq *MetadataQuery) Offset(offset int) *MetadataQuery + func (mq *MetadataQuery) Only(ctx context.Context) (*Metadata, error) + func (mq *MetadataQuery) OnlyID(ctx context.Context) (id int, err error) + func (mq *MetadataQuery) OnlyIDX(ctx context.Context) int + func (mq *MetadataQuery) OnlyX(ctx context.Context) *Metadata + func (mq *MetadataQuery) Order(o ...OrderFunc) *MetadataQuery + func (mq *MetadataQuery) QueryChildren() *MetadataQuery + func (mq *MetadataQuery) QueryParent() *MetadataQuery + func (mq *MetadataQuery) QueryUser() *UserQuery + func (mq *MetadataQuery) Select(fields ...string) *MetadataSelect + func (mq *MetadataQuery) Unique(unique bool) *MetadataQuery + func (mq *MetadataQuery) Where(ps ...predicate.Metadata) *MetadataQuery + func (mq *MetadataQuery) WithChildren(opts ...func(*MetadataQuery)) *MetadataQuery + func (mq *MetadataQuery) WithParent(opts ...func(*MetadataQuery)) *MetadataQuery + func (mq *MetadataQuery) WithUser(opts ...func(*UserQuery)) *MetadataQuery + type MetadataSelect struct + func (ms *MetadataSelect) Scan(ctx context.Context, v interface{}) error + func (s *MetadataSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *MetadataSelect) BoolX(ctx context.Context) bool + func (s *MetadataSelect) Bools(ctx context.Context) ([]bool, error) + func (s *MetadataSelect) BoolsX(ctx context.Context) []bool + func (s *MetadataSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *MetadataSelect) Float64X(ctx context.Context) float64 + func (s *MetadataSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *MetadataSelect) Float64sX(ctx context.Context) []float64 + func (s *MetadataSelect) Int(ctx context.Context) (_ int, err error) + func (s *MetadataSelect) IntX(ctx context.Context) int + func (s *MetadataSelect) Ints(ctx context.Context) ([]int, error) + func (s *MetadataSelect) IntsX(ctx context.Context) []int + func (s *MetadataSelect) ScanX(ctx context.Context, v interface{}) + func (s *MetadataSelect) String(ctx context.Context) (_ string, err error) + func (s *MetadataSelect) StringX(ctx context.Context) string + func (s *MetadataSelect) Strings(ctx context.Context) ([]string, error) + func (s *MetadataSelect) StringsX(ctx context.Context) []string + type MetadataSlice []*Metadata + type MetadataUpdate struct + func (mu *MetadataUpdate) AddAge(i int) *MetadataUpdate + func (mu *MetadataUpdate) AddChildIDs(ids ...int) *MetadataUpdate + func (mu *MetadataUpdate) AddChildren(m ...*Metadata) *MetadataUpdate + func (mu *MetadataUpdate) ClearChildren() *MetadataUpdate + func (mu *MetadataUpdate) ClearParent() *MetadataUpdate + func (mu *MetadataUpdate) ClearParentID() *MetadataUpdate + func (mu *MetadataUpdate) ClearUser() *MetadataUpdate + func (mu *MetadataUpdate) Exec(ctx context.Context) error + func (mu *MetadataUpdate) ExecX(ctx context.Context) + func (mu *MetadataUpdate) Mutation() *MetadataMutation + func (mu *MetadataUpdate) RemoveChildIDs(ids ...int) *MetadataUpdate + func (mu *MetadataUpdate) RemoveChildren(m ...*Metadata) *MetadataUpdate + func (mu *MetadataUpdate) Save(ctx context.Context) (int, error) + func (mu *MetadataUpdate) SaveX(ctx context.Context) int + func (mu *MetadataUpdate) SetAge(i int) *MetadataUpdate + func (mu *MetadataUpdate) SetNillableAge(i *int) *MetadataUpdate + func (mu *MetadataUpdate) SetNillableParentID(i *int) *MetadataUpdate + func (mu *MetadataUpdate) SetNillableUserID(id *int) *MetadataUpdate + func (mu *MetadataUpdate) SetParent(m *Metadata) *MetadataUpdate + func (mu *MetadataUpdate) SetParentID(i int) *MetadataUpdate + func (mu *MetadataUpdate) SetUser(u *User) *MetadataUpdate + func (mu *MetadataUpdate) SetUserID(id int) *MetadataUpdate + func (mu *MetadataUpdate) Where(ps ...predicate.Metadata) *MetadataUpdate + type MetadataUpdateOne struct + func (muo *MetadataUpdateOne) AddAge(i int) *MetadataUpdateOne + func (muo *MetadataUpdateOne) AddChildIDs(ids ...int) *MetadataUpdateOne + func (muo *MetadataUpdateOne) AddChildren(m ...*Metadata) *MetadataUpdateOne + func (muo *MetadataUpdateOne) ClearChildren() *MetadataUpdateOne + func (muo *MetadataUpdateOne) ClearParent() *MetadataUpdateOne + func (muo *MetadataUpdateOne) ClearParentID() *MetadataUpdateOne + func (muo *MetadataUpdateOne) ClearUser() *MetadataUpdateOne + func (muo *MetadataUpdateOne) Exec(ctx context.Context) error + func (muo *MetadataUpdateOne) ExecX(ctx context.Context) + func (muo *MetadataUpdateOne) Mutation() *MetadataMutation + func (muo *MetadataUpdateOne) RemoveChildIDs(ids ...int) *MetadataUpdateOne + func (muo *MetadataUpdateOne) RemoveChildren(m ...*Metadata) *MetadataUpdateOne + func (muo *MetadataUpdateOne) Save(ctx context.Context) (*Metadata, error) + func (muo *MetadataUpdateOne) SaveX(ctx context.Context) *Metadata + func (muo *MetadataUpdateOne) Select(field string, fields ...string) *MetadataUpdateOne + func (muo *MetadataUpdateOne) SetAge(i int) *MetadataUpdateOne + func (muo *MetadataUpdateOne) SetNillableAge(i *int) *MetadataUpdateOne + func (muo *MetadataUpdateOne) SetNillableParentID(i *int) *MetadataUpdateOne + func (muo *MetadataUpdateOne) SetNillableUserID(id *int) *MetadataUpdateOne + func (muo *MetadataUpdateOne) SetParent(m *Metadata) *MetadataUpdateOne + func (muo *MetadataUpdateOne) SetParentID(i int) *MetadataUpdateOne + func (muo *MetadataUpdateOne) SetUser(u *User) *MetadataUpdateOne + func (muo *MetadataUpdateOne) SetUserID(id int) *MetadataUpdateOne + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type Node struct + Edges NodeEdges + ID int + PrevID int + Value int + func (n *Node) QueryNext() *NodeQuery + func (n *Node) QueryPrev() *NodeQuery + func (n *Node) String() string + func (n *Node) Unwrap() *Node + func (n *Node) Update() *NodeUpdateOne + type NodeClient struct + func NewNodeClient(c config) *NodeClient + func (c *NodeClient) Create() *NodeCreate + func (c *NodeClient) CreateBulk(builders ...*NodeCreate) *NodeCreateBulk + func (c *NodeClient) Delete() *NodeDelete + func (c *NodeClient) DeleteOne(n *Node) *NodeDeleteOne + func (c *NodeClient) DeleteOneID(id int) *NodeDeleteOne + func (c *NodeClient) Get(ctx context.Context, id int) (*Node, error) + func (c *NodeClient) GetX(ctx context.Context, id int) *Node + func (c *NodeClient) Hooks() []Hook + func (c *NodeClient) Query() *NodeQuery + func (c *NodeClient) QueryNext(n *Node) *NodeQuery + func (c *NodeClient) QueryPrev(n *Node) *NodeQuery + func (c *NodeClient) Update() *NodeUpdate + func (c *NodeClient) UpdateOne(n *Node) *NodeUpdateOne + func (c *NodeClient) UpdateOneID(id int) *NodeUpdateOne + func (c *NodeClient) Use(hooks ...Hook) + type NodeCreate struct + func (nc *NodeCreate) Exec(ctx context.Context) error + func (nc *NodeCreate) ExecX(ctx context.Context) + func (nc *NodeCreate) Mutation() *NodeMutation + func (nc *NodeCreate) Save(ctx context.Context) (*Node, error) + func (nc *NodeCreate) SaveX(ctx context.Context) *Node + func (nc *NodeCreate) SetNext(n *Node) *NodeCreate + func (nc *NodeCreate) SetNextID(id int) *NodeCreate + func (nc *NodeCreate) SetNillableNextID(id *int) *NodeCreate + func (nc *NodeCreate) SetNillablePrevID(i *int) *NodeCreate + func (nc *NodeCreate) SetNillableValue(i *int) *NodeCreate + func (nc *NodeCreate) SetPrev(n *Node) *NodeCreate + func (nc *NodeCreate) SetPrevID(i int) *NodeCreate + func (nc *NodeCreate) SetValue(i int) *NodeCreate + type NodeCreateBulk struct + func (ncb *NodeCreateBulk) Exec(ctx context.Context) error + func (ncb *NodeCreateBulk) ExecX(ctx context.Context) + func (ncb *NodeCreateBulk) Save(ctx context.Context) ([]*Node, error) + func (ncb *NodeCreateBulk) SaveX(ctx context.Context) []*Node + type NodeDelete struct + func (nd *NodeDelete) Exec(ctx context.Context) (int, error) + func (nd *NodeDelete) ExecX(ctx context.Context) int + func (nd *NodeDelete) Where(ps ...predicate.Node) *NodeDelete + type NodeDeleteOne struct + func (ndo *NodeDeleteOne) Exec(ctx context.Context) error + func (ndo *NodeDeleteOne) ExecX(ctx context.Context) + type NodeEdges struct + Next *Node + Prev *Node + func (e NodeEdges) NextOrErr() (*Node, error) + func (e NodeEdges) PrevOrErr() (*Node, error) + type NodeGroupBy struct + func (ngb *NodeGroupBy) Aggregate(fns ...AggregateFunc) *NodeGroupBy + func (ngb *NodeGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *NodeGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *NodeGroupBy) BoolX(ctx context.Context) bool + func (s *NodeGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *NodeGroupBy) BoolsX(ctx context.Context) []bool + func (s *NodeGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *NodeGroupBy) Float64X(ctx context.Context) float64 + func (s *NodeGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *NodeGroupBy) Float64sX(ctx context.Context) []float64 + func (s *NodeGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *NodeGroupBy) IntX(ctx context.Context) int + func (s *NodeGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *NodeGroupBy) IntsX(ctx context.Context) []int + func (s *NodeGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *NodeGroupBy) String(ctx context.Context) (_ string, err error) + func (s *NodeGroupBy) StringX(ctx context.Context) string + func (s *NodeGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *NodeGroupBy) StringsX(ctx context.Context) []string + type NodeMutation struct + func (m *NodeMutation) AddField(name string, value ent.Value) error + func (m *NodeMutation) AddValue(i int) + func (m *NodeMutation) AddedEdges() []string + func (m *NodeMutation) AddedField(name string) (ent.Value, bool) + func (m *NodeMutation) AddedFields() []string + func (m *NodeMutation) AddedIDs(name string) []ent.Value + func (m *NodeMutation) AddedValue() (r int, exists bool) + func (m *NodeMutation) ClearEdge(name string) error + func (m *NodeMutation) ClearField(name string) error + func (m *NodeMutation) ClearNext() + func (m *NodeMutation) ClearPrev() + func (m *NodeMutation) ClearPrevID() + func (m *NodeMutation) ClearedEdges() []string + func (m *NodeMutation) ClearedFields() []string + func (m *NodeMutation) EdgeCleared(name string) bool + func (m *NodeMutation) Field(name string) (ent.Value, bool) + func (m *NodeMutation) FieldCleared(name string) bool + func (m *NodeMutation) Fields() []string + func (m *NodeMutation) ID() (id int, exists bool) + func (m *NodeMutation) IDs(ctx context.Context) ([]int, error) + func (m *NodeMutation) NextCleared() bool + func (m *NodeMutation) NextID() (id int, exists bool) + func (m *NodeMutation) NextIDs() (ids []int) + func (m *NodeMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *NodeMutation) OldPrevID(ctx context.Context) (v int, err error) + func (m *NodeMutation) OldValue(ctx context.Context) (v int, err error) + func (m *NodeMutation) Op() Op + func (m *NodeMutation) PrevCleared() bool + func (m *NodeMutation) PrevID() (r int, exists bool) + func (m *NodeMutation) PrevIDCleared() bool + func (m *NodeMutation) PrevIDs() (ids []int) + func (m *NodeMutation) RemovedEdges() []string + func (m *NodeMutation) RemovedIDs(name string) []ent.Value + func (m *NodeMutation) ResetEdge(name string) error + func (m *NodeMutation) ResetField(name string) error + func (m *NodeMutation) ResetNext() + func (m *NodeMutation) ResetPrev() + func (m *NodeMutation) ResetPrevID() + func (m *NodeMutation) ResetValue() + func (m *NodeMutation) SetField(name string, value ent.Value) error + func (m *NodeMutation) SetNextID(id int) + func (m *NodeMutation) SetPrevID(i int) + func (m *NodeMutation) SetValue(i int) + func (m *NodeMutation) Type() string + func (m *NodeMutation) Value() (r int, exists bool) + func (m *NodeMutation) Where(ps ...predicate.Node) + func (m NodeMutation) Client() *Client + func (m NodeMutation) Tx() (*Tx, error) + type NodeQuery struct + func (nq *NodeQuery) All(ctx context.Context) ([]*Node, error) + func (nq *NodeQuery) AllX(ctx context.Context) []*Node + func (nq *NodeQuery) Clone() *NodeQuery + func (nq *NodeQuery) Count(ctx context.Context) (int, error) + func (nq *NodeQuery) CountX(ctx context.Context) int + func (nq *NodeQuery) Exist(ctx context.Context) (bool, error) + func (nq *NodeQuery) ExistX(ctx context.Context) bool + func (nq *NodeQuery) First(ctx context.Context) (*Node, error) + func (nq *NodeQuery) FirstID(ctx context.Context) (id int, err error) + func (nq *NodeQuery) FirstIDX(ctx context.Context) int + func (nq *NodeQuery) FirstX(ctx context.Context) *Node + func (nq *NodeQuery) GroupBy(field string, fields ...string) *NodeGroupBy + func (nq *NodeQuery) IDs(ctx context.Context) ([]int, error) + func (nq *NodeQuery) IDsX(ctx context.Context) []int + func (nq *NodeQuery) Limit(limit int) *NodeQuery + func (nq *NodeQuery) Offset(offset int) *NodeQuery + func (nq *NodeQuery) Only(ctx context.Context) (*Node, error) + func (nq *NodeQuery) OnlyID(ctx context.Context) (id int, err error) + func (nq *NodeQuery) OnlyIDX(ctx context.Context) int + func (nq *NodeQuery) OnlyX(ctx context.Context) *Node + func (nq *NodeQuery) Order(o ...OrderFunc) *NodeQuery + func (nq *NodeQuery) QueryNext() *NodeQuery + func (nq *NodeQuery) QueryPrev() *NodeQuery + func (nq *NodeQuery) Select(fields ...string) *NodeSelect + func (nq *NodeQuery) Unique(unique bool) *NodeQuery + func (nq *NodeQuery) Where(ps ...predicate.Node) *NodeQuery + func (nq *NodeQuery) WithNext(opts ...func(*NodeQuery)) *NodeQuery + func (nq *NodeQuery) WithPrev(opts ...func(*NodeQuery)) *NodeQuery + type NodeSelect struct + func (ns *NodeSelect) Scan(ctx context.Context, v interface{}) error + func (s *NodeSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *NodeSelect) BoolX(ctx context.Context) bool + func (s *NodeSelect) Bools(ctx context.Context) ([]bool, error) + func (s *NodeSelect) BoolsX(ctx context.Context) []bool + func (s *NodeSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *NodeSelect) Float64X(ctx context.Context) float64 + func (s *NodeSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *NodeSelect) Float64sX(ctx context.Context) []float64 + func (s *NodeSelect) Int(ctx context.Context) (_ int, err error) + func (s *NodeSelect) IntX(ctx context.Context) int + func (s *NodeSelect) Ints(ctx context.Context) ([]int, error) + func (s *NodeSelect) IntsX(ctx context.Context) []int + func (s *NodeSelect) ScanX(ctx context.Context, v interface{}) + func (s *NodeSelect) String(ctx context.Context) (_ string, err error) + func (s *NodeSelect) StringX(ctx context.Context) string + func (s *NodeSelect) Strings(ctx context.Context) ([]string, error) + func (s *NodeSelect) StringsX(ctx context.Context) []string + type NodeUpdate struct + func (nu *NodeUpdate) AddValue(i int) *NodeUpdate + func (nu *NodeUpdate) ClearNext() *NodeUpdate + func (nu *NodeUpdate) ClearPrev() *NodeUpdate + func (nu *NodeUpdate) ClearPrevID() *NodeUpdate + func (nu *NodeUpdate) Exec(ctx context.Context) error + func (nu *NodeUpdate) ExecX(ctx context.Context) + func (nu *NodeUpdate) Mutation() *NodeMutation + func (nu *NodeUpdate) Save(ctx context.Context) (int, error) + func (nu *NodeUpdate) SaveX(ctx context.Context) int + func (nu *NodeUpdate) SetNext(n *Node) *NodeUpdate + func (nu *NodeUpdate) SetNextID(id int) *NodeUpdate + func (nu *NodeUpdate) SetNillableNextID(id *int) *NodeUpdate + func (nu *NodeUpdate) SetNillablePrevID(i *int) *NodeUpdate + func (nu *NodeUpdate) SetNillableValue(i *int) *NodeUpdate + func (nu *NodeUpdate) SetPrev(n *Node) *NodeUpdate + func (nu *NodeUpdate) SetPrevID(i int) *NodeUpdate + func (nu *NodeUpdate) SetValue(i int) *NodeUpdate + func (nu *NodeUpdate) Where(ps ...predicate.Node) *NodeUpdate + type NodeUpdateOne struct + func (nuo *NodeUpdateOne) AddValue(i int) *NodeUpdateOne + func (nuo *NodeUpdateOne) ClearNext() *NodeUpdateOne + func (nuo *NodeUpdateOne) ClearPrev() *NodeUpdateOne + func (nuo *NodeUpdateOne) ClearPrevID() *NodeUpdateOne + func (nuo *NodeUpdateOne) Exec(ctx context.Context) error + func (nuo *NodeUpdateOne) ExecX(ctx context.Context) + func (nuo *NodeUpdateOne) Mutation() *NodeMutation + func (nuo *NodeUpdateOne) Save(ctx context.Context) (*Node, error) + func (nuo *NodeUpdateOne) SaveX(ctx context.Context) *Node + func (nuo *NodeUpdateOne) Select(field string, fields ...string) *NodeUpdateOne + func (nuo *NodeUpdateOne) SetNext(n *Node) *NodeUpdateOne + func (nuo *NodeUpdateOne) SetNextID(id int) *NodeUpdateOne + func (nuo *NodeUpdateOne) SetNillableNextID(id *int) *NodeUpdateOne + func (nuo *NodeUpdateOne) SetNillablePrevID(i *int) *NodeUpdateOne + func (nuo *NodeUpdateOne) SetNillableValue(i *int) *NodeUpdateOne + func (nuo *NodeUpdateOne) SetPrev(n *Node) *NodeUpdateOne + func (nuo *NodeUpdateOne) SetPrevID(i int) *NodeUpdateOne + func (nuo *NodeUpdateOne) SetValue(i int) *NodeUpdateOne + type Nodes []*Node + 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 Pet struct + Edges PetEdges + ID int + OwnerID int + 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 int) *PetDeleteOne + func (c *PetClient) Get(ctx context.Context, id int) (*Pet, error) + func (c *PetClient) GetX(ctx context.Context, id int) *Pet + func (c *PetClient) Hooks() []Hook + func (c *PetClient) Query() *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 int) *PetUpdateOne + func (c *PetClient) Use(hooks ...Hook) + type PetCreate struct + 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) SetNillableOwnerID(i *int) *PetCreate + func (pc *PetCreate) SetOwner(u *User) *PetCreate + func (pc *PetCreate) SetOwnerID(i int) *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 + Owner *User + func (e PetEdges) OwnerOrErr() (*User, error) + type PetGroupBy struct + func (pgb *PetGroupBy) Aggregate(fns ...AggregateFunc) *PetGroupBy + func (pgb *PetGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *PetGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *PetGroupBy) BoolX(ctx context.Context) bool + func (s *PetGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *PetGroupBy) BoolsX(ctx context.Context) []bool + func (s *PetGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *PetGroupBy) Float64X(ctx context.Context) float64 + func (s *PetGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *PetGroupBy) Float64sX(ctx context.Context) []float64 + func (s *PetGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *PetGroupBy) IntX(ctx context.Context) int + func (s *PetGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *PetGroupBy) IntsX(ctx context.Context) []int + func (s *PetGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *PetGroupBy) String(ctx context.Context) (_ string, err error) + func (s *PetGroupBy) StringX(ctx context.Context) string + func (s *PetGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *PetGroupBy) StringsX(ctx context.Context) []string + type PetMutation struct + func (m *PetMutation) AddField(name string, value ent.Value) error + 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) ClearEdge(name string) error + func (m *PetMutation) ClearField(name string) error + func (m *PetMutation) ClearOwner() + func (m *PetMutation) ClearOwnerID() + 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) ID() (id int, exists bool) + func (m *PetMutation) IDs(ctx context.Context) ([]int, error) + func (m *PetMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PetMutation) OldOwnerID(ctx context.Context) (v int, err error) + func (m *PetMutation) Op() Op + func (m *PetMutation) OwnerCleared() bool + func (m *PetMutation) OwnerID() (r int, exists bool) + func (m *PetMutation) OwnerIDCleared() bool + func (m *PetMutation) OwnerIDs() (ids []int) + func (m *PetMutation) RemovedEdges() []string + func (m *PetMutation) RemovedIDs(name string) []ent.Value + func (m *PetMutation) ResetEdge(name string) error + func (m *PetMutation) ResetField(name string) error + func (m *PetMutation) ResetOwner() + func (m *PetMutation) ResetOwnerID() + func (m *PetMutation) SetField(name string, value ent.Value) error + func (m *PetMutation) SetOwnerID(i int) + 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 int, err error) + func (pq *PetQuery) FirstIDX(ctx context.Context) int + func (pq *PetQuery) FirstX(ctx context.Context) *Pet + func (pq *PetQuery) GroupBy(field string, fields ...string) *PetGroupBy + func (pq *PetQuery) IDs(ctx context.Context) ([]int, error) + func (pq *PetQuery) IDsX(ctx context.Context) []int + 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 int, err error) + func (pq *PetQuery) OnlyIDX(ctx context.Context) int + func (pq *PetQuery) OnlyX(ctx context.Context) *Pet + func (pq *PetQuery) Order(o ...OrderFunc) *PetQuery + func (pq *PetQuery) QueryOwner() *UserQuery + 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) WithOwner(opts ...func(*UserQuery)) *PetQuery + type PetSelect struct + func (ps *PetSelect) Scan(ctx context.Context, v interface{}) error + func (s *PetSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *PetSelect) BoolX(ctx context.Context) bool + func (s *PetSelect) Bools(ctx context.Context) ([]bool, error) + func (s *PetSelect) BoolsX(ctx context.Context) []bool + func (s *PetSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *PetSelect) Float64X(ctx context.Context) float64 + func (s *PetSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *PetSelect) Float64sX(ctx context.Context) []float64 + func (s *PetSelect) Int(ctx context.Context) (_ int, err error) + func (s *PetSelect) IntX(ctx context.Context) int + func (s *PetSelect) Ints(ctx context.Context) ([]int, error) + func (s *PetSelect) IntsX(ctx context.Context) []int + func (s *PetSelect) ScanX(ctx context.Context, v interface{}) + func (s *PetSelect) String(ctx context.Context) (_ string, err error) + func (s *PetSelect) StringX(ctx context.Context) string + func (s *PetSelect) Strings(ctx context.Context) ([]string, error) + func (s *PetSelect) StringsX(ctx context.Context) []string + type PetUpdate struct + func (pu *PetUpdate) ClearOwner() *PetUpdate + func (pu *PetUpdate) ClearOwnerID() *PetUpdate + func (pu *PetUpdate) Exec(ctx context.Context) error + func (pu *PetUpdate) ExecX(ctx context.Context) + func (pu *PetUpdate) Mutation() *PetMutation + func (pu *PetUpdate) Save(ctx context.Context) (int, error) + func (pu *PetUpdate) SaveX(ctx context.Context) int + func (pu *PetUpdate) SetNillableOwnerID(i *int) *PetUpdate + func (pu *PetUpdate) SetOwner(u *User) *PetUpdate + func (pu *PetUpdate) SetOwnerID(i int) *PetUpdate + func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate + type PetUpdateOne struct + func (puo *PetUpdateOne) ClearOwner() *PetUpdateOne + func (puo *PetUpdateOne) ClearOwnerID() *PetUpdateOne + func (puo *PetUpdateOne) Exec(ctx context.Context) error + func (puo *PetUpdateOne) ExecX(ctx context.Context) + func (puo *PetUpdateOne) Mutation() *PetMutation + 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) SetNillableOwnerID(i *int) *PetUpdateOne + func (puo *PetUpdateOne) SetOwner(u *User) *PetUpdateOne + func (puo *PetUpdateOne) SetOwnerID(i int) *PetUpdateOne + type Pets []*Pet + type Policy = ent.Policy + type Post struct + AuthorID *int + Edges PostEdges + ID int + Text string + func (po *Post) QueryAuthor() *UserQuery + func (po *Post) String() string + func (po *Post) Unwrap() *Post + func (po *Post) Update() *PostUpdateOne + type PostClient struct + func NewPostClient(c config) *PostClient + func (c *PostClient) Create() *PostCreate + func (c *PostClient) CreateBulk(builders ...*PostCreate) *PostCreateBulk + func (c *PostClient) Delete() *PostDelete + func (c *PostClient) DeleteOne(po *Post) *PostDeleteOne + func (c *PostClient) DeleteOneID(id int) *PostDeleteOne + func (c *PostClient) Get(ctx context.Context, id int) (*Post, error) + func (c *PostClient) GetX(ctx context.Context, id int) *Post + func (c *PostClient) Hooks() []Hook + func (c *PostClient) Query() *PostQuery + func (c *PostClient) QueryAuthor(po *Post) *UserQuery + func (c *PostClient) Update() *PostUpdate + func (c *PostClient) UpdateOne(po *Post) *PostUpdateOne + func (c *PostClient) UpdateOneID(id int) *PostUpdateOne + func (c *PostClient) Use(hooks ...Hook) + type PostCreate struct + func (pc *PostCreate) Exec(ctx context.Context) error + func (pc *PostCreate) ExecX(ctx context.Context) + func (pc *PostCreate) Mutation() *PostMutation + func (pc *PostCreate) Save(ctx context.Context) (*Post, error) + func (pc *PostCreate) SaveX(ctx context.Context) *Post + func (pc *PostCreate) SetAuthor(u *User) *PostCreate + func (pc *PostCreate) SetAuthorID(i int) *PostCreate + func (pc *PostCreate) SetNillableAuthorID(i *int) *PostCreate + func (pc *PostCreate) SetText(s string) *PostCreate + type PostCreateBulk struct + func (pcb *PostCreateBulk) Exec(ctx context.Context) error + func (pcb *PostCreateBulk) ExecX(ctx context.Context) + func (pcb *PostCreateBulk) Save(ctx context.Context) ([]*Post, error) + func (pcb *PostCreateBulk) SaveX(ctx context.Context) []*Post + type PostDelete struct + func (pd *PostDelete) Exec(ctx context.Context) (int, error) + func (pd *PostDelete) ExecX(ctx context.Context) int + func (pd *PostDelete) Where(ps ...predicate.Post) *PostDelete + type PostDeleteOne struct + func (pdo *PostDeleteOne) Exec(ctx context.Context) error + func (pdo *PostDeleteOne) ExecX(ctx context.Context) + type PostEdges struct + Author *User + func (e PostEdges) AuthorOrErr() (*User, error) + type PostGroupBy struct + func (pgb *PostGroupBy) Aggregate(fns ...AggregateFunc) *PostGroupBy + func (pgb *PostGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *PostGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *PostGroupBy) BoolX(ctx context.Context) bool + func (s *PostGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *PostGroupBy) BoolsX(ctx context.Context) []bool + func (s *PostGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *PostGroupBy) Float64X(ctx context.Context) float64 + func (s *PostGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *PostGroupBy) Float64sX(ctx context.Context) []float64 + func (s *PostGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *PostGroupBy) IntX(ctx context.Context) int + func (s *PostGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *PostGroupBy) IntsX(ctx context.Context) []int + func (s *PostGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *PostGroupBy) String(ctx context.Context) (_ string, err error) + func (s *PostGroupBy) StringX(ctx context.Context) string + func (s *PostGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *PostGroupBy) StringsX(ctx context.Context) []string + type PostMutation struct + func (m *PostMutation) AddField(name string, value ent.Value) error + func (m *PostMutation) AddedEdges() []string + func (m *PostMutation) AddedField(name string) (ent.Value, bool) + func (m *PostMutation) AddedFields() []string + func (m *PostMutation) AddedIDs(name string) []ent.Value + func (m *PostMutation) AuthorCleared() bool + func (m *PostMutation) AuthorID() (r int, exists bool) + func (m *PostMutation) AuthorIDCleared() bool + func (m *PostMutation) AuthorIDs() (ids []int) + func (m *PostMutation) ClearAuthor() + func (m *PostMutation) ClearAuthorID() + func (m *PostMutation) ClearEdge(name string) error + func (m *PostMutation) ClearField(name string) error + func (m *PostMutation) ClearedEdges() []string + func (m *PostMutation) ClearedFields() []string + func (m *PostMutation) EdgeCleared(name string) bool + func (m *PostMutation) Field(name string) (ent.Value, bool) + func (m *PostMutation) FieldCleared(name string) bool + func (m *PostMutation) Fields() []string + func (m *PostMutation) ID() (id int, exists bool) + func (m *PostMutation) IDs(ctx context.Context) ([]int, error) + func (m *PostMutation) OldAuthorID(ctx context.Context) (v *int, err error) + func (m *PostMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PostMutation) OldText(ctx context.Context) (v string, err error) + func (m *PostMutation) Op() Op + func (m *PostMutation) RemovedEdges() []string + func (m *PostMutation) RemovedIDs(name string) []ent.Value + func (m *PostMutation) ResetAuthor() + func (m *PostMutation) ResetAuthorID() + func (m *PostMutation) ResetEdge(name string) error + func (m *PostMutation) ResetField(name string) error + func (m *PostMutation) ResetText() + func (m *PostMutation) SetAuthorID(i int) + func (m *PostMutation) SetField(name string, value ent.Value) error + func (m *PostMutation) SetText(s string) + func (m *PostMutation) Text() (r string, exists bool) + func (m *PostMutation) Type() string + func (m *PostMutation) Where(ps ...predicate.Post) + func (m PostMutation) Client() *Client + func (m PostMutation) Tx() (*Tx, error) + type PostQuery struct + func (pq *PostQuery) All(ctx context.Context) ([]*Post, error) + func (pq *PostQuery) AllX(ctx context.Context) []*Post + func (pq *PostQuery) Clone() *PostQuery + func (pq *PostQuery) Count(ctx context.Context) (int, error) + func (pq *PostQuery) CountX(ctx context.Context) int + func (pq *PostQuery) Exist(ctx context.Context) (bool, error) + func (pq *PostQuery) ExistX(ctx context.Context) bool + func (pq *PostQuery) First(ctx context.Context) (*Post, error) + func (pq *PostQuery) FirstID(ctx context.Context) (id int, err error) + func (pq *PostQuery) FirstIDX(ctx context.Context) int + func (pq *PostQuery) FirstX(ctx context.Context) *Post + func (pq *PostQuery) GroupBy(field string, fields ...string) *PostGroupBy + func (pq *PostQuery) IDs(ctx context.Context) ([]int, error) + func (pq *PostQuery) IDsX(ctx context.Context) []int + func (pq *PostQuery) Limit(limit int) *PostQuery + func (pq *PostQuery) Offset(offset int) *PostQuery + func (pq *PostQuery) Only(ctx context.Context) (*Post, error) + func (pq *PostQuery) OnlyID(ctx context.Context) (id int, err error) + func (pq *PostQuery) OnlyIDX(ctx context.Context) int + func (pq *PostQuery) OnlyX(ctx context.Context) *Post + func (pq *PostQuery) Order(o ...OrderFunc) *PostQuery + func (pq *PostQuery) QueryAuthor() *UserQuery + func (pq *PostQuery) Select(fields ...string) *PostSelect + func (pq *PostQuery) Unique(unique bool) *PostQuery + func (pq *PostQuery) Where(ps ...predicate.Post) *PostQuery + func (pq *PostQuery) WithAuthor(opts ...func(*UserQuery)) *PostQuery + type PostSelect struct + func (ps *PostSelect) Scan(ctx context.Context, v interface{}) error + func (s *PostSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *PostSelect) BoolX(ctx context.Context) bool + func (s *PostSelect) Bools(ctx context.Context) ([]bool, error) + func (s *PostSelect) BoolsX(ctx context.Context) []bool + func (s *PostSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *PostSelect) Float64X(ctx context.Context) float64 + func (s *PostSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *PostSelect) Float64sX(ctx context.Context) []float64 + func (s *PostSelect) Int(ctx context.Context) (_ int, err error) + func (s *PostSelect) IntX(ctx context.Context) int + func (s *PostSelect) Ints(ctx context.Context) ([]int, error) + func (s *PostSelect) IntsX(ctx context.Context) []int + func (s *PostSelect) ScanX(ctx context.Context, v interface{}) + func (s *PostSelect) String(ctx context.Context) (_ string, err error) + func (s *PostSelect) StringX(ctx context.Context) string + func (s *PostSelect) Strings(ctx context.Context) ([]string, error) + func (s *PostSelect) StringsX(ctx context.Context) []string + type PostUpdate struct + func (pu *PostUpdate) ClearAuthor() *PostUpdate + func (pu *PostUpdate) ClearAuthorID() *PostUpdate + func (pu *PostUpdate) Exec(ctx context.Context) error + func (pu *PostUpdate) ExecX(ctx context.Context) + func (pu *PostUpdate) Mutation() *PostMutation + func (pu *PostUpdate) Save(ctx context.Context) (int, error) + func (pu *PostUpdate) SaveX(ctx context.Context) int + func (pu *PostUpdate) SetAuthor(u *User) *PostUpdate + func (pu *PostUpdate) SetAuthorID(i int) *PostUpdate + func (pu *PostUpdate) SetNillableAuthorID(i *int) *PostUpdate + func (pu *PostUpdate) SetText(s string) *PostUpdate + func (pu *PostUpdate) Where(ps ...predicate.Post) *PostUpdate + type PostUpdateOne struct + func (puo *PostUpdateOne) ClearAuthor() *PostUpdateOne + func (puo *PostUpdateOne) ClearAuthorID() *PostUpdateOne + func (puo *PostUpdateOne) Exec(ctx context.Context) error + func (puo *PostUpdateOne) ExecX(ctx context.Context) + func (puo *PostUpdateOne) Mutation() *PostMutation + func (puo *PostUpdateOne) Save(ctx context.Context) (*Post, error) + func (puo *PostUpdateOne) SaveX(ctx context.Context) *Post + func (puo *PostUpdateOne) Select(field string, fields ...string) *PostUpdateOne + func (puo *PostUpdateOne) SetAuthor(u *User) *PostUpdateOne + func (puo *PostUpdateOne) SetAuthorID(i int) *PostUpdateOne + func (puo *PostUpdateOne) SetNillableAuthorID(i *int) *PostUpdateOne + func (puo *PostUpdateOne) SetText(s string) *PostUpdateOne + type Posts []*Post + type Query = ent.Query + type Rental struct + CarID uuid.UUID + Date time.Time + Edges RentalEdges + ID int + UserID int + func (r *Rental) QueryCar() *CarQuery + func (r *Rental) QueryUser() *UserQuery + func (r *Rental) String() string + func (r *Rental) Unwrap() *Rental + func (r *Rental) Update() *RentalUpdateOne + type RentalClient struct + func NewRentalClient(c config) *RentalClient + func (c *RentalClient) Create() *RentalCreate + func (c *RentalClient) CreateBulk(builders ...*RentalCreate) *RentalCreateBulk + func (c *RentalClient) Delete() *RentalDelete + func (c *RentalClient) DeleteOne(r *Rental) *RentalDeleteOne + func (c *RentalClient) DeleteOneID(id int) *RentalDeleteOne + func (c *RentalClient) Get(ctx context.Context, id int) (*Rental, error) + func (c *RentalClient) GetX(ctx context.Context, id int) *Rental + func (c *RentalClient) Hooks() []Hook + func (c *RentalClient) Query() *RentalQuery + func (c *RentalClient) QueryCar(r *Rental) *CarQuery + func (c *RentalClient) QueryUser(r *Rental) *UserQuery + func (c *RentalClient) Update() *RentalUpdate + func (c *RentalClient) UpdateOne(r *Rental) *RentalUpdateOne + func (c *RentalClient) UpdateOneID(id int) *RentalUpdateOne + func (c *RentalClient) Use(hooks ...Hook) + type RentalCreate struct + func (rc *RentalCreate) Exec(ctx context.Context) error + func (rc *RentalCreate) ExecX(ctx context.Context) + func (rc *RentalCreate) Mutation() *RentalMutation + func (rc *RentalCreate) Save(ctx context.Context) (*Rental, error) + func (rc *RentalCreate) SaveX(ctx context.Context) *Rental + func (rc *RentalCreate) SetCar(c *Car) *RentalCreate + func (rc *RentalCreate) SetCarID(u uuid.UUID) *RentalCreate + func (rc *RentalCreate) SetDate(t time.Time) *RentalCreate + func (rc *RentalCreate) SetNillableDate(t *time.Time) *RentalCreate + func (rc *RentalCreate) SetUser(u *User) *RentalCreate + func (rc *RentalCreate) SetUserID(i int) *RentalCreate + type RentalCreateBulk struct + func (rcb *RentalCreateBulk) Exec(ctx context.Context) error + func (rcb *RentalCreateBulk) ExecX(ctx context.Context) + func (rcb *RentalCreateBulk) Save(ctx context.Context) ([]*Rental, error) + func (rcb *RentalCreateBulk) SaveX(ctx context.Context) []*Rental + type RentalDelete struct + func (rd *RentalDelete) Exec(ctx context.Context) (int, error) + func (rd *RentalDelete) ExecX(ctx context.Context) int + func (rd *RentalDelete) Where(ps ...predicate.Rental) *RentalDelete + type RentalDeleteOne struct + func (rdo *RentalDeleteOne) Exec(ctx context.Context) error + func (rdo *RentalDeleteOne) ExecX(ctx context.Context) + type RentalEdges struct + Car *Car + User *User + func (e RentalEdges) CarOrErr() (*Car, error) + func (e RentalEdges) UserOrErr() (*User, error) + type RentalGroupBy struct + func (rgb *RentalGroupBy) Aggregate(fns ...AggregateFunc) *RentalGroupBy + func (rgb *RentalGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *RentalGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *RentalGroupBy) BoolX(ctx context.Context) bool + func (s *RentalGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *RentalGroupBy) BoolsX(ctx context.Context) []bool + func (s *RentalGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *RentalGroupBy) Float64X(ctx context.Context) float64 + func (s *RentalGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *RentalGroupBy) Float64sX(ctx context.Context) []float64 + func (s *RentalGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *RentalGroupBy) IntX(ctx context.Context) int + func (s *RentalGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *RentalGroupBy) IntsX(ctx context.Context) []int + func (s *RentalGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *RentalGroupBy) String(ctx context.Context) (_ string, err error) + func (s *RentalGroupBy) StringX(ctx context.Context) string + func (s *RentalGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *RentalGroupBy) StringsX(ctx context.Context) []string + type RentalMutation struct + func (m *RentalMutation) AddField(name string, value ent.Value) error + func (m *RentalMutation) AddedEdges() []string + func (m *RentalMutation) AddedField(name string) (ent.Value, bool) + func (m *RentalMutation) AddedFields() []string + func (m *RentalMutation) AddedIDs(name string) []ent.Value + func (m *RentalMutation) CarCleared() bool + func (m *RentalMutation) CarID() (r uuid.UUID, exists bool) + func (m *RentalMutation) CarIDs() (ids []uuid.UUID) + func (m *RentalMutation) ClearCar() + func (m *RentalMutation) ClearEdge(name string) error + func (m *RentalMutation) ClearField(name string) error + func (m *RentalMutation) ClearUser() + func (m *RentalMutation) ClearedEdges() []string + func (m *RentalMutation) ClearedFields() []string + func (m *RentalMutation) Date() (r time.Time, exists bool) + func (m *RentalMutation) EdgeCleared(name string) bool + func (m *RentalMutation) Field(name string) (ent.Value, bool) + func (m *RentalMutation) FieldCleared(name string) bool + func (m *RentalMutation) Fields() []string + func (m *RentalMutation) ID() (id int, exists bool) + func (m *RentalMutation) IDs(ctx context.Context) ([]int, error) + func (m *RentalMutation) OldCarID(ctx context.Context) (v uuid.UUID, err error) + func (m *RentalMutation) OldDate(ctx context.Context) (v time.Time, err error) + func (m *RentalMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *RentalMutation) OldUserID(ctx context.Context) (v int, err error) + func (m *RentalMutation) Op() Op + func (m *RentalMutation) RemovedEdges() []string + func (m *RentalMutation) RemovedIDs(name string) []ent.Value + func (m *RentalMutation) ResetCar() + func (m *RentalMutation) ResetCarID() + func (m *RentalMutation) ResetDate() + func (m *RentalMutation) ResetEdge(name string) error + func (m *RentalMutation) ResetField(name string) error + func (m *RentalMutation) ResetUser() + func (m *RentalMutation) ResetUserID() + func (m *RentalMutation) SetCarID(u uuid.UUID) + func (m *RentalMutation) SetDate(t time.Time) + func (m *RentalMutation) SetField(name string, value ent.Value) error + func (m *RentalMutation) SetUserID(i int) + func (m *RentalMutation) Type() string + func (m *RentalMutation) UserCleared() bool + func (m *RentalMutation) UserID() (r int, exists bool) + func (m *RentalMutation) UserIDs() (ids []int) + func (m *RentalMutation) Where(ps ...predicate.Rental) + func (m RentalMutation) Client() *Client + func (m RentalMutation) Tx() (*Tx, error) + type RentalQuery struct + func (rq *RentalQuery) All(ctx context.Context) ([]*Rental, error) + func (rq *RentalQuery) AllX(ctx context.Context) []*Rental + func (rq *RentalQuery) Clone() *RentalQuery + func (rq *RentalQuery) Count(ctx context.Context) (int, error) + func (rq *RentalQuery) CountX(ctx context.Context) int + func (rq *RentalQuery) Exist(ctx context.Context) (bool, error) + func (rq *RentalQuery) ExistX(ctx context.Context) bool + func (rq *RentalQuery) First(ctx context.Context) (*Rental, error) + func (rq *RentalQuery) FirstID(ctx context.Context) (id int, err error) + func (rq *RentalQuery) FirstIDX(ctx context.Context) int + func (rq *RentalQuery) FirstX(ctx context.Context) *Rental + func (rq *RentalQuery) GroupBy(field string, fields ...string) *RentalGroupBy + func (rq *RentalQuery) IDs(ctx context.Context) ([]int, error) + func (rq *RentalQuery) IDsX(ctx context.Context) []int + func (rq *RentalQuery) Limit(limit int) *RentalQuery + func (rq *RentalQuery) Offset(offset int) *RentalQuery + func (rq *RentalQuery) Only(ctx context.Context) (*Rental, error) + func (rq *RentalQuery) OnlyID(ctx context.Context) (id int, err error) + func (rq *RentalQuery) OnlyIDX(ctx context.Context) int + func (rq *RentalQuery) OnlyX(ctx context.Context) *Rental + func (rq *RentalQuery) Order(o ...OrderFunc) *RentalQuery + func (rq *RentalQuery) QueryCar() *CarQuery + func (rq *RentalQuery) QueryUser() *UserQuery + func (rq *RentalQuery) Select(fields ...string) *RentalSelect + func (rq *RentalQuery) Unique(unique bool) *RentalQuery + func (rq *RentalQuery) Where(ps ...predicate.Rental) *RentalQuery + func (rq *RentalQuery) WithCar(opts ...func(*CarQuery)) *RentalQuery + func (rq *RentalQuery) WithUser(opts ...func(*UserQuery)) *RentalQuery + type RentalSelect struct + func (rs *RentalSelect) Scan(ctx context.Context, v interface{}) error + func (s *RentalSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *RentalSelect) BoolX(ctx context.Context) bool + func (s *RentalSelect) Bools(ctx context.Context) ([]bool, error) + func (s *RentalSelect) BoolsX(ctx context.Context) []bool + func (s *RentalSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *RentalSelect) Float64X(ctx context.Context) float64 + func (s *RentalSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *RentalSelect) Float64sX(ctx context.Context) []float64 + func (s *RentalSelect) Int(ctx context.Context) (_ int, err error) + func (s *RentalSelect) IntX(ctx context.Context) int + func (s *RentalSelect) Ints(ctx context.Context) ([]int, error) + func (s *RentalSelect) IntsX(ctx context.Context) []int + func (s *RentalSelect) ScanX(ctx context.Context, v interface{}) + func (s *RentalSelect) String(ctx context.Context) (_ string, err error) + func (s *RentalSelect) StringX(ctx context.Context) string + func (s *RentalSelect) Strings(ctx context.Context) ([]string, error) + func (s *RentalSelect) StringsX(ctx context.Context) []string + type RentalUpdate struct + func (ru *RentalUpdate) ClearCar() *RentalUpdate + func (ru *RentalUpdate) ClearUser() *RentalUpdate + func (ru *RentalUpdate) Exec(ctx context.Context) error + func (ru *RentalUpdate) ExecX(ctx context.Context) + func (ru *RentalUpdate) Mutation() *RentalMutation + func (ru *RentalUpdate) Save(ctx context.Context) (int, error) + func (ru *RentalUpdate) SaveX(ctx context.Context) int + func (ru *RentalUpdate) SetCar(c *Car) *RentalUpdate + func (ru *RentalUpdate) SetCarID(u uuid.UUID) *RentalUpdate + func (ru *RentalUpdate) SetDate(t time.Time) *RentalUpdate + func (ru *RentalUpdate) SetNillableDate(t *time.Time) *RentalUpdate + func (ru *RentalUpdate) SetUser(u *User) *RentalUpdate + func (ru *RentalUpdate) SetUserID(i int) *RentalUpdate + func (ru *RentalUpdate) Where(ps ...predicate.Rental) *RentalUpdate + type RentalUpdateOne struct + func (ruo *RentalUpdateOne) ClearCar() *RentalUpdateOne + func (ruo *RentalUpdateOne) ClearUser() *RentalUpdateOne + func (ruo *RentalUpdateOne) Exec(ctx context.Context) error + func (ruo *RentalUpdateOne) ExecX(ctx context.Context) + func (ruo *RentalUpdateOne) Mutation() *RentalMutation + func (ruo *RentalUpdateOne) Save(ctx context.Context) (*Rental, error) + func (ruo *RentalUpdateOne) SaveX(ctx context.Context) *Rental + func (ruo *RentalUpdateOne) Select(field string, fields ...string) *RentalUpdateOne + func (ruo *RentalUpdateOne) SetCar(c *Car) *RentalUpdateOne + func (ruo *RentalUpdateOne) SetCarID(u uuid.UUID) *RentalUpdateOne + func (ruo *RentalUpdateOne) SetDate(t time.Time) *RentalUpdateOne + func (ruo *RentalUpdateOne) SetNillableDate(t *time.Time) *RentalUpdateOne + func (ruo *RentalUpdateOne) SetUser(u *User) *RentalUpdateOne + func (ruo *RentalUpdateOne) SetUserID(i int) *RentalUpdateOne + type Rentals []*Rental + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Tx struct + Car *CarClient + Card *CardClient + Info *InfoClient + Metadata *MetadataClient + Node *NodeClient + Pet *PetClient + Post *PostClient + Rental *RentalClient + 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 + ParentID int + SpouseID int + func (u *User) QueryCard() *CardQuery + func (u *User) QueryChildren() *UserQuery + func (u *User) QueryInfo() *InfoQuery + func (u *User) QueryMetadata() *MetadataQuery + func (u *User) QueryParent() *UserQuery + func (u *User) QueryPets() *PetQuery + func (u *User) QueryRentals() *RentalQuery + func (u *User) QuerySpouse() *UserQuery + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + type UserClient struct + func NewUserClient(c config) *UserClient + func (c *UserClient) Create() *UserCreate + func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk + func (c *UserClient) Delete() *UserDelete + func (c *UserClient) DeleteOne(u *User) *UserDeleteOne + func (c *UserClient) DeleteOneID(id int) *UserDeleteOne + func (c *UserClient) Get(ctx context.Context, id int) (*User, error) + func (c *UserClient) GetX(ctx context.Context, id int) *User + func (c *UserClient) Hooks() []Hook + func (c *UserClient) Query() *UserQuery + func (c *UserClient) QueryCard(u *User) *CardQuery + func (c *UserClient) QueryChildren(u *User) *UserQuery + func (c *UserClient) QueryInfo(u *User) *InfoQuery + func (c *UserClient) QueryMetadata(u *User) *MetadataQuery + func (c *UserClient) QueryParent(u *User) *UserQuery + func (c *UserClient) QueryPets(u *User) *PetQuery + func (c *UserClient) QueryRentals(u *User) *RentalQuery + func (c *UserClient) QuerySpouse(u *User) *UserQuery + func (c *UserClient) Update() *UserUpdate + func (c *UserClient) UpdateOne(u *User) *UserUpdateOne + func (c *UserClient) UpdateOneID(id int) *UserUpdateOne + func (c *UserClient) Use(hooks ...Hook) + type UserCreate struct + func (uc *UserCreate) AddChildIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddChildren(u ...*User) *UserCreate + func (uc *UserCreate) AddInfo(i ...*Info) *UserCreate + func (uc *UserCreate) AddInfoIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddPetIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddPets(p ...*Pet) *UserCreate + func (uc *UserCreate) AddRentalIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddRentals(r ...*Rental) *UserCreate + func (uc *UserCreate) Exec(ctx context.Context) error + func (uc *UserCreate) ExecX(ctx context.Context) + func (uc *UserCreate) Mutation() *UserMutation + func (uc *UserCreate) Save(ctx context.Context) (*User, error) + func (uc *UserCreate) SaveX(ctx context.Context) *User + func (uc *UserCreate) SetCard(c *Card) *UserCreate + func (uc *UserCreate) SetCardID(id int) *UserCreate + func (uc *UserCreate) SetID(i int) *UserCreate + func (uc *UserCreate) SetMetadata(m *Metadata) *UserCreate + func (uc *UserCreate) SetMetadataID(id int) *UserCreate + func (uc *UserCreate) SetNillableCardID(id *int) *UserCreate + func (uc *UserCreate) SetNillableMetadataID(id *int) *UserCreate + func (uc *UserCreate) SetNillableParentID(i *int) *UserCreate + func (uc *UserCreate) SetNillableSpouseID(i *int) *UserCreate + func (uc *UserCreate) SetParent(u *User) *UserCreate + func (uc *UserCreate) SetParentID(i int) *UserCreate + func (uc *UserCreate) SetSpouse(u *User) *UserCreate + func (uc *UserCreate) SetSpouseID(i int) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Exec(ctx context.Context) error + func (ucb *UserCreateBulk) ExecX(ctx context.Context) + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + type UserEdges struct + Card *Card + Children []*User + Info []*Info + Metadata *Metadata + Parent *User + Pets []*Pet + Rentals []*Rental + Spouse *User + func (e UserEdges) CardOrErr() (*Card, error) + func (e UserEdges) ChildrenOrErr() ([]*User, error) + func (e UserEdges) InfoOrErr() ([]*Info, error) + func (e UserEdges) MetadataOrErr() (*Metadata, error) + func (e UserEdges) ParentOrErr() (*User, error) + func (e UserEdges) PetsOrErr() ([]*Pet, error) + func (e UserEdges) RentalsOrErr() ([]*Rental, error) + func (e UserEdges) SpouseOrErr() (*User, error) + type UserGroupBy struct + func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *UserGroupBy) BoolX(ctx context.Context) bool + func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *UserGroupBy) BoolsX(ctx context.Context) []bool + func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *UserGroupBy) Float64X(ctx context.Context) float64 + func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *UserGroupBy) IntX(ctx context.Context) int + func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *UserGroupBy) IntsX(ctx context.Context) []int + func (s *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (s *UserGroupBy) StringX(ctx context.Context) string + func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *UserGroupBy) StringsX(ctx context.Context) []string + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + type UserMutation struct + func (m *UserMutation) AddChildIDs(ids ...int) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddInfoIDs(ids ...int) + func (m *UserMutation) AddPetIDs(ids ...int) + func (m *UserMutation) AddRentalIDs(ids ...int) + 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) CardCleared() bool + func (m *UserMutation) CardID() (id int, exists bool) + func (m *UserMutation) CardIDs() (ids []int) + func (m *UserMutation) ChildrenCleared() bool + func (m *UserMutation) ChildrenIDs() (ids []int) + func (m *UserMutation) ClearCard() + func (m *UserMutation) ClearChildren() + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearInfo() + func (m *UserMutation) ClearMetadata() + func (m *UserMutation) ClearParent() + func (m *UserMutation) ClearParentID() + func (m *UserMutation) ClearPets() + func (m *UserMutation) ClearRentals() + func (m *UserMutation) ClearSpouse() + func (m *UserMutation) ClearSpouseID() + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserMutation) InfoCleared() bool + func (m *UserMutation) InfoIDs() (ids []int) + func (m *UserMutation) MetadataCleared() bool + func (m *UserMutation) MetadataID() (id int, exists bool) + func (m *UserMutation) MetadataIDs() (ids []int) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldParentID(ctx context.Context) (v int, err error) + func (m *UserMutation) OldSpouseID(ctx context.Context) (v int, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) ParentCleared() bool + func (m *UserMutation) ParentID() (r int, exists bool) + func (m *UserMutation) ParentIDCleared() bool + func (m *UserMutation) ParentIDs() (ids []int) + func (m *UserMutation) PetsCleared() bool + func (m *UserMutation) PetsIDs() (ids []int) + func (m *UserMutation) RemoveChildIDs(ids ...int) + func (m *UserMutation) RemoveInfoIDs(ids ...int) + func (m *UserMutation) RemovePetIDs(ids ...int) + func (m *UserMutation) RemoveRentalIDs(ids ...int) + func (m *UserMutation) RemovedChildrenIDs() (ids []int) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) RemovedInfoIDs() (ids []int) + func (m *UserMutation) RemovedPetsIDs() (ids []int) + func (m *UserMutation) RemovedRentalsIDs() (ids []int) + func (m *UserMutation) RentalsCleared() bool + func (m *UserMutation) RentalsIDs() (ids []int) + func (m *UserMutation) ResetCard() + func (m *UserMutation) ResetChildren() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetInfo() + func (m *UserMutation) ResetMetadata() + func (m *UserMutation) ResetParent() + func (m *UserMutation) ResetParentID() + func (m *UserMutation) ResetPets() + func (m *UserMutation) ResetRentals() + func (m *UserMutation) ResetSpouse() + func (m *UserMutation) ResetSpouseID() + func (m *UserMutation) SetCardID(id int) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetID(id int) + func (m *UserMutation) SetMetadataID(id int) + func (m *UserMutation) SetParentID(i int) + func (m *UserMutation) SetSpouseID(i int) + func (m *UserMutation) SpouseCleared() bool + func (m *UserMutation) SpouseID() (r int, exists bool) + func (m *UserMutation) SpouseIDCleared() bool + func (m *UserMutation) SpouseIDs() (ids []int) + func (m *UserMutation) Type() string + func (m *UserMutation) Where(ps ...predicate.User) + 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) QueryCard() *CardQuery + func (uq *UserQuery) QueryChildren() *UserQuery + func (uq *UserQuery) QueryInfo() *InfoQuery + func (uq *UserQuery) QueryMetadata() *MetadataQuery + func (uq *UserQuery) QueryParent() *UserQuery + func (uq *UserQuery) QueryPets() *PetQuery + func (uq *UserQuery) QueryRentals() *RentalQuery + func (uq *UserQuery) QuerySpouse() *UserQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithCard(opts ...func(*CardQuery)) *UserQuery + func (uq *UserQuery) WithChildren(opts ...func(*UserQuery)) *UserQuery + func (uq *UserQuery) WithInfo(opts ...func(*InfoQuery)) *UserQuery + func (uq *UserQuery) WithMetadata(opts ...func(*MetadataQuery)) *UserQuery + func (uq *UserQuery) WithParent(opts ...func(*UserQuery)) *UserQuery + func (uq *UserQuery) WithPets(opts ...func(*PetQuery)) *UserQuery + func (uq *UserQuery) WithRentals(opts ...func(*RentalQuery)) *UserQuery + func (uq *UserQuery) WithSpouse(opts ...func(*UserQuery)) *UserQuery + type UserSelect struct + func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *UserSelect) BoolX(ctx context.Context) bool + func (s *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (s *UserSelect) BoolsX(ctx context.Context) []bool + func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *UserSelect) Float64X(ctx context.Context) float64 + func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *UserSelect) Float64sX(ctx context.Context) []float64 + func (s *UserSelect) Int(ctx context.Context) (_ int, err error) + func (s *UserSelect) IntX(ctx context.Context) int + func (s *UserSelect) Ints(ctx context.Context) ([]int, error) + func (s *UserSelect) IntsX(ctx context.Context) []int + func (s *UserSelect) ScanX(ctx context.Context, v interface{}) + func (s *UserSelect) String(ctx context.Context) (_ string, err error) + func (s *UserSelect) StringX(ctx context.Context) string + func (s *UserSelect) Strings(ctx context.Context) ([]string, error) + func (s *UserSelect) StringsX(ctx context.Context) []string + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + type UserUpdate struct + func (uu *UserUpdate) AddChildIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddChildren(u ...*User) *UserUpdate + func (uu *UserUpdate) AddInfo(i ...*Info) *UserUpdate + func (uu *UserUpdate) AddInfoIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddPetIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddPets(p ...*Pet) *UserUpdate + func (uu *UserUpdate) AddRentalIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddRentals(r ...*Rental) *UserUpdate + func (uu *UserUpdate) ClearCard() *UserUpdate + func (uu *UserUpdate) ClearChildren() *UserUpdate + func (uu *UserUpdate) ClearInfo() *UserUpdate + func (uu *UserUpdate) ClearMetadata() *UserUpdate + func (uu *UserUpdate) ClearParent() *UserUpdate + func (uu *UserUpdate) ClearParentID() *UserUpdate + func (uu *UserUpdate) ClearPets() *UserUpdate + func (uu *UserUpdate) ClearRentals() *UserUpdate + func (uu *UserUpdate) ClearSpouse() *UserUpdate + func (uu *UserUpdate) ClearSpouseID() *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) RemoveInfo(i ...*Info) *UserUpdate + func (uu *UserUpdate) RemoveInfoIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemovePetIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemovePets(p ...*Pet) *UserUpdate + func (uu *UserUpdate) RemoveRentalIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveRentals(r ...*Rental) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetCard(c *Card) *UserUpdate + func (uu *UserUpdate) SetCardID(id int) *UserUpdate + func (uu *UserUpdate) SetMetadata(m *Metadata) *UserUpdate + func (uu *UserUpdate) SetMetadataID(id int) *UserUpdate + func (uu *UserUpdate) SetNillableCardID(id *int) *UserUpdate + func (uu *UserUpdate) SetNillableMetadataID(id *int) *UserUpdate + func (uu *UserUpdate) SetNillableParentID(i *int) *UserUpdate + func (uu *UserUpdate) SetNillableSpouseID(i *int) *UserUpdate + func (uu *UserUpdate) SetParent(u *User) *UserUpdate + func (uu *UserUpdate) SetParentID(i int) *UserUpdate + func (uu *UserUpdate) SetSpouse(u *User) *UserUpdate + func (uu *UserUpdate) SetSpouseID(i 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) AddInfo(i ...*Info) *UserUpdateOne + func (uuo *UserUpdateOne) AddInfoIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddPetIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddPets(p ...*Pet) *UserUpdateOne + func (uuo *UserUpdateOne) AddRentalIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddRentals(r ...*Rental) *UserUpdateOne + func (uuo *UserUpdateOne) ClearCard() *UserUpdateOne + func (uuo *UserUpdateOne) ClearChildren() *UserUpdateOne + func (uuo *UserUpdateOne) ClearInfo() *UserUpdateOne + func (uuo *UserUpdateOne) ClearMetadata() *UserUpdateOne + func (uuo *UserUpdateOne) ClearParent() *UserUpdateOne + func (uuo *UserUpdateOne) ClearParentID() *UserUpdateOne + func (uuo *UserUpdateOne) ClearPets() *UserUpdateOne + func (uuo *UserUpdateOne) ClearRentals() *UserUpdateOne + func (uuo *UserUpdateOne) ClearSpouse() *UserUpdateOne + func (uuo *UserUpdateOne) ClearSpouseID() *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) RemoveInfo(i ...*Info) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveInfoIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemovePetIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemovePets(p ...*Pet) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveRentalIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveRentals(r ...*Rental) *UserUpdateOne + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne + func (uuo *UserUpdateOne) SetCard(c *Card) *UserUpdateOne + func (uuo *UserUpdateOne) SetCardID(id int) *UserUpdateOne + func (uuo *UserUpdateOne) SetMetadata(m *Metadata) *UserUpdateOne + func (uuo *UserUpdateOne) SetMetadataID(id int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableCardID(id *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableMetadataID(id *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableParentID(i *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableSpouseID(i *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetParent(u *User) *UserUpdateOne + func (uuo *UserUpdateOne) SetParentID(i int) *UserUpdateOne + func (uuo *UserUpdateOne) SetSpouse(u *User) *UserUpdateOne + func (uuo *UserUpdateOne) SetSpouseID(i int) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value