Versions in this module Expand all Collapse all v0 v0.10.2 Jan 14, 2022 v0.10.1 Jan 14, 2022 v0.10.0 Jan 14, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeBlob + const TypeCar + const TypeDevice + const TypeDoc + const TypeGroup + const TypeMixinID + const TypeNote + const TypePet + const TypeSession + 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 Blob struct + Count int + Edges BlobEdges + ID uuid.UUID + UUID uuid.UUID + func (b *Blob) QueryLinks() *BlobQuery + func (b *Blob) QueryParent() *BlobQuery + func (b *Blob) String() string + func (b *Blob) Unwrap() *Blob + func (b *Blob) Update() *BlobUpdateOne + type BlobClient struct + func NewBlobClient(c config) *BlobClient + func (c *BlobClient) Create() *BlobCreate + func (c *BlobClient) CreateBulk(builders ...*BlobCreate) *BlobCreateBulk + func (c *BlobClient) Delete() *BlobDelete + func (c *BlobClient) DeleteOne(b *Blob) *BlobDeleteOne + func (c *BlobClient) DeleteOneID(id uuid.UUID) *BlobDeleteOne + func (c *BlobClient) Get(ctx context.Context, id uuid.UUID) (*Blob, error) + func (c *BlobClient) GetX(ctx context.Context, id uuid.UUID) *Blob + func (c *BlobClient) Hooks() []Hook + func (c *BlobClient) Query() *BlobQuery + func (c *BlobClient) QueryLinks(b *Blob) *BlobQuery + func (c *BlobClient) QueryParent(b *Blob) *BlobQuery + func (c *BlobClient) Update() *BlobUpdate + func (c *BlobClient) UpdateOne(b *Blob) *BlobUpdateOne + func (c *BlobClient) UpdateOneID(id uuid.UUID) *BlobUpdateOne + func (c *BlobClient) Use(hooks ...Hook) + type BlobCreate struct + func (bc *BlobCreate) AddLinkIDs(ids ...uuid.UUID) *BlobCreate + func (bc *BlobCreate) AddLinks(b ...*Blob) *BlobCreate + func (bc *BlobCreate) Exec(ctx context.Context) error + func (bc *BlobCreate) ExecX(ctx context.Context) + func (bc *BlobCreate) Mutation() *BlobMutation + func (bc *BlobCreate) OnConflict(opts ...sql.ConflictOption) *BlobUpsertOne + func (bc *BlobCreate) OnConflictColumns(columns ...string) *BlobUpsertOne + func (bc *BlobCreate) Save(ctx context.Context) (*Blob, error) + func (bc *BlobCreate) SaveX(ctx context.Context) *Blob + func (bc *BlobCreate) SetCount(i int) *BlobCreate + func (bc *BlobCreate) SetID(u uuid.UUID) *BlobCreate + func (bc *BlobCreate) SetNillableCount(i *int) *BlobCreate + func (bc *BlobCreate) SetNillableID(u *uuid.UUID) *BlobCreate + func (bc *BlobCreate) SetNillableParentID(id *uuid.UUID) *BlobCreate + func (bc *BlobCreate) SetNillableUUID(u *uuid.UUID) *BlobCreate + func (bc *BlobCreate) SetParent(b *Blob) *BlobCreate + func (bc *BlobCreate) SetParentID(id uuid.UUID) *BlobCreate + func (bc *BlobCreate) SetUUID(u uuid.UUID) *BlobCreate + type BlobCreateBulk struct + func (bcb *BlobCreateBulk) Exec(ctx context.Context) error + func (bcb *BlobCreateBulk) ExecX(ctx context.Context) + func (bcb *BlobCreateBulk) OnConflict(opts ...sql.ConflictOption) *BlobUpsertBulk + func (bcb *BlobCreateBulk) OnConflictColumns(columns ...string) *BlobUpsertBulk + func (bcb *BlobCreateBulk) Save(ctx context.Context) ([]*Blob, error) + func (bcb *BlobCreateBulk) SaveX(ctx context.Context) []*Blob + type BlobDelete struct + func (bd *BlobDelete) Exec(ctx context.Context) (int, error) + func (bd *BlobDelete) ExecX(ctx context.Context) int + func (bd *BlobDelete) Where(ps ...predicate.Blob) *BlobDelete + type BlobDeleteOne struct + func (bdo *BlobDeleteOne) Exec(ctx context.Context) error + func (bdo *BlobDeleteOne) ExecX(ctx context.Context) + type BlobEdges struct + Links []*Blob + Parent *Blob + func (e BlobEdges) LinksOrErr() ([]*Blob, error) + func (e BlobEdges) ParentOrErr() (*Blob, error) + type BlobFilter struct + func (f *BlobFilter) Where(p entql.P) + func (f *BlobFilter) WhereCount(p entql.IntP) + func (f *BlobFilter) WhereHasLinks() + func (f *BlobFilter) WhereHasLinksWith(preds ...predicate.Blob) + func (f *BlobFilter) WhereHasParent() + func (f *BlobFilter) WhereHasParentWith(preds ...predicate.Blob) + func (f *BlobFilter) WhereID(p entql.ValueP) + func (f *BlobFilter) WhereUUID(p entql.ValueP) + type BlobGroupBy struct + func (bgb *BlobGroupBy) Aggregate(fns ...AggregateFunc) *BlobGroupBy + func (bgb *BlobGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (bgb *BlobGroupBy) BoolX(ctx context.Context) bool + func (bgb *BlobGroupBy) Bools(ctx context.Context) ([]bool, error) + func (bgb *BlobGroupBy) BoolsX(ctx context.Context) []bool + func (bgb *BlobGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (bgb *BlobGroupBy) Float64X(ctx context.Context) float64 + func (bgb *BlobGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (bgb *BlobGroupBy) Float64sX(ctx context.Context) []float64 + func (bgb *BlobGroupBy) Int(ctx context.Context) (_ int, err error) + func (bgb *BlobGroupBy) IntX(ctx context.Context) int + func (bgb *BlobGroupBy) Ints(ctx context.Context) ([]int, error) + func (bgb *BlobGroupBy) IntsX(ctx context.Context) []int + func (bgb *BlobGroupBy) Scan(ctx context.Context, v interface{}) error + func (bgb *BlobGroupBy) ScanX(ctx context.Context, v interface{}) + func (bgb *BlobGroupBy) String(ctx context.Context) (_ string, err error) + func (bgb *BlobGroupBy) StringX(ctx context.Context) string + func (bgb *BlobGroupBy) Strings(ctx context.Context) ([]string, error) + func (bgb *BlobGroupBy) StringsX(ctx context.Context) []string + type BlobMutation struct + func (m *BlobMutation) AddCount(i int) + func (m *BlobMutation) AddField(name string, value ent.Value) error + func (m *BlobMutation) AddLinkIDs(ids ...uuid.UUID) + func (m *BlobMutation) AddedCount() (r int, exists bool) + func (m *BlobMutation) AddedEdges() []string + func (m *BlobMutation) AddedField(name string) (ent.Value, bool) + func (m *BlobMutation) AddedFields() []string + func (m *BlobMutation) AddedIDs(name string) []ent.Value + func (m *BlobMutation) ClearEdge(name string) error + func (m *BlobMutation) ClearField(name string) error + func (m *BlobMutation) ClearLinks() + func (m *BlobMutation) ClearParent() + func (m *BlobMutation) ClearedEdges() []string + func (m *BlobMutation) ClearedFields() []string + func (m *BlobMutation) Count() (r int, exists bool) + func (m *BlobMutation) EdgeCleared(name string) bool + func (m *BlobMutation) Field(name string) (ent.Value, bool) + func (m *BlobMutation) FieldCleared(name string) bool + func (m *BlobMutation) Fields() []string + func (m *BlobMutation) Filter() *BlobFilter + func (m *BlobMutation) ID() (id uuid.UUID, exists bool) + func (m *BlobMutation) IDs(ctx context.Context) ([]uuid.UUID, error) + func (m *BlobMutation) LinksCleared() bool + func (m *BlobMutation) LinksIDs() (ids []uuid.UUID) + func (m *BlobMutation) OldCount(ctx context.Context) (v int, err error) + func (m *BlobMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *BlobMutation) OldUUID(ctx context.Context) (v uuid.UUID, err error) + func (m *BlobMutation) Op() Op + func (m *BlobMutation) ParentCleared() bool + func (m *BlobMutation) ParentID() (id uuid.UUID, exists bool) + func (m *BlobMutation) ParentIDs() (ids []uuid.UUID) + func (m *BlobMutation) RemoveLinkIDs(ids ...uuid.UUID) + func (m *BlobMutation) RemovedEdges() []string + func (m *BlobMutation) RemovedIDs(name string) []ent.Value + func (m *BlobMutation) RemovedLinksIDs() (ids []uuid.UUID) + func (m *BlobMutation) ResetCount() + func (m *BlobMutation) ResetEdge(name string) error + func (m *BlobMutation) ResetField(name string) error + func (m *BlobMutation) ResetLinks() + func (m *BlobMutation) ResetParent() + func (m *BlobMutation) ResetUUID() + func (m *BlobMutation) SetCount(i int) + func (m *BlobMutation) SetField(name string, value ent.Value) error + func (m *BlobMutation) SetID(id uuid.UUID) + func (m *BlobMutation) SetParentID(id uuid.UUID) + func (m *BlobMutation) SetUUID(u uuid.UUID) + func (m *BlobMutation) Type() string + func (m *BlobMutation) UUID() (r uuid.UUID, exists bool) + func (m *BlobMutation) Where(ps ...predicate.Blob) + func (m BlobMutation) Client() *Client + func (m BlobMutation) Tx() (*Tx, error) + type BlobQuery struct + func (bq *BlobQuery) All(ctx context.Context) ([]*Blob, error) + func (bq *BlobQuery) AllX(ctx context.Context) []*Blob + func (bq *BlobQuery) Clone() *BlobQuery + func (bq *BlobQuery) Count(ctx context.Context) (int, error) + func (bq *BlobQuery) CountX(ctx context.Context) int + func (bq *BlobQuery) Exist(ctx context.Context) (bool, error) + func (bq *BlobQuery) ExistX(ctx context.Context) bool + func (bq *BlobQuery) Filter() *BlobFilter + func (bq *BlobQuery) First(ctx context.Context) (*Blob, error) + func (bq *BlobQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (bq *BlobQuery) FirstIDX(ctx context.Context) uuid.UUID + func (bq *BlobQuery) FirstX(ctx context.Context) *Blob + func (bq *BlobQuery) GroupBy(field string, fields ...string) *BlobGroupBy + func (bq *BlobQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (bq *BlobQuery) IDsX(ctx context.Context) []uuid.UUID + func (bq *BlobQuery) Limit(limit int) *BlobQuery + func (bq *BlobQuery) Offset(offset int) *BlobQuery + func (bq *BlobQuery) Only(ctx context.Context) (*Blob, error) + func (bq *BlobQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (bq *BlobQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (bq *BlobQuery) OnlyX(ctx context.Context) *Blob + func (bq *BlobQuery) Order(o ...OrderFunc) *BlobQuery + func (bq *BlobQuery) QueryLinks() *BlobQuery + func (bq *BlobQuery) QueryParent() *BlobQuery + func (bq *BlobQuery) Select(fields ...string) *BlobSelect + func (bq *BlobQuery) Unique(unique bool) *BlobQuery + func (bq *BlobQuery) Where(ps ...predicate.Blob) *BlobQuery + func (bq *BlobQuery) WithLinks(opts ...func(*BlobQuery)) *BlobQuery + func (bq *BlobQuery) WithParent(opts ...func(*BlobQuery)) *BlobQuery + type BlobSelect struct + func (bs *BlobSelect) Bool(ctx context.Context) (_ bool, err error) + func (bs *BlobSelect) BoolX(ctx context.Context) bool + func (bs *BlobSelect) Bools(ctx context.Context) ([]bool, error) + func (bs *BlobSelect) BoolsX(ctx context.Context) []bool + func (bs *BlobSelect) Float64(ctx context.Context) (_ float64, err error) + func (bs *BlobSelect) Float64X(ctx context.Context) float64 + func (bs *BlobSelect) Float64s(ctx context.Context) ([]float64, error) + func (bs *BlobSelect) Float64sX(ctx context.Context) []float64 + func (bs *BlobSelect) Int(ctx context.Context) (_ int, err error) + func (bs *BlobSelect) IntX(ctx context.Context) int + func (bs *BlobSelect) Ints(ctx context.Context) ([]int, error) + func (bs *BlobSelect) IntsX(ctx context.Context) []int + func (bs *BlobSelect) Scan(ctx context.Context, v interface{}) error + func (bs *BlobSelect) ScanX(ctx context.Context, v interface{}) + func (bs *BlobSelect) String(ctx context.Context) (_ string, err error) + func (bs *BlobSelect) StringX(ctx context.Context) string + func (bs *BlobSelect) Strings(ctx context.Context) ([]string, error) + func (bs *BlobSelect) StringsX(ctx context.Context) []string + type BlobUpdate struct + func (bu *BlobUpdate) AddCount(i int) *BlobUpdate + func (bu *BlobUpdate) AddLinkIDs(ids ...uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) AddLinks(b ...*Blob) *BlobUpdate + func (bu *BlobUpdate) ClearLinks() *BlobUpdate + func (bu *BlobUpdate) ClearParent() *BlobUpdate + func (bu *BlobUpdate) Exec(ctx context.Context) error + func (bu *BlobUpdate) ExecX(ctx context.Context) + func (bu *BlobUpdate) Mutation() *BlobMutation + func (bu *BlobUpdate) RemoveLinkIDs(ids ...uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) RemoveLinks(b ...*Blob) *BlobUpdate + func (bu *BlobUpdate) Save(ctx context.Context) (int, error) + func (bu *BlobUpdate) SaveX(ctx context.Context) int + func (bu *BlobUpdate) SetCount(i int) *BlobUpdate + func (bu *BlobUpdate) SetNillableCount(i *int) *BlobUpdate + func (bu *BlobUpdate) SetNillableParentID(id *uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) SetNillableUUID(u *uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) SetParent(b *Blob) *BlobUpdate + func (bu *BlobUpdate) SetParentID(id uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) SetUUID(u uuid.UUID) *BlobUpdate + func (bu *BlobUpdate) Where(ps ...predicate.Blob) *BlobUpdate + type BlobUpdateOne struct + func (buo *BlobUpdateOne) AddCount(i int) *BlobUpdateOne + func (buo *BlobUpdateOne) AddLinkIDs(ids ...uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) AddLinks(b ...*Blob) *BlobUpdateOne + func (buo *BlobUpdateOne) ClearLinks() *BlobUpdateOne + func (buo *BlobUpdateOne) ClearParent() *BlobUpdateOne + func (buo *BlobUpdateOne) Exec(ctx context.Context) error + func (buo *BlobUpdateOne) ExecX(ctx context.Context) + func (buo *BlobUpdateOne) Mutation() *BlobMutation + func (buo *BlobUpdateOne) RemoveLinkIDs(ids ...uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) RemoveLinks(b ...*Blob) *BlobUpdateOne + func (buo *BlobUpdateOne) Save(ctx context.Context) (*Blob, error) + func (buo *BlobUpdateOne) SaveX(ctx context.Context) *Blob + func (buo *BlobUpdateOne) Select(field string, fields ...string) *BlobUpdateOne + func (buo *BlobUpdateOne) SetCount(i int) *BlobUpdateOne + func (buo *BlobUpdateOne) SetNillableCount(i *int) *BlobUpdateOne + func (buo *BlobUpdateOne) SetNillableParentID(id *uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) SetNillableUUID(u *uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) SetParent(b *Blob) *BlobUpdateOne + func (buo *BlobUpdateOne) SetParentID(id uuid.UUID) *BlobUpdateOne + func (buo *BlobUpdateOne) SetUUID(u uuid.UUID) *BlobUpdateOne + type BlobUpsert struct + func (u *BlobUpsert) AddCount(v int) *BlobUpsert + func (u *BlobUpsert) SetCount(v int) *BlobUpsert + func (u *BlobUpsert) SetUUID(v uuid.UUID) *BlobUpsert + func (u *BlobUpsert) UpdateCount() *BlobUpsert + func (u *BlobUpsert) UpdateUUID() *BlobUpsert + type BlobUpsertBulk struct + func (u *BlobUpsertBulk) AddCount(v int) *BlobUpsertBulk + func (u *BlobUpsertBulk) DoNothing() *BlobUpsertBulk + func (u *BlobUpsertBulk) Exec(ctx context.Context) error + func (u *BlobUpsertBulk) ExecX(ctx context.Context) + func (u *BlobUpsertBulk) Ignore() *BlobUpsertBulk + func (u *BlobUpsertBulk) SetCount(v int) *BlobUpsertBulk + func (u *BlobUpsertBulk) SetUUID(v uuid.UUID) *BlobUpsertBulk + func (u *BlobUpsertBulk) Update(set func(*BlobUpsert)) *BlobUpsertBulk + func (u *BlobUpsertBulk) UpdateCount() *BlobUpsertBulk + func (u *BlobUpsertBulk) UpdateNewValues() *BlobUpsertBulk + func (u *BlobUpsertBulk) UpdateUUID() *BlobUpsertBulk + type BlobUpsertOne struct + func (u *BlobUpsertOne) AddCount(v int) *BlobUpsertOne + func (u *BlobUpsertOne) DoNothing() *BlobUpsertOne + func (u *BlobUpsertOne) Exec(ctx context.Context) error + func (u *BlobUpsertOne) ExecX(ctx context.Context) + func (u *BlobUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error) + func (u *BlobUpsertOne) IDX(ctx context.Context) uuid.UUID + func (u *BlobUpsertOne) Ignore() *BlobUpsertOne + func (u *BlobUpsertOne) SetCount(v int) *BlobUpsertOne + func (u *BlobUpsertOne) SetUUID(v uuid.UUID) *BlobUpsertOne + func (u *BlobUpsertOne) Update(set func(*BlobUpsert)) *BlobUpsertOne + func (u *BlobUpsertOne) UpdateCount() *BlobUpsertOne + func (u *BlobUpsertOne) UpdateNewValues() *BlobUpsertOne + func (u *BlobUpsertOne) UpdateUUID() *BlobUpsertOne + type Blobs []*Blob + type Car struct + AfterID float64 + BeforeID float64 + Edges CarEdges + ID int + Model string + func (c *Car) QueryOwner() *PetQuery + func (c *Car) String() string + func (c *Car) Unwrap() *Car + func (c *Car) Update() *CarUpdateOne + type CarClient struct + func NewCarClient(c config) *CarClient + func (c *CarClient) Create() *CarCreate + func (c *CarClient) CreateBulk(builders ...*CarCreate) *CarCreateBulk + func (c *CarClient) Delete() *CarDelete + func (c *CarClient) DeleteOne(ca *Car) *CarDeleteOne + func (c *CarClient) DeleteOneID(id int) *CarDeleteOne + func (c *CarClient) Get(ctx context.Context, id int) (*Car, error) + func (c *CarClient) GetX(ctx context.Context, id int) *Car + func (c *CarClient) Hooks() []Hook + func (c *CarClient) Query() *CarQuery + func (c *CarClient) QueryOwner(ca *Car) *PetQuery + func (c *CarClient) Update() *CarUpdate + func (c *CarClient) UpdateOne(ca *Car) *CarUpdateOne + func (c *CarClient) UpdateOneID(id int) *CarUpdateOne + func (c *CarClient) Use(hooks ...Hook) + type CarCreate struct + func (cc *CarCreate) Exec(ctx context.Context) error + func (cc *CarCreate) ExecX(ctx context.Context) + func (cc *CarCreate) Mutation() *CarMutation + func (cc *CarCreate) OnConflict(opts ...sql.ConflictOption) *CarUpsertOne + func (cc *CarCreate) OnConflictColumns(columns ...string) *CarUpsertOne + func (cc *CarCreate) Save(ctx context.Context) (*Car, error) + func (cc *CarCreate) SaveX(ctx context.Context) *Car + func (cc *CarCreate) SetAfterID(f float64) *CarCreate + func (cc *CarCreate) SetBeforeID(f float64) *CarCreate + func (cc *CarCreate) SetID(i int) *CarCreate + func (cc *CarCreate) SetModel(s string) *CarCreate + func (cc *CarCreate) SetNillableAfterID(f *float64) *CarCreate + func (cc *CarCreate) SetNillableBeforeID(f *float64) *CarCreate + func (cc *CarCreate) SetNillableOwnerID(id *string) *CarCreate + func (cc *CarCreate) SetOwner(p *Pet) *CarCreate + func (cc *CarCreate) SetOwnerID(id string) *CarCreate + type CarCreateBulk struct + func (ccb *CarCreateBulk) Exec(ctx context.Context) error + func (ccb *CarCreateBulk) ExecX(ctx context.Context) + func (ccb *CarCreateBulk) OnConflict(opts ...sql.ConflictOption) *CarUpsertBulk + func (ccb *CarCreateBulk) OnConflictColumns(columns ...string) *CarUpsertBulk + func (ccb *CarCreateBulk) Save(ctx context.Context) ([]*Car, error) + func (ccb *CarCreateBulk) SaveX(ctx context.Context) []*Car + type CarDelete struct + func (cd *CarDelete) Exec(ctx context.Context) (int, error) + func (cd *CarDelete) ExecX(ctx context.Context) int + func (cd *CarDelete) Where(ps ...predicate.Car) *CarDelete + type CarDeleteOne struct + func (cdo *CarDeleteOne) Exec(ctx context.Context) error + func (cdo *CarDeleteOne) ExecX(ctx context.Context) + type CarEdges struct + Owner *Pet + func (e CarEdges) OwnerOrErr() (*Pet, error) + type CarFilter struct + func (f *CarFilter) Where(p entql.P) + func (f *CarFilter) WhereAfterID(p entql.Float64P) + func (f *CarFilter) WhereBeforeID(p entql.Float64P) + func (f *CarFilter) WhereHasOwner() + func (f *CarFilter) WhereHasOwnerWith(preds ...predicate.Pet) + func (f *CarFilter) WhereID(p entql.IntP) + func (f *CarFilter) WhereModel(p entql.StringP) + type CarGroupBy struct + func (cgb *CarGroupBy) Aggregate(fns ...AggregateFunc) *CarGroupBy + func (cgb *CarGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *CarGroupBy) BoolX(ctx context.Context) bool + func (cgb *CarGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *CarGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *CarGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *CarGroupBy) Float64X(ctx context.Context) float64 + func (cgb *CarGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *CarGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *CarGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *CarGroupBy) IntX(ctx context.Context) int + func (cgb *CarGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *CarGroupBy) IntsX(ctx context.Context) []int + func (cgb *CarGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *CarGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *CarGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *CarGroupBy) StringX(ctx context.Context) string + func (cgb *CarGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *CarGroupBy) StringsX(ctx context.Context) []string + type CarMutation struct + func (m *CarMutation) AddAfterID(f float64) + func (m *CarMutation) AddBeforeID(f float64) + func (m *CarMutation) AddField(name string, value ent.Value) error + func (m *CarMutation) AddedAfterID() (r float64, exists bool) + func (m *CarMutation) AddedBeforeID() (r float64, exists bool) + func (m *CarMutation) AddedEdges() []string + func (m *CarMutation) AddedField(name string) (ent.Value, bool) + func (m *CarMutation) AddedFields() []string + func (m *CarMutation) AddedIDs(name string) []ent.Value + func (m *CarMutation) AfterID() (r float64, exists bool) + func (m *CarMutation) AfterIDCleared() bool + func (m *CarMutation) BeforeID() (r float64, exists bool) + func (m *CarMutation) BeforeIDCleared() bool + func (m *CarMutation) ClearAfterID() + func (m *CarMutation) ClearBeforeID() + func (m *CarMutation) ClearEdge(name string) error + func (m *CarMutation) ClearField(name string) error + func (m *CarMutation) ClearOwner() + func (m *CarMutation) ClearedEdges() []string + func (m *CarMutation) ClearedFields() []string + func (m *CarMutation) EdgeCleared(name string) bool + func (m *CarMutation) Field(name string) (ent.Value, bool) + func (m *CarMutation) FieldCleared(name string) bool + func (m *CarMutation) Fields() []string + func (m *CarMutation) Filter() *CarFilter + func (m *CarMutation) ID() (id int, exists bool) + func (m *CarMutation) IDs(ctx context.Context) ([]int, error) + func (m *CarMutation) Model() (r string, exists bool) + func (m *CarMutation) OldAfterID(ctx context.Context) (v float64, err error) + func (m *CarMutation) OldBeforeID(ctx context.Context) (v float64, err error) + func (m *CarMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CarMutation) OldModel(ctx context.Context) (v string, err error) + func (m *CarMutation) Op() Op + func (m *CarMutation) OwnerCleared() bool + func (m *CarMutation) OwnerID() (id string, exists bool) + func (m *CarMutation) OwnerIDs() (ids []string) + func (m *CarMutation) RemovedEdges() []string + func (m *CarMutation) RemovedIDs(name string) []ent.Value + func (m *CarMutation) ResetAfterID() + func (m *CarMutation) ResetBeforeID() + func (m *CarMutation) ResetEdge(name string) error + func (m *CarMutation) ResetField(name string) error + func (m *CarMutation) ResetModel() + func (m *CarMutation) ResetOwner() + func (m *CarMutation) SetAfterID(f float64) + func (m *CarMutation) SetBeforeID(f float64) + func (m *CarMutation) SetField(name string, value ent.Value) error + func (m *CarMutation) SetID(id int) + func (m *CarMutation) SetModel(s string) + func (m *CarMutation) SetOwnerID(id string) + func (m *CarMutation) Type() string + func (m *CarMutation) 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) Filter() *CarFilter + func (cq *CarQuery) First(ctx context.Context) (*Car, error) + func (cq *CarQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CarQuery) FirstIDX(ctx context.Context) int + func (cq *CarQuery) FirstX(ctx context.Context) *Car + func (cq *CarQuery) GroupBy(field string, fields ...string) *CarGroupBy + func (cq *CarQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CarQuery) IDsX(ctx context.Context) []int + func (cq *CarQuery) Limit(limit int) *CarQuery + func (cq *CarQuery) Offset(offset int) *CarQuery + func (cq *CarQuery) Only(ctx context.Context) (*Car, error) + func (cq *CarQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CarQuery) OnlyIDX(ctx context.Context) int + func (cq *CarQuery) OnlyX(ctx context.Context) *Car + func (cq *CarQuery) Order(o ...OrderFunc) *CarQuery + func (cq *CarQuery) QueryOwner() *PetQuery + func (cq *CarQuery) Select(fields ...string) *CarSelect + func (cq *CarQuery) Unique(unique bool) *CarQuery + func (cq *CarQuery) Where(ps ...predicate.Car) *CarQuery + func (cq *CarQuery) WithOwner(opts ...func(*PetQuery)) *CarQuery + type CarSelect struct + func (cs *CarSelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *CarSelect) BoolX(ctx context.Context) bool + func (cs *CarSelect) Bools(ctx context.Context) ([]bool, error) + func (cs *CarSelect) BoolsX(ctx context.Context) []bool + func (cs *CarSelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *CarSelect) Float64X(ctx context.Context) float64 + func (cs *CarSelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *CarSelect) Float64sX(ctx context.Context) []float64 + func (cs *CarSelect) Int(ctx context.Context) (_ int, err error) + func (cs *CarSelect) IntX(ctx context.Context) int + func (cs *CarSelect) Ints(ctx context.Context) ([]int, error) + func (cs *CarSelect) IntsX(ctx context.Context) []int + func (cs *CarSelect) Scan(ctx context.Context, v interface{}) error + func (cs *CarSelect) ScanX(ctx context.Context, v interface{}) + func (cs *CarSelect) String(ctx context.Context) (_ string, err error) + func (cs *CarSelect) StringX(ctx context.Context) string + func (cs *CarSelect) Strings(ctx context.Context) ([]string, error) + func (cs *CarSelect) StringsX(ctx context.Context) []string + type CarUpdate struct + func (cu *CarUpdate) AddAfterID(f float64) *CarUpdate + func (cu *CarUpdate) AddBeforeID(f float64) *CarUpdate + func (cu *CarUpdate) ClearAfterID() *CarUpdate + func (cu *CarUpdate) ClearBeforeID() *CarUpdate + func (cu *CarUpdate) ClearOwner() *CarUpdate + func (cu *CarUpdate) Exec(ctx context.Context) error + func (cu *CarUpdate) ExecX(ctx context.Context) + func (cu *CarUpdate) Mutation() *CarMutation + func (cu *CarUpdate) Save(ctx context.Context) (int, error) + func (cu *CarUpdate) SaveX(ctx context.Context) int + func (cu *CarUpdate) SetAfterID(f float64) *CarUpdate + func (cu *CarUpdate) SetBeforeID(f float64) *CarUpdate + func (cu *CarUpdate) SetModel(s string) *CarUpdate + func (cu *CarUpdate) SetNillableAfterID(f *float64) *CarUpdate + func (cu *CarUpdate) SetNillableBeforeID(f *float64) *CarUpdate + func (cu *CarUpdate) SetNillableOwnerID(id *string) *CarUpdate + func (cu *CarUpdate) SetOwner(p *Pet) *CarUpdate + func (cu *CarUpdate) SetOwnerID(id string) *CarUpdate + func (cu *CarUpdate) Where(ps ...predicate.Car) *CarUpdate + type CarUpdateOne struct + func (cuo *CarUpdateOne) AddAfterID(f float64) *CarUpdateOne + func (cuo *CarUpdateOne) AddBeforeID(f float64) *CarUpdateOne + func (cuo *CarUpdateOne) ClearAfterID() *CarUpdateOne + func (cuo *CarUpdateOne) ClearBeforeID() *CarUpdateOne + func (cuo *CarUpdateOne) ClearOwner() *CarUpdateOne + func (cuo *CarUpdateOne) Exec(ctx context.Context) error + func (cuo *CarUpdateOne) ExecX(ctx context.Context) + func (cuo *CarUpdateOne) Mutation() *CarMutation + func (cuo *CarUpdateOne) Save(ctx context.Context) (*Car, error) + func (cuo *CarUpdateOne) SaveX(ctx context.Context) *Car + func (cuo *CarUpdateOne) Select(field string, fields ...string) *CarUpdateOne + func (cuo *CarUpdateOne) SetAfterID(f float64) *CarUpdateOne + func (cuo *CarUpdateOne) SetBeforeID(f float64) *CarUpdateOne + func (cuo *CarUpdateOne) SetModel(s string) *CarUpdateOne + func (cuo *CarUpdateOne) SetNillableAfterID(f *float64) *CarUpdateOne + func (cuo *CarUpdateOne) SetNillableBeforeID(f *float64) *CarUpdateOne + func (cuo *CarUpdateOne) SetNillableOwnerID(id *string) *CarUpdateOne + func (cuo *CarUpdateOne) SetOwner(p *Pet) *CarUpdateOne + func (cuo *CarUpdateOne) SetOwnerID(id string) *CarUpdateOne + type CarUpsert struct + func (u *CarUpsert) AddAfterID(v float64) *CarUpsert + func (u *CarUpsert) AddBeforeID(v float64) *CarUpsert + func (u *CarUpsert) ClearAfterID() *CarUpsert + func (u *CarUpsert) ClearBeforeID() *CarUpsert + func (u *CarUpsert) SetAfterID(v float64) *CarUpsert + func (u *CarUpsert) SetBeforeID(v float64) *CarUpsert + func (u *CarUpsert) SetModel(v string) *CarUpsert + func (u *CarUpsert) UpdateAfterID() *CarUpsert + func (u *CarUpsert) UpdateBeforeID() *CarUpsert + func (u *CarUpsert) UpdateModel() *CarUpsert + type CarUpsertBulk struct + func (u *CarUpsertBulk) AddAfterID(v float64) *CarUpsertBulk + func (u *CarUpsertBulk) AddBeforeID(v float64) *CarUpsertBulk + func (u *CarUpsertBulk) ClearAfterID() *CarUpsertBulk + func (u *CarUpsertBulk) ClearBeforeID() *CarUpsertBulk + func (u *CarUpsertBulk) DoNothing() *CarUpsertBulk + func (u *CarUpsertBulk) Exec(ctx context.Context) error + func (u *CarUpsertBulk) ExecX(ctx context.Context) + func (u *CarUpsertBulk) Ignore() *CarUpsertBulk + func (u *CarUpsertBulk) SetAfterID(v float64) *CarUpsertBulk + func (u *CarUpsertBulk) SetBeforeID(v float64) *CarUpsertBulk + func (u *CarUpsertBulk) SetModel(v string) *CarUpsertBulk + func (u *CarUpsertBulk) Update(set func(*CarUpsert)) *CarUpsertBulk + func (u *CarUpsertBulk) UpdateAfterID() *CarUpsertBulk + func (u *CarUpsertBulk) UpdateBeforeID() *CarUpsertBulk + func (u *CarUpsertBulk) UpdateModel() *CarUpsertBulk + func (u *CarUpsertBulk) UpdateNewValues() *CarUpsertBulk + type CarUpsertOne struct + func (u *CarUpsertOne) AddAfterID(v float64) *CarUpsertOne + func (u *CarUpsertOne) AddBeforeID(v float64) *CarUpsertOne + func (u *CarUpsertOne) ClearAfterID() *CarUpsertOne + func (u *CarUpsertOne) ClearBeforeID() *CarUpsertOne + func (u *CarUpsertOne) DoNothing() *CarUpsertOne + func (u *CarUpsertOne) Exec(ctx context.Context) error + func (u *CarUpsertOne) ExecX(ctx context.Context) + func (u *CarUpsertOne) ID(ctx context.Context) (id int, err error) + func (u *CarUpsertOne) IDX(ctx context.Context) int + func (u *CarUpsertOne) Ignore() *CarUpsertOne + func (u *CarUpsertOne) SetAfterID(v float64) *CarUpsertOne + func (u *CarUpsertOne) SetBeforeID(v float64) *CarUpsertOne + func (u *CarUpsertOne) SetModel(v string) *CarUpsertOne + func (u *CarUpsertOne) Update(set func(*CarUpsert)) *CarUpsertOne + func (u *CarUpsertOne) UpdateAfterID() *CarUpsertOne + func (u *CarUpsertOne) UpdateBeforeID() *CarUpsertOne + func (u *CarUpsertOne) UpdateModel() *CarUpsertOne + func (u *CarUpsertOne) UpdateNewValues() *CarUpsertOne + type Cars []*Car + type Client struct + Blob *BlobClient + Car *CarClient + Device *DeviceClient + Doc *DocClient + Group *GroupClient + MixinID *MixinIDClient + Note *NoteClient + Pet *PetClient + Schema *migrate.Schema + Session *SessionClient + 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 Device struct + Edges DeviceEdges + ID schema.ID + func (d *Device) QueryActiveSession() *SessionQuery + func (d *Device) QuerySessions() *SessionQuery + func (d *Device) String() string + func (d *Device) Unwrap() *Device + func (d *Device) Update() *DeviceUpdateOne + type DeviceClient struct + func NewDeviceClient(c config) *DeviceClient + func (c *DeviceClient) Create() *DeviceCreate + func (c *DeviceClient) CreateBulk(builders ...*DeviceCreate) *DeviceCreateBulk + func (c *DeviceClient) Delete() *DeviceDelete + func (c *DeviceClient) DeleteOne(d *Device) *DeviceDeleteOne + func (c *DeviceClient) DeleteOneID(id schema.ID) *DeviceDeleteOne + func (c *DeviceClient) Get(ctx context.Context, id schema.ID) (*Device, error) + func (c *DeviceClient) GetX(ctx context.Context, id schema.ID) *Device + func (c *DeviceClient) Hooks() []Hook + func (c *DeviceClient) Query() *DeviceQuery + func (c *DeviceClient) QueryActiveSession(d *Device) *SessionQuery + func (c *DeviceClient) QuerySessions(d *Device) *SessionQuery + func (c *DeviceClient) Update() *DeviceUpdate + func (c *DeviceClient) UpdateOne(d *Device) *DeviceUpdateOne + func (c *DeviceClient) UpdateOneID(id schema.ID) *DeviceUpdateOne + func (c *DeviceClient) Use(hooks ...Hook) + type DeviceCreate struct + func (dc *DeviceCreate) AddSessionIDs(ids ...schema.ID) *DeviceCreate + func (dc *DeviceCreate) AddSessions(s ...*Session) *DeviceCreate + func (dc *DeviceCreate) Exec(ctx context.Context) error + func (dc *DeviceCreate) ExecX(ctx context.Context) + func (dc *DeviceCreate) Mutation() *DeviceMutation + func (dc *DeviceCreate) OnConflict(opts ...sql.ConflictOption) *DeviceUpsertOne + func (dc *DeviceCreate) OnConflictColumns(columns ...string) *DeviceUpsertOne + func (dc *DeviceCreate) Save(ctx context.Context) (*Device, error) + func (dc *DeviceCreate) SaveX(ctx context.Context) *Device + func (dc *DeviceCreate) SetActiveSession(s *Session) *DeviceCreate + func (dc *DeviceCreate) SetActiveSessionID(id schema.ID) *DeviceCreate + func (dc *DeviceCreate) SetID(s schema.ID) *DeviceCreate + func (dc *DeviceCreate) SetNillableActiveSessionID(id *schema.ID) *DeviceCreate + func (dc *DeviceCreate) SetNillableID(s *schema.ID) *DeviceCreate + type DeviceCreateBulk struct + func (dcb *DeviceCreateBulk) Exec(ctx context.Context) error + func (dcb *DeviceCreateBulk) ExecX(ctx context.Context) + func (dcb *DeviceCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceUpsertBulk + func (dcb *DeviceCreateBulk) OnConflictColumns(columns ...string) *DeviceUpsertBulk + func (dcb *DeviceCreateBulk) Save(ctx context.Context) ([]*Device, error) + func (dcb *DeviceCreateBulk) SaveX(ctx context.Context) []*Device + type DeviceDelete struct + func (dd *DeviceDelete) Exec(ctx context.Context) (int, error) + func (dd *DeviceDelete) ExecX(ctx context.Context) int + func (dd *DeviceDelete) Where(ps ...predicate.Device) *DeviceDelete + type DeviceDeleteOne struct + func (ddo *DeviceDeleteOne) Exec(ctx context.Context) error + func (ddo *DeviceDeleteOne) ExecX(ctx context.Context) + type DeviceEdges struct + ActiveSession *Session + Sessions []*Session + func (e DeviceEdges) ActiveSessionOrErr() (*Session, error) + func (e DeviceEdges) SessionsOrErr() ([]*Session, error) + type DeviceFilter struct + func (f *DeviceFilter) Where(p entql.P) + func (f *DeviceFilter) WhereHasActiveSession() + func (f *DeviceFilter) WhereHasActiveSessionWith(preds ...predicate.Session) + func (f *DeviceFilter) WhereHasSessions() + func (f *DeviceFilter) WhereHasSessionsWith(preds ...predicate.Session) + func (f *DeviceFilter) WhereID(p entql.BytesP) + type DeviceGroupBy struct + func (dgb *DeviceGroupBy) Aggregate(fns ...AggregateFunc) *DeviceGroupBy + func (dgb *DeviceGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (dgb *DeviceGroupBy) BoolX(ctx context.Context) bool + func (dgb *DeviceGroupBy) Bools(ctx context.Context) ([]bool, error) + func (dgb *DeviceGroupBy) BoolsX(ctx context.Context) []bool + func (dgb *DeviceGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (dgb *DeviceGroupBy) Float64X(ctx context.Context) float64 + func (dgb *DeviceGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (dgb *DeviceGroupBy) Float64sX(ctx context.Context) []float64 + func (dgb *DeviceGroupBy) Int(ctx context.Context) (_ int, err error) + func (dgb *DeviceGroupBy) IntX(ctx context.Context) int + func (dgb *DeviceGroupBy) Ints(ctx context.Context) ([]int, error) + func (dgb *DeviceGroupBy) IntsX(ctx context.Context) []int + func (dgb *DeviceGroupBy) Scan(ctx context.Context, v interface{}) error + func (dgb *DeviceGroupBy) ScanX(ctx context.Context, v interface{}) + func (dgb *DeviceGroupBy) String(ctx context.Context) (_ string, err error) + func (dgb *DeviceGroupBy) StringX(ctx context.Context) string + func (dgb *DeviceGroupBy) Strings(ctx context.Context) ([]string, error) + func (dgb *DeviceGroupBy) StringsX(ctx context.Context) []string + type DeviceMutation struct + func (m *DeviceMutation) ActiveSessionCleared() bool + func (m *DeviceMutation) ActiveSessionID() (id schema.ID, exists bool) + func (m *DeviceMutation) ActiveSessionIDs() (ids []schema.ID) + func (m *DeviceMutation) AddField(name string, value ent.Value) error + func (m *DeviceMutation) AddSessionIDs(ids ...schema.ID) + func (m *DeviceMutation) AddedEdges() []string + func (m *DeviceMutation) AddedField(name string) (ent.Value, bool) + func (m *DeviceMutation) AddedFields() []string + func (m *DeviceMutation) AddedIDs(name string) []ent.Value + func (m *DeviceMutation) ClearActiveSession() + func (m *DeviceMutation) ClearEdge(name string) error + func (m *DeviceMutation) ClearField(name string) error + func (m *DeviceMutation) ClearSessions() + func (m *DeviceMutation) ClearedEdges() []string + func (m *DeviceMutation) ClearedFields() []string + func (m *DeviceMutation) EdgeCleared(name string) bool + func (m *DeviceMutation) Field(name string) (ent.Value, bool) + func (m *DeviceMutation) FieldCleared(name string) bool + func (m *DeviceMutation) Fields() []string + func (m *DeviceMutation) Filter() *DeviceFilter + func (m *DeviceMutation) ID() (id schema.ID, exists bool) + func (m *DeviceMutation) IDs(ctx context.Context) ([]schema.ID, error) + func (m *DeviceMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *DeviceMutation) Op() Op + func (m *DeviceMutation) RemoveSessionIDs(ids ...schema.ID) + func (m *DeviceMutation) RemovedEdges() []string + func (m *DeviceMutation) RemovedIDs(name string) []ent.Value + func (m *DeviceMutation) RemovedSessionsIDs() (ids []schema.ID) + func (m *DeviceMutation) ResetActiveSession() + func (m *DeviceMutation) ResetEdge(name string) error + func (m *DeviceMutation) ResetField(name string) error + func (m *DeviceMutation) ResetSessions() + func (m *DeviceMutation) SessionsCleared() bool + func (m *DeviceMutation) SessionsIDs() (ids []schema.ID) + func (m *DeviceMutation) SetActiveSessionID(id schema.ID) + func (m *DeviceMutation) SetField(name string, value ent.Value) error + func (m *DeviceMutation) SetID(id schema.ID) + func (m *DeviceMutation) Type() string + func (m *DeviceMutation) Where(ps ...predicate.Device) + func (m DeviceMutation) Client() *Client + func (m DeviceMutation) Tx() (*Tx, error) + type DeviceQuery struct + func (dq *DeviceQuery) All(ctx context.Context) ([]*Device, error) + func (dq *DeviceQuery) AllX(ctx context.Context) []*Device + func (dq *DeviceQuery) Clone() *DeviceQuery + func (dq *DeviceQuery) Count(ctx context.Context) (int, error) + func (dq *DeviceQuery) CountX(ctx context.Context) int + func (dq *DeviceQuery) Exist(ctx context.Context) (bool, error) + func (dq *DeviceQuery) ExistX(ctx context.Context) bool + func (dq *DeviceQuery) Filter() *DeviceFilter + func (dq *DeviceQuery) First(ctx context.Context) (*Device, error) + func (dq *DeviceQuery) FirstID(ctx context.Context) (id schema.ID, err error) + func (dq *DeviceQuery) FirstIDX(ctx context.Context) schema.ID + func (dq *DeviceQuery) FirstX(ctx context.Context) *Device + func (dq *DeviceQuery) GroupBy(field string, fields ...string) *DeviceGroupBy + func (dq *DeviceQuery) IDs(ctx context.Context) ([]schema.ID, error) + func (dq *DeviceQuery) IDsX(ctx context.Context) []schema.ID + func (dq *DeviceQuery) Limit(limit int) *DeviceQuery + func (dq *DeviceQuery) Offset(offset int) *DeviceQuery + func (dq *DeviceQuery) Only(ctx context.Context) (*Device, error) + func (dq *DeviceQuery) OnlyID(ctx context.Context) (id schema.ID, err error) + func (dq *DeviceQuery) OnlyIDX(ctx context.Context) schema.ID + func (dq *DeviceQuery) OnlyX(ctx context.Context) *Device + func (dq *DeviceQuery) Order(o ...OrderFunc) *DeviceQuery + func (dq *DeviceQuery) QueryActiveSession() *SessionQuery + func (dq *DeviceQuery) QuerySessions() *SessionQuery + func (dq *DeviceQuery) Select(fields ...string) *DeviceSelect + func (dq *DeviceQuery) Unique(unique bool) *DeviceQuery + func (dq *DeviceQuery) Where(ps ...predicate.Device) *DeviceQuery + func (dq *DeviceQuery) WithActiveSession(opts ...func(*SessionQuery)) *DeviceQuery + func (dq *DeviceQuery) WithSessions(opts ...func(*SessionQuery)) *DeviceQuery + type DeviceSelect struct + func (ds *DeviceSelect) Bool(ctx context.Context) (_ bool, err error) + func (ds *DeviceSelect) BoolX(ctx context.Context) bool + func (ds *DeviceSelect) Bools(ctx context.Context) ([]bool, error) + func (ds *DeviceSelect) BoolsX(ctx context.Context) []bool + func (ds *DeviceSelect) Float64(ctx context.Context) (_ float64, err error) + func (ds *DeviceSelect) Float64X(ctx context.Context) float64 + func (ds *DeviceSelect) Float64s(ctx context.Context) ([]float64, error) + func (ds *DeviceSelect) Float64sX(ctx context.Context) []float64 + func (ds *DeviceSelect) Int(ctx context.Context) (_ int, err error) + func (ds *DeviceSelect) IntX(ctx context.Context) int + func (ds *DeviceSelect) Ints(ctx context.Context) ([]int, error) + func (ds *DeviceSelect) IntsX(ctx context.Context) []int + func (ds *DeviceSelect) Scan(ctx context.Context, v interface{}) error + func (ds *DeviceSelect) ScanX(ctx context.Context, v interface{}) + func (ds *DeviceSelect) String(ctx context.Context) (_ string, err error) + func (ds *DeviceSelect) StringX(ctx context.Context) string + func (ds *DeviceSelect) Strings(ctx context.Context) ([]string, error) + func (ds *DeviceSelect) StringsX(ctx context.Context) []string + type DeviceUpdate struct + func (du *DeviceUpdate) AddSessionIDs(ids ...schema.ID) *DeviceUpdate + func (du *DeviceUpdate) AddSessions(s ...*Session) *DeviceUpdate + func (du *DeviceUpdate) ClearActiveSession() *DeviceUpdate + func (du *DeviceUpdate) ClearSessions() *DeviceUpdate + func (du *DeviceUpdate) Exec(ctx context.Context) error + func (du *DeviceUpdate) ExecX(ctx context.Context) + func (du *DeviceUpdate) Mutation() *DeviceMutation + func (du *DeviceUpdate) RemoveSessionIDs(ids ...schema.ID) *DeviceUpdate + func (du *DeviceUpdate) RemoveSessions(s ...*Session) *DeviceUpdate + func (du *DeviceUpdate) Save(ctx context.Context) (int, error) + func (du *DeviceUpdate) SaveX(ctx context.Context) int + func (du *DeviceUpdate) SetActiveSession(s *Session) *DeviceUpdate + func (du *DeviceUpdate) SetActiveSessionID(id schema.ID) *DeviceUpdate + func (du *DeviceUpdate) SetNillableActiveSessionID(id *schema.ID) *DeviceUpdate + func (du *DeviceUpdate) Where(ps ...predicate.Device) *DeviceUpdate + type DeviceUpdateOne struct + func (duo *DeviceUpdateOne) AddSessionIDs(ids ...schema.ID) *DeviceUpdateOne + func (duo *DeviceUpdateOne) AddSessions(s ...*Session) *DeviceUpdateOne + func (duo *DeviceUpdateOne) ClearActiveSession() *DeviceUpdateOne + func (duo *DeviceUpdateOne) ClearSessions() *DeviceUpdateOne + func (duo *DeviceUpdateOne) Exec(ctx context.Context) error + func (duo *DeviceUpdateOne) ExecX(ctx context.Context) + func (duo *DeviceUpdateOne) Mutation() *DeviceMutation + func (duo *DeviceUpdateOne) RemoveSessionIDs(ids ...schema.ID) *DeviceUpdateOne + func (duo *DeviceUpdateOne) RemoveSessions(s ...*Session) *DeviceUpdateOne + func (duo *DeviceUpdateOne) Save(ctx context.Context) (*Device, error) + func (duo *DeviceUpdateOne) SaveX(ctx context.Context) *Device + func (duo *DeviceUpdateOne) Select(field string, fields ...string) *DeviceUpdateOne + func (duo *DeviceUpdateOne) SetActiveSession(s *Session) *DeviceUpdateOne + func (duo *DeviceUpdateOne) SetActiveSessionID(id schema.ID) *DeviceUpdateOne + func (duo *DeviceUpdateOne) SetNillableActiveSessionID(id *schema.ID) *DeviceUpdateOne + type DeviceUpsert struct + type DeviceUpsertBulk struct + func (u *DeviceUpsertBulk) DoNothing() *DeviceUpsertBulk + func (u *DeviceUpsertBulk) Exec(ctx context.Context) error + func (u *DeviceUpsertBulk) ExecX(ctx context.Context) + func (u *DeviceUpsertBulk) Ignore() *DeviceUpsertBulk + func (u *DeviceUpsertBulk) Update(set func(*DeviceUpsert)) *DeviceUpsertBulk + func (u *DeviceUpsertBulk) UpdateNewValues() *DeviceUpsertBulk + type DeviceUpsertOne struct + func (u *DeviceUpsertOne) DoNothing() *DeviceUpsertOne + func (u *DeviceUpsertOne) Exec(ctx context.Context) error + func (u *DeviceUpsertOne) ExecX(ctx context.Context) + func (u *DeviceUpsertOne) ID(ctx context.Context) (id schema.ID, err error) + func (u *DeviceUpsertOne) IDX(ctx context.Context) schema.ID + func (u *DeviceUpsertOne) Ignore() *DeviceUpsertOne + func (u *DeviceUpsertOne) Update(set func(*DeviceUpsert)) *DeviceUpsertOne + func (u *DeviceUpsertOne) UpdateNewValues() *DeviceUpsertOne + type Devices []*Device + type Doc struct + Edges DocEdges + ID schema.DocID + Text string + func (d *Doc) QueryChildren() *DocQuery + func (d *Doc) QueryParent() *DocQuery + func (d *Doc) String() string + func (d *Doc) Unwrap() *Doc + func (d *Doc) Update() *DocUpdateOne + type DocClient struct + func NewDocClient(c config) *DocClient + func (c *DocClient) Create() *DocCreate + func (c *DocClient) CreateBulk(builders ...*DocCreate) *DocCreateBulk + func (c *DocClient) Delete() *DocDelete + func (c *DocClient) DeleteOne(d *Doc) *DocDeleteOne + func (c *DocClient) DeleteOneID(id schema.DocID) *DocDeleteOne + func (c *DocClient) Get(ctx context.Context, id schema.DocID) (*Doc, error) + func (c *DocClient) GetX(ctx context.Context, id schema.DocID) *Doc + func (c *DocClient) Hooks() []Hook + func (c *DocClient) Query() *DocQuery + func (c *DocClient) QueryChildren(d *Doc) *DocQuery + func (c *DocClient) QueryParent(d *Doc) *DocQuery + func (c *DocClient) Update() *DocUpdate + func (c *DocClient) UpdateOne(d *Doc) *DocUpdateOne + func (c *DocClient) UpdateOneID(id schema.DocID) *DocUpdateOne + func (c *DocClient) Use(hooks ...Hook) + type DocCreate struct + func (dc *DocCreate) AddChildIDs(ids ...schema.DocID) *DocCreate + func (dc *DocCreate) AddChildren(d ...*Doc) *DocCreate + func (dc *DocCreate) Exec(ctx context.Context) error + func (dc *DocCreate) ExecX(ctx context.Context) + func (dc *DocCreate) Mutation() *DocMutation + func (dc *DocCreate) OnConflict(opts ...sql.ConflictOption) *DocUpsertOne + func (dc *DocCreate) OnConflictColumns(columns ...string) *DocUpsertOne + func (dc *DocCreate) Save(ctx context.Context) (*Doc, error) + func (dc *DocCreate) SaveX(ctx context.Context) *Doc + func (dc *DocCreate) SetID(si schema.DocID) *DocCreate + func (dc *DocCreate) SetNillableID(si *schema.DocID) *DocCreate + func (dc *DocCreate) SetNillableParentID(id *schema.DocID) *DocCreate + func (dc *DocCreate) SetNillableText(s *string) *DocCreate + func (dc *DocCreate) SetParent(d *Doc) *DocCreate + func (dc *DocCreate) SetParentID(id schema.DocID) *DocCreate + func (dc *DocCreate) SetText(s string) *DocCreate + type DocCreateBulk struct + func (dcb *DocCreateBulk) Exec(ctx context.Context) error + func (dcb *DocCreateBulk) ExecX(ctx context.Context) + func (dcb *DocCreateBulk) OnConflict(opts ...sql.ConflictOption) *DocUpsertBulk + func (dcb *DocCreateBulk) OnConflictColumns(columns ...string) *DocUpsertBulk + func (dcb *DocCreateBulk) Save(ctx context.Context) ([]*Doc, error) + func (dcb *DocCreateBulk) SaveX(ctx context.Context) []*Doc + type DocDelete struct + func (dd *DocDelete) Exec(ctx context.Context) (int, error) + func (dd *DocDelete) ExecX(ctx context.Context) int + func (dd *DocDelete) Where(ps ...predicate.Doc) *DocDelete + type DocDeleteOne struct + func (ddo *DocDeleteOne) Exec(ctx context.Context) error + func (ddo *DocDeleteOne) ExecX(ctx context.Context) + type DocEdges struct + Children []*Doc + Parent *Doc + func (e DocEdges) ChildrenOrErr() ([]*Doc, error) + func (e DocEdges) ParentOrErr() (*Doc, error) + type DocFilter struct + func (f *DocFilter) Where(p entql.P) + func (f *DocFilter) WhereHasChildren() + func (f *DocFilter) WhereHasChildrenWith(preds ...predicate.Doc) + func (f *DocFilter) WhereHasParent() + func (f *DocFilter) WhereHasParentWith(preds ...predicate.Doc) + func (f *DocFilter) WhereID(p entql.StringP) + func (f *DocFilter) WhereText(p entql.StringP) + type DocGroupBy struct + func (dgb *DocGroupBy) Aggregate(fns ...AggregateFunc) *DocGroupBy + func (dgb *DocGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (dgb *DocGroupBy) BoolX(ctx context.Context) bool + func (dgb *DocGroupBy) Bools(ctx context.Context) ([]bool, error) + func (dgb *DocGroupBy) BoolsX(ctx context.Context) []bool + func (dgb *DocGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (dgb *DocGroupBy) Float64X(ctx context.Context) float64 + func (dgb *DocGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (dgb *DocGroupBy) Float64sX(ctx context.Context) []float64 + func (dgb *DocGroupBy) Int(ctx context.Context) (_ int, err error) + func (dgb *DocGroupBy) IntX(ctx context.Context) int + func (dgb *DocGroupBy) Ints(ctx context.Context) ([]int, error) + func (dgb *DocGroupBy) IntsX(ctx context.Context) []int + func (dgb *DocGroupBy) Scan(ctx context.Context, v interface{}) error + func (dgb *DocGroupBy) ScanX(ctx context.Context, v interface{}) + func (dgb *DocGroupBy) String(ctx context.Context) (_ string, err error) + func (dgb *DocGroupBy) StringX(ctx context.Context) string + func (dgb *DocGroupBy) Strings(ctx context.Context) ([]string, error) + func (dgb *DocGroupBy) StringsX(ctx context.Context) []string + type DocMutation struct + func (m *DocMutation) AddChildIDs(ids ...schema.DocID) + func (m *DocMutation) AddField(name string, value ent.Value) error + func (m *DocMutation) AddedEdges() []string + func (m *DocMutation) AddedField(name string) (ent.Value, bool) + func (m *DocMutation) AddedFields() []string + func (m *DocMutation) AddedIDs(name string) []ent.Value + func (m *DocMutation) ChildrenCleared() bool + func (m *DocMutation) ChildrenIDs() (ids []schema.DocID) + func (m *DocMutation) ClearChildren() + func (m *DocMutation) ClearEdge(name string) error + func (m *DocMutation) ClearField(name string) error + func (m *DocMutation) ClearParent() + func (m *DocMutation) ClearText() + func (m *DocMutation) ClearedEdges() []string + func (m *DocMutation) ClearedFields() []string + func (m *DocMutation) EdgeCleared(name string) bool + func (m *DocMutation) Field(name string) (ent.Value, bool) + func (m *DocMutation) FieldCleared(name string) bool + func (m *DocMutation) Fields() []string + func (m *DocMutation) Filter() *DocFilter + func (m *DocMutation) ID() (id schema.DocID, exists bool) + func (m *DocMutation) IDs(ctx context.Context) ([]schema.DocID, error) + func (m *DocMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *DocMutation) OldText(ctx context.Context) (v string, err error) + func (m *DocMutation) Op() Op + func (m *DocMutation) ParentCleared() bool + func (m *DocMutation) ParentID() (id schema.DocID, exists bool) + func (m *DocMutation) ParentIDs() (ids []schema.DocID) + func (m *DocMutation) RemoveChildIDs(ids ...schema.DocID) + func (m *DocMutation) RemovedChildrenIDs() (ids []schema.DocID) + func (m *DocMutation) RemovedEdges() []string + func (m *DocMutation) RemovedIDs(name string) []ent.Value + func (m *DocMutation) ResetChildren() + func (m *DocMutation) ResetEdge(name string) error + func (m *DocMutation) ResetField(name string) error + func (m *DocMutation) ResetParent() + func (m *DocMutation) ResetText() + func (m *DocMutation) SetField(name string, value ent.Value) error + func (m *DocMutation) SetID(id schema.DocID) + func (m *DocMutation) SetParentID(id schema.DocID) + func (m *DocMutation) SetText(s string) + func (m *DocMutation) Text() (r string, exists bool) + func (m *DocMutation) TextCleared() bool + func (m *DocMutation) Type() string + func (m *DocMutation) Where(ps ...predicate.Doc) + func (m DocMutation) Client() *Client + func (m DocMutation) Tx() (*Tx, error) + type DocQuery struct + func (dq *DocQuery) All(ctx context.Context) ([]*Doc, error) + func (dq *DocQuery) AllX(ctx context.Context) []*Doc + func (dq *DocQuery) Clone() *DocQuery + func (dq *DocQuery) Count(ctx context.Context) (int, error) + func (dq *DocQuery) CountX(ctx context.Context) int + func (dq *DocQuery) Exist(ctx context.Context) (bool, error) + func (dq *DocQuery) ExistX(ctx context.Context) bool + func (dq *DocQuery) Filter() *DocFilter + func (dq *DocQuery) First(ctx context.Context) (*Doc, error) + func (dq *DocQuery) FirstID(ctx context.Context) (id schema.DocID, err error) + func (dq *DocQuery) FirstIDX(ctx context.Context) schema.DocID + func (dq *DocQuery) FirstX(ctx context.Context) *Doc + func (dq *DocQuery) GroupBy(field string, fields ...string) *DocGroupBy + func (dq *DocQuery) IDs(ctx context.Context) ([]schema.DocID, error) + func (dq *DocQuery) IDsX(ctx context.Context) []schema.DocID + func (dq *DocQuery) Limit(limit int) *DocQuery + func (dq *DocQuery) Offset(offset int) *DocQuery + func (dq *DocQuery) Only(ctx context.Context) (*Doc, error) + func (dq *DocQuery) OnlyID(ctx context.Context) (id schema.DocID, err error) + func (dq *DocQuery) OnlyIDX(ctx context.Context) schema.DocID + func (dq *DocQuery) OnlyX(ctx context.Context) *Doc + func (dq *DocQuery) Order(o ...OrderFunc) *DocQuery + func (dq *DocQuery) QueryChildren() *DocQuery + func (dq *DocQuery) QueryParent() *DocQuery + func (dq *DocQuery) Select(fields ...string) *DocSelect + func (dq *DocQuery) Unique(unique bool) *DocQuery + func (dq *DocQuery) Where(ps ...predicate.Doc) *DocQuery + func (dq *DocQuery) WithChildren(opts ...func(*DocQuery)) *DocQuery + func (dq *DocQuery) WithParent(opts ...func(*DocQuery)) *DocQuery + type DocSelect struct + func (ds *DocSelect) Bool(ctx context.Context) (_ bool, err error) + func (ds *DocSelect) BoolX(ctx context.Context) bool + func (ds *DocSelect) Bools(ctx context.Context) ([]bool, error) + func (ds *DocSelect) BoolsX(ctx context.Context) []bool + func (ds *DocSelect) Float64(ctx context.Context) (_ float64, err error) + func (ds *DocSelect) Float64X(ctx context.Context) float64 + func (ds *DocSelect) Float64s(ctx context.Context) ([]float64, error) + func (ds *DocSelect) Float64sX(ctx context.Context) []float64 + func (ds *DocSelect) Int(ctx context.Context) (_ int, err error) + func (ds *DocSelect) IntX(ctx context.Context) int + func (ds *DocSelect) Ints(ctx context.Context) ([]int, error) + func (ds *DocSelect) IntsX(ctx context.Context) []int + func (ds *DocSelect) Scan(ctx context.Context, v interface{}) error + func (ds *DocSelect) ScanX(ctx context.Context, v interface{}) + func (ds *DocSelect) String(ctx context.Context) (_ string, err error) + func (ds *DocSelect) StringX(ctx context.Context) string + func (ds *DocSelect) Strings(ctx context.Context) ([]string, error) + func (ds *DocSelect) StringsX(ctx context.Context) []string + type DocUpdate struct + func (du *DocUpdate) AddChildIDs(ids ...schema.DocID) *DocUpdate + func (du *DocUpdate) AddChildren(d ...*Doc) *DocUpdate + func (du *DocUpdate) ClearChildren() *DocUpdate + func (du *DocUpdate) ClearParent() *DocUpdate + func (du *DocUpdate) ClearText() *DocUpdate + func (du *DocUpdate) Exec(ctx context.Context) error + func (du *DocUpdate) ExecX(ctx context.Context) + func (du *DocUpdate) Mutation() *DocMutation + func (du *DocUpdate) RemoveChildIDs(ids ...schema.DocID) *DocUpdate + func (du *DocUpdate) RemoveChildren(d ...*Doc) *DocUpdate + func (du *DocUpdate) Save(ctx context.Context) (int, error) + func (du *DocUpdate) SaveX(ctx context.Context) int + func (du *DocUpdate) SetNillableParentID(id *schema.DocID) *DocUpdate + func (du *DocUpdate) SetNillableText(s *string) *DocUpdate + func (du *DocUpdate) SetParent(d *Doc) *DocUpdate + func (du *DocUpdate) SetParentID(id schema.DocID) *DocUpdate + func (du *DocUpdate) SetText(s string) *DocUpdate + func (du *DocUpdate) Where(ps ...predicate.Doc) *DocUpdate + type DocUpdateOne struct + func (duo *DocUpdateOne) AddChildIDs(ids ...schema.DocID) *DocUpdateOne + func (duo *DocUpdateOne) AddChildren(d ...*Doc) *DocUpdateOne + func (duo *DocUpdateOne) ClearChildren() *DocUpdateOne + func (duo *DocUpdateOne) ClearParent() *DocUpdateOne + func (duo *DocUpdateOne) ClearText() *DocUpdateOne + func (duo *DocUpdateOne) Exec(ctx context.Context) error + func (duo *DocUpdateOne) ExecX(ctx context.Context) + func (duo *DocUpdateOne) Mutation() *DocMutation + func (duo *DocUpdateOne) RemoveChildIDs(ids ...schema.DocID) *DocUpdateOne + func (duo *DocUpdateOne) RemoveChildren(d ...*Doc) *DocUpdateOne + func (duo *DocUpdateOne) Save(ctx context.Context) (*Doc, error) + func (duo *DocUpdateOne) SaveX(ctx context.Context) *Doc + func (duo *DocUpdateOne) Select(field string, fields ...string) *DocUpdateOne + func (duo *DocUpdateOne) SetNillableParentID(id *schema.DocID) *DocUpdateOne + func (duo *DocUpdateOne) SetNillableText(s *string) *DocUpdateOne + func (duo *DocUpdateOne) SetParent(d *Doc) *DocUpdateOne + func (duo *DocUpdateOne) SetParentID(id schema.DocID) *DocUpdateOne + func (duo *DocUpdateOne) SetText(s string) *DocUpdateOne + type DocUpsert struct + func (u *DocUpsert) ClearText() *DocUpsert + func (u *DocUpsert) SetText(v string) *DocUpsert + func (u *DocUpsert) UpdateText() *DocUpsert + type DocUpsertBulk struct + func (u *DocUpsertBulk) ClearText() *DocUpsertBulk + func (u *DocUpsertBulk) DoNothing() *DocUpsertBulk + func (u *DocUpsertBulk) Exec(ctx context.Context) error + func (u *DocUpsertBulk) ExecX(ctx context.Context) + func (u *DocUpsertBulk) Ignore() *DocUpsertBulk + func (u *DocUpsertBulk) SetText(v string) *DocUpsertBulk + func (u *DocUpsertBulk) Update(set func(*DocUpsert)) *DocUpsertBulk + func (u *DocUpsertBulk) UpdateNewValues() *DocUpsertBulk + func (u *DocUpsertBulk) UpdateText() *DocUpsertBulk + type DocUpsertOne struct + func (u *DocUpsertOne) ClearText() *DocUpsertOne + func (u *DocUpsertOne) DoNothing() *DocUpsertOne + func (u *DocUpsertOne) Exec(ctx context.Context) error + func (u *DocUpsertOne) ExecX(ctx context.Context) + func (u *DocUpsertOne) ID(ctx context.Context) (id schema.DocID, err error) + func (u *DocUpsertOne) IDX(ctx context.Context) schema.DocID + func (u *DocUpsertOne) Ignore() *DocUpsertOne + func (u *DocUpsertOne) SetText(v string) *DocUpsertOne + func (u *DocUpsertOne) Update(set func(*DocUpsert)) *DocUpsertOne + func (u *DocUpsertOne) UpdateNewValues() *DocUpsertOne + func (u *DocUpsertOne) UpdateText() *DocUpsertOne + type Docs []*Doc + type Group struct + Edges GroupEdges + ID int + func (gr *Group) QueryUsers() *UserQuery + func (gr *Group) String() string + func (gr *Group) Unwrap() *Group + func (gr *Group) Update() *GroupUpdateOne + type GroupClient struct + func NewGroupClient(c config) *GroupClient + func (c *GroupClient) Create() *GroupCreate + func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk + func (c *GroupClient) Delete() *GroupDelete + func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne + func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne + func (c *GroupClient) Get(ctx context.Context, id int) (*Group, error) + func (c *GroupClient) GetX(ctx context.Context, id int) *Group + func (c *GroupClient) Hooks() []Hook + func (c *GroupClient) Query() *GroupQuery + func (c *GroupClient) QueryUsers(gr *Group) *UserQuery + func (c *GroupClient) Update() *GroupUpdate + func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne + func (c *GroupClient) UpdateOneID(id int) *GroupUpdateOne + func (c *GroupClient) Use(hooks ...Hook) + type GroupCreate struct + func (gc *GroupCreate) AddUserIDs(ids ...int) *GroupCreate + func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate + func (gc *GroupCreate) Exec(ctx context.Context) error + func (gc *GroupCreate) ExecX(ctx context.Context) + func (gc *GroupCreate) Mutation() *GroupMutation + func (gc *GroupCreate) OnConflict(opts ...sql.ConflictOption) *GroupUpsertOne + func (gc *GroupCreate) OnConflictColumns(columns ...string) *GroupUpsertOne + func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) + func (gc *GroupCreate) SaveX(ctx context.Context) *Group + func (gc *GroupCreate) SetID(i int) *GroupCreate + type GroupCreateBulk struct + func (gcb *GroupCreateBulk) Exec(ctx context.Context) error + func (gcb *GroupCreateBulk) ExecX(ctx context.Context) + func (gcb *GroupCreateBulk) OnConflict(opts ...sql.ConflictOption) *GroupUpsertBulk + func (gcb *GroupCreateBulk) OnConflictColumns(columns ...string) *GroupUpsertBulk + func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) + func (gcb *GroupCreateBulk) SaveX(ctx context.Context) []*Group + type GroupDelete struct + func (gd *GroupDelete) Exec(ctx context.Context) (int, error) + func (gd *GroupDelete) ExecX(ctx context.Context) int + func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete + type GroupDeleteOne struct + func (gdo *GroupDeleteOne) Exec(ctx context.Context) error + func (gdo *GroupDeleteOne) ExecX(ctx context.Context) + type GroupEdges struct + Users []*User + func (e GroupEdges) UsersOrErr() ([]*User, error) + type GroupFilter struct + func (f *GroupFilter) Where(p entql.P) + func (f *GroupFilter) WhereHasUsers() + func (f *GroupFilter) WhereHasUsersWith(preds ...predicate.User) + func (f *GroupFilter) WhereID(p entql.IntP) + type GroupGroupBy struct + func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy + func (ggb *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ggb *GroupGroupBy) BoolX(ctx context.Context) bool + func (ggb *GroupGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ggb *GroupGroupBy) BoolsX(ctx context.Context) []bool + func (ggb *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ggb *GroupGroupBy) Float64X(ctx context.Context) float64 + func (ggb *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ggb *GroupGroupBy) Float64sX(ctx context.Context) []float64 + func (ggb *GroupGroupBy) Int(ctx context.Context) (_ int, err error) + func (ggb *GroupGroupBy) IntX(ctx context.Context) int + func (ggb *GroupGroupBy) Ints(ctx context.Context) ([]int, error) + func (ggb *GroupGroupBy) IntsX(ctx context.Context) []int + func (ggb *GroupGroupBy) Scan(ctx context.Context, v interface{}) error + func (ggb *GroupGroupBy) ScanX(ctx context.Context, v interface{}) + func (ggb *GroupGroupBy) String(ctx context.Context) (_ string, err error) + func (ggb *GroupGroupBy) StringX(ctx context.Context) string + func (ggb *GroupGroupBy) Strings(ctx context.Context) ([]string, error) + func (ggb *GroupGroupBy) StringsX(ctx context.Context) []string + type GroupMutation struct + func (m *GroupMutation) AddField(name string, value ent.Value) error + func (m *GroupMutation) AddUserIDs(ids ...int) + func (m *GroupMutation) AddedEdges() []string + func (m *GroupMutation) AddedField(name string) (ent.Value, bool) + func (m *GroupMutation) AddedFields() []string + func (m *GroupMutation) AddedIDs(name string) []ent.Value + func (m *GroupMutation) ClearEdge(name string) error + func (m *GroupMutation) ClearField(name string) error + func (m *GroupMutation) ClearUsers() + func (m *GroupMutation) ClearedEdges() []string + func (m *GroupMutation) ClearedFields() []string + func (m *GroupMutation) EdgeCleared(name string) bool + func (m *GroupMutation) Field(name string) (ent.Value, bool) + func (m *GroupMutation) FieldCleared(name string) bool + func (m *GroupMutation) Fields() []string + func (m *GroupMutation) Filter() *GroupFilter + func (m *GroupMutation) ID() (id int, exists bool) + func (m *GroupMutation) IDs(ctx context.Context) ([]int, error) + func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *GroupMutation) Op() Op + func (m *GroupMutation) RemoveUserIDs(ids ...int) + func (m *GroupMutation) RemovedEdges() []string + func (m *GroupMutation) RemovedIDs(name string) []ent.Value + func (m *GroupMutation) RemovedUsersIDs() (ids []int) + func (m *GroupMutation) ResetEdge(name string) error + func (m *GroupMutation) ResetField(name string) error + func (m *GroupMutation) ResetUsers() + func (m *GroupMutation) SetField(name string, value ent.Value) error + func (m *GroupMutation) SetID(id int) + func (m *GroupMutation) Type() string + func (m *GroupMutation) UsersCleared() bool + func (m *GroupMutation) UsersIDs() (ids []int) + func (m *GroupMutation) Where(ps ...predicate.Group) + func (m GroupMutation) Client() *Client + func (m GroupMutation) Tx() (*Tx, error) + type GroupQuery struct + func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error) + func (gq *GroupQuery) AllX(ctx context.Context) []*Group + func (gq *GroupQuery) Clone() *GroupQuery + func (gq *GroupQuery) Count(ctx context.Context) (int, error) + func (gq *GroupQuery) CountX(ctx context.Context) int + func (gq *GroupQuery) Exist(ctx context.Context) (bool, error) + func (gq *GroupQuery) ExistX(ctx context.Context) bool + func (gq *GroupQuery) Filter() *GroupFilter + func (gq *GroupQuery) First(ctx context.Context) (*Group, error) + func (gq *GroupQuery) FirstID(ctx context.Context) (id int, err error) + func (gq *GroupQuery) FirstIDX(ctx context.Context) int + func (gq *GroupQuery) FirstX(ctx context.Context) *Group + func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy + func (gq *GroupQuery) IDs(ctx context.Context) ([]int, error) + func (gq *GroupQuery) IDsX(ctx context.Context) []int + func (gq *GroupQuery) Limit(limit int) *GroupQuery + func (gq *GroupQuery) Offset(offset int) *GroupQuery + func (gq *GroupQuery) Only(ctx context.Context) (*Group, error) + func (gq *GroupQuery) OnlyID(ctx context.Context) (id int, err error) + func (gq *GroupQuery) OnlyIDX(ctx context.Context) int + func (gq *GroupQuery) OnlyX(ctx context.Context) *Group + func (gq *GroupQuery) Order(o ...OrderFunc) *GroupQuery + func (gq *GroupQuery) QueryUsers() *UserQuery + func (gq *GroupQuery) Select(fields ...string) *GroupSelect + func (gq *GroupQuery) Unique(unique bool) *GroupQuery + func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery + func (gq *GroupQuery) WithUsers(opts ...func(*UserQuery)) *GroupQuery + type GroupSelect struct + func (gs *GroupSelect) Bool(ctx context.Context) (_ bool, err error) + func (gs *GroupSelect) BoolX(ctx context.Context) bool + func (gs *GroupSelect) Bools(ctx context.Context) ([]bool, error) + func (gs *GroupSelect) BoolsX(ctx context.Context) []bool + func (gs *GroupSelect) Float64(ctx context.Context) (_ float64, err error) + func (gs *GroupSelect) Float64X(ctx context.Context) float64 + func (gs *GroupSelect) Float64s(ctx context.Context) ([]float64, error) + func (gs *GroupSelect) Float64sX(ctx context.Context) []float64 + func (gs *GroupSelect) Int(ctx context.Context) (_ int, err error) + func (gs *GroupSelect) IntX(ctx context.Context) int + func (gs *GroupSelect) Ints(ctx context.Context) ([]int, error) + func (gs *GroupSelect) IntsX(ctx context.Context) []int + func (gs *GroupSelect) Scan(ctx context.Context, v interface{}) error + func (gs *GroupSelect) ScanX(ctx context.Context, v interface{}) + func (gs *GroupSelect) String(ctx context.Context) (_ string, err error) + func (gs *GroupSelect) StringX(ctx context.Context) string + func (gs *GroupSelect) Strings(ctx context.Context) ([]string, error) + func (gs *GroupSelect) StringsX(ctx context.Context) []string + type GroupUpdate struct + func (gu *GroupUpdate) AddUserIDs(ids ...int) *GroupUpdate + func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate + func (gu *GroupUpdate) ClearUsers() *GroupUpdate + func (gu *GroupUpdate) Exec(ctx context.Context) error + func (gu *GroupUpdate) ExecX(ctx context.Context) + func (gu *GroupUpdate) Mutation() *GroupMutation + func (gu *GroupUpdate) RemoveUserIDs(ids ...int) *GroupUpdate + func (gu *GroupUpdate) RemoveUsers(u ...*User) *GroupUpdate + func (gu *GroupUpdate) Save(ctx context.Context) (int, error) + func (gu *GroupUpdate) SaveX(ctx context.Context) int + func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate + type GroupUpdateOne struct + func (guo *GroupUpdateOne) AddUserIDs(ids ...int) *GroupUpdateOne + func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne + func (guo *GroupUpdateOne) ClearUsers() *GroupUpdateOne + func (guo *GroupUpdateOne) Exec(ctx context.Context) error + func (guo *GroupUpdateOne) ExecX(ctx context.Context) + func (guo *GroupUpdateOne) Mutation() *GroupMutation + func (guo *GroupUpdateOne) RemoveUserIDs(ids ...int) *GroupUpdateOne + func (guo *GroupUpdateOne) RemoveUsers(u ...*User) *GroupUpdateOne + func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error) + func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group + func (guo *GroupUpdateOne) Select(field string, fields ...string) *GroupUpdateOne + type GroupUpsert struct + type GroupUpsertBulk struct + func (u *GroupUpsertBulk) DoNothing() *GroupUpsertBulk + func (u *GroupUpsertBulk) Exec(ctx context.Context) error + func (u *GroupUpsertBulk) ExecX(ctx context.Context) + func (u *GroupUpsertBulk) Ignore() *GroupUpsertBulk + func (u *GroupUpsertBulk) Update(set func(*GroupUpsert)) *GroupUpsertBulk + func (u *GroupUpsertBulk) UpdateNewValues() *GroupUpsertBulk + type GroupUpsertOne struct + func (u *GroupUpsertOne) DoNothing() *GroupUpsertOne + func (u *GroupUpsertOne) Exec(ctx context.Context) error + func (u *GroupUpsertOne) ExecX(ctx context.Context) + func (u *GroupUpsertOne) ID(ctx context.Context) (id int, err error) + func (u *GroupUpsertOne) IDX(ctx context.Context) int + func (u *GroupUpsertOne) Ignore() *GroupUpsertOne + func (u *GroupUpsertOne) Update(set func(*GroupUpsert)) *GroupUpsertOne + func (u *GroupUpsertOne) UpdateNewValues() *GroupUpsertOne + type Groups []*Group + type Hook = ent.Hook + type MixinID struct + ID uuid.UUID + MixinField string + SomeField string + func (mi *MixinID) String() string + func (mi *MixinID) Unwrap() *MixinID + func (mi *MixinID) Update() *MixinIDUpdateOne + type MixinIDClient struct + func NewMixinIDClient(c config) *MixinIDClient + func (c *MixinIDClient) Create() *MixinIDCreate + func (c *MixinIDClient) CreateBulk(builders ...*MixinIDCreate) *MixinIDCreateBulk + func (c *MixinIDClient) Delete() *MixinIDDelete + func (c *MixinIDClient) DeleteOne(mi *MixinID) *MixinIDDeleteOne + func (c *MixinIDClient) DeleteOneID(id uuid.UUID) *MixinIDDeleteOne + func (c *MixinIDClient) Get(ctx context.Context, id uuid.UUID) (*MixinID, error) + func (c *MixinIDClient) GetX(ctx context.Context, id uuid.UUID) *MixinID + func (c *MixinIDClient) Hooks() []Hook + func (c *MixinIDClient) Query() *MixinIDQuery + func (c *MixinIDClient) Update() *MixinIDUpdate + func (c *MixinIDClient) UpdateOne(mi *MixinID) *MixinIDUpdateOne + func (c *MixinIDClient) UpdateOneID(id uuid.UUID) *MixinIDUpdateOne + func (c *MixinIDClient) Use(hooks ...Hook) + type MixinIDCreate struct + func (mic *MixinIDCreate) Exec(ctx context.Context) error + func (mic *MixinIDCreate) ExecX(ctx context.Context) + func (mic *MixinIDCreate) Mutation() *MixinIDMutation + func (mic *MixinIDCreate) OnConflict(opts ...sql.ConflictOption) *MixinIDUpsertOne + func (mic *MixinIDCreate) OnConflictColumns(columns ...string) *MixinIDUpsertOne + func (mic *MixinIDCreate) Save(ctx context.Context) (*MixinID, error) + func (mic *MixinIDCreate) SaveX(ctx context.Context) *MixinID + func (mic *MixinIDCreate) SetID(u uuid.UUID) *MixinIDCreate + func (mic *MixinIDCreate) SetMixinField(s string) *MixinIDCreate + func (mic *MixinIDCreate) SetNillableID(u *uuid.UUID) *MixinIDCreate + func (mic *MixinIDCreate) SetSomeField(s string) *MixinIDCreate + type MixinIDCreateBulk struct + func (micb *MixinIDCreateBulk) Exec(ctx context.Context) error + func (micb *MixinIDCreateBulk) ExecX(ctx context.Context) + func (micb *MixinIDCreateBulk) OnConflict(opts ...sql.ConflictOption) *MixinIDUpsertBulk + func (micb *MixinIDCreateBulk) OnConflictColumns(columns ...string) *MixinIDUpsertBulk + func (micb *MixinIDCreateBulk) Save(ctx context.Context) ([]*MixinID, error) + func (micb *MixinIDCreateBulk) SaveX(ctx context.Context) []*MixinID + type MixinIDDelete struct + func (mid *MixinIDDelete) Exec(ctx context.Context) (int, error) + func (mid *MixinIDDelete) ExecX(ctx context.Context) int + func (mid *MixinIDDelete) Where(ps ...predicate.MixinID) *MixinIDDelete + type MixinIDDeleteOne struct + func (mido *MixinIDDeleteOne) Exec(ctx context.Context) error + func (mido *MixinIDDeleteOne) ExecX(ctx context.Context) + type MixinIDFilter struct + func (f *MixinIDFilter) Where(p entql.P) + func (f *MixinIDFilter) WhereID(p entql.ValueP) + func (f *MixinIDFilter) WhereMixinField(p entql.StringP) + func (f *MixinIDFilter) WhereSomeField(p entql.StringP) + type MixinIDGroupBy struct + func (migb *MixinIDGroupBy) Aggregate(fns ...AggregateFunc) *MixinIDGroupBy + func (migb *MixinIDGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (migb *MixinIDGroupBy) BoolX(ctx context.Context) bool + func (migb *MixinIDGroupBy) Bools(ctx context.Context) ([]bool, error) + func (migb *MixinIDGroupBy) BoolsX(ctx context.Context) []bool + func (migb *MixinIDGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (migb *MixinIDGroupBy) Float64X(ctx context.Context) float64 + func (migb *MixinIDGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (migb *MixinIDGroupBy) Float64sX(ctx context.Context) []float64 + func (migb *MixinIDGroupBy) Int(ctx context.Context) (_ int, err error) + func (migb *MixinIDGroupBy) IntX(ctx context.Context) int + func (migb *MixinIDGroupBy) Ints(ctx context.Context) ([]int, error) + func (migb *MixinIDGroupBy) IntsX(ctx context.Context) []int + func (migb *MixinIDGroupBy) Scan(ctx context.Context, v interface{}) error + func (migb *MixinIDGroupBy) ScanX(ctx context.Context, v interface{}) + func (migb *MixinIDGroupBy) String(ctx context.Context) (_ string, err error) + func (migb *MixinIDGroupBy) StringX(ctx context.Context) string + func (migb *MixinIDGroupBy) Strings(ctx context.Context) ([]string, error) + func (migb *MixinIDGroupBy) StringsX(ctx context.Context) []string + type MixinIDMutation struct + func (m *MixinIDMutation) AddField(name string, value ent.Value) error + func (m *MixinIDMutation) AddedEdges() []string + func (m *MixinIDMutation) AddedField(name string) (ent.Value, bool) + func (m *MixinIDMutation) AddedFields() []string + func (m *MixinIDMutation) AddedIDs(name string) []ent.Value + func (m *MixinIDMutation) ClearEdge(name string) error + func (m *MixinIDMutation) ClearField(name string) error + func (m *MixinIDMutation) ClearedEdges() []string + func (m *MixinIDMutation) ClearedFields() []string + func (m *MixinIDMutation) EdgeCleared(name string) bool + func (m *MixinIDMutation) Field(name string) (ent.Value, bool) + func (m *MixinIDMutation) FieldCleared(name string) bool + func (m *MixinIDMutation) Fields() []string + func (m *MixinIDMutation) Filter() *MixinIDFilter + func (m *MixinIDMutation) ID() (id uuid.UUID, exists bool) + func (m *MixinIDMutation) IDs(ctx context.Context) ([]uuid.UUID, error) + func (m *MixinIDMutation) MixinField() (r string, exists bool) + func (m *MixinIDMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *MixinIDMutation) OldMixinField(ctx context.Context) (v string, err error) + func (m *MixinIDMutation) OldSomeField(ctx context.Context) (v string, err error) + func (m *MixinIDMutation) Op() Op + func (m *MixinIDMutation) RemovedEdges() []string + func (m *MixinIDMutation) RemovedIDs(name string) []ent.Value + func (m *MixinIDMutation) ResetEdge(name string) error + func (m *MixinIDMutation) ResetField(name string) error + func (m *MixinIDMutation) ResetMixinField() + func (m *MixinIDMutation) ResetSomeField() + func (m *MixinIDMutation) SetField(name string, value ent.Value) error + func (m *MixinIDMutation) SetID(id uuid.UUID) + func (m *MixinIDMutation) SetMixinField(s string) + func (m *MixinIDMutation) SetSomeField(s string) + func (m *MixinIDMutation) SomeField() (r string, exists bool) + func (m *MixinIDMutation) Type() string + func (m *MixinIDMutation) Where(ps ...predicate.MixinID) + func (m MixinIDMutation) Client() *Client + func (m MixinIDMutation) Tx() (*Tx, error) + type MixinIDQuery struct + func (miq *MixinIDQuery) All(ctx context.Context) ([]*MixinID, error) + func (miq *MixinIDQuery) AllX(ctx context.Context) []*MixinID + func (miq *MixinIDQuery) Clone() *MixinIDQuery + func (miq *MixinIDQuery) Count(ctx context.Context) (int, error) + func (miq *MixinIDQuery) CountX(ctx context.Context) int + func (miq *MixinIDQuery) Exist(ctx context.Context) (bool, error) + func (miq *MixinIDQuery) ExistX(ctx context.Context) bool + func (miq *MixinIDQuery) Filter() *MixinIDFilter + func (miq *MixinIDQuery) First(ctx context.Context) (*MixinID, error) + func (miq *MixinIDQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (miq *MixinIDQuery) FirstIDX(ctx context.Context) uuid.UUID + func (miq *MixinIDQuery) FirstX(ctx context.Context) *MixinID + func (miq *MixinIDQuery) GroupBy(field string, fields ...string) *MixinIDGroupBy + func (miq *MixinIDQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (miq *MixinIDQuery) IDsX(ctx context.Context) []uuid.UUID + func (miq *MixinIDQuery) Limit(limit int) *MixinIDQuery + func (miq *MixinIDQuery) Offset(offset int) *MixinIDQuery + func (miq *MixinIDQuery) Only(ctx context.Context) (*MixinID, error) + func (miq *MixinIDQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (miq *MixinIDQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (miq *MixinIDQuery) OnlyX(ctx context.Context) *MixinID + func (miq *MixinIDQuery) Order(o ...OrderFunc) *MixinIDQuery + func (miq *MixinIDQuery) Select(fields ...string) *MixinIDSelect + func (miq *MixinIDQuery) Unique(unique bool) *MixinIDQuery + func (miq *MixinIDQuery) Where(ps ...predicate.MixinID) *MixinIDQuery + type MixinIDSelect struct + func (mis *MixinIDSelect) Bool(ctx context.Context) (_ bool, err error) + func (mis *MixinIDSelect) BoolX(ctx context.Context) bool + func (mis *MixinIDSelect) Bools(ctx context.Context) ([]bool, error) + func (mis *MixinIDSelect) BoolsX(ctx context.Context) []bool + func (mis *MixinIDSelect) Float64(ctx context.Context) (_ float64, err error) + func (mis *MixinIDSelect) Float64X(ctx context.Context) float64 + func (mis *MixinIDSelect) Float64s(ctx context.Context) ([]float64, error) + func (mis *MixinIDSelect) Float64sX(ctx context.Context) []float64 + func (mis *MixinIDSelect) Int(ctx context.Context) (_ int, err error) + func (mis *MixinIDSelect) IntX(ctx context.Context) int + func (mis *MixinIDSelect) Ints(ctx context.Context) ([]int, error) + func (mis *MixinIDSelect) IntsX(ctx context.Context) []int + func (mis *MixinIDSelect) Scan(ctx context.Context, v interface{}) error + func (mis *MixinIDSelect) ScanX(ctx context.Context, v interface{}) + func (mis *MixinIDSelect) String(ctx context.Context) (_ string, err error) + func (mis *MixinIDSelect) StringX(ctx context.Context) string + func (mis *MixinIDSelect) Strings(ctx context.Context) ([]string, error) + func (mis *MixinIDSelect) StringsX(ctx context.Context) []string + type MixinIDUpdate struct + func (miu *MixinIDUpdate) Exec(ctx context.Context) error + func (miu *MixinIDUpdate) ExecX(ctx context.Context) + func (miu *MixinIDUpdate) Mutation() *MixinIDMutation + func (miu *MixinIDUpdate) Save(ctx context.Context) (int, error) + func (miu *MixinIDUpdate) SaveX(ctx context.Context) int + func (miu *MixinIDUpdate) SetMixinField(s string) *MixinIDUpdate + func (miu *MixinIDUpdate) SetSomeField(s string) *MixinIDUpdate + func (miu *MixinIDUpdate) Where(ps ...predicate.MixinID) *MixinIDUpdate + type MixinIDUpdateOne struct + func (miuo *MixinIDUpdateOne) Exec(ctx context.Context) error + func (miuo *MixinIDUpdateOne) ExecX(ctx context.Context) + func (miuo *MixinIDUpdateOne) Mutation() *MixinIDMutation + func (miuo *MixinIDUpdateOne) Save(ctx context.Context) (*MixinID, error) + func (miuo *MixinIDUpdateOne) SaveX(ctx context.Context) *MixinID + func (miuo *MixinIDUpdateOne) Select(field string, fields ...string) *MixinIDUpdateOne + func (miuo *MixinIDUpdateOne) SetMixinField(s string) *MixinIDUpdateOne + func (miuo *MixinIDUpdateOne) SetSomeField(s string) *MixinIDUpdateOne + type MixinIDUpsert struct + func (u *MixinIDUpsert) SetMixinField(v string) *MixinIDUpsert + func (u *MixinIDUpsert) SetSomeField(v string) *MixinIDUpsert + func (u *MixinIDUpsert) UpdateMixinField() *MixinIDUpsert + func (u *MixinIDUpsert) UpdateSomeField() *MixinIDUpsert + type MixinIDUpsertBulk struct + func (u *MixinIDUpsertBulk) DoNothing() *MixinIDUpsertBulk + func (u *MixinIDUpsertBulk) Exec(ctx context.Context) error + func (u *MixinIDUpsertBulk) ExecX(ctx context.Context) + func (u *MixinIDUpsertBulk) Ignore() *MixinIDUpsertBulk + func (u *MixinIDUpsertBulk) SetMixinField(v string) *MixinIDUpsertBulk + func (u *MixinIDUpsertBulk) SetSomeField(v string) *MixinIDUpsertBulk + func (u *MixinIDUpsertBulk) Update(set func(*MixinIDUpsert)) *MixinIDUpsertBulk + func (u *MixinIDUpsertBulk) UpdateMixinField() *MixinIDUpsertBulk + func (u *MixinIDUpsertBulk) UpdateNewValues() *MixinIDUpsertBulk + func (u *MixinIDUpsertBulk) UpdateSomeField() *MixinIDUpsertBulk + type MixinIDUpsertOne struct + func (u *MixinIDUpsertOne) DoNothing() *MixinIDUpsertOne + func (u *MixinIDUpsertOne) Exec(ctx context.Context) error + func (u *MixinIDUpsertOne) ExecX(ctx context.Context) + func (u *MixinIDUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error) + func (u *MixinIDUpsertOne) IDX(ctx context.Context) uuid.UUID + func (u *MixinIDUpsertOne) Ignore() *MixinIDUpsertOne + func (u *MixinIDUpsertOne) SetMixinField(v string) *MixinIDUpsertOne + func (u *MixinIDUpsertOne) SetSomeField(v string) *MixinIDUpsertOne + func (u *MixinIDUpsertOne) Update(set func(*MixinIDUpsert)) *MixinIDUpsertOne + func (u *MixinIDUpsertOne) UpdateMixinField() *MixinIDUpsertOne + func (u *MixinIDUpsertOne) UpdateNewValues() *MixinIDUpsertOne + func (u *MixinIDUpsertOne) UpdateSomeField() *MixinIDUpsertOne + type MixinIDs []*MixinID + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Note struct + Edges NoteEdges + ID schema.NoteID + Text string + func (n *Note) QueryChildren() *NoteQuery + func (n *Note) QueryParent() *NoteQuery + func (n *Note) String() string + func (n *Note) Unwrap() *Note + func (n *Note) Update() *NoteUpdateOne + type NoteClient struct + func NewNoteClient(c config) *NoteClient + func (c *NoteClient) Create() *NoteCreate + func (c *NoteClient) CreateBulk(builders ...*NoteCreate) *NoteCreateBulk + func (c *NoteClient) Delete() *NoteDelete + func (c *NoteClient) DeleteOne(n *Note) *NoteDeleteOne + func (c *NoteClient) DeleteOneID(id schema.NoteID) *NoteDeleteOne + func (c *NoteClient) Get(ctx context.Context, id schema.NoteID) (*Note, error) + func (c *NoteClient) GetX(ctx context.Context, id schema.NoteID) *Note + func (c *NoteClient) Hooks() []Hook + func (c *NoteClient) Query() *NoteQuery + func (c *NoteClient) QueryChildren(n *Note) *NoteQuery + func (c *NoteClient) QueryParent(n *Note) *NoteQuery + func (c *NoteClient) Update() *NoteUpdate + func (c *NoteClient) UpdateOne(n *Note) *NoteUpdateOne + func (c *NoteClient) UpdateOneID(id schema.NoteID) *NoteUpdateOne + func (c *NoteClient) Use(hooks ...Hook) + type NoteCreate struct + func (nc *NoteCreate) AddChildIDs(ids ...schema.NoteID) *NoteCreate + func (nc *NoteCreate) AddChildren(n ...*Note) *NoteCreate + func (nc *NoteCreate) Exec(ctx context.Context) error + func (nc *NoteCreate) ExecX(ctx context.Context) + func (nc *NoteCreate) Mutation() *NoteMutation + func (nc *NoteCreate) OnConflict(opts ...sql.ConflictOption) *NoteUpsertOne + func (nc *NoteCreate) OnConflictColumns(columns ...string) *NoteUpsertOne + func (nc *NoteCreate) Save(ctx context.Context) (*Note, error) + func (nc *NoteCreate) SaveX(ctx context.Context) *Note + func (nc *NoteCreate) SetID(si schema.NoteID) *NoteCreate + func (nc *NoteCreate) SetNillableID(si *schema.NoteID) *NoteCreate + func (nc *NoteCreate) SetNillableParentID(id *schema.NoteID) *NoteCreate + func (nc *NoteCreate) SetNillableText(s *string) *NoteCreate + func (nc *NoteCreate) SetParent(n *Note) *NoteCreate + func (nc *NoteCreate) SetParentID(id schema.NoteID) *NoteCreate + func (nc *NoteCreate) SetText(s string) *NoteCreate + type NoteCreateBulk struct + func (ncb *NoteCreateBulk) Exec(ctx context.Context) error + func (ncb *NoteCreateBulk) ExecX(ctx context.Context) + func (ncb *NoteCreateBulk) OnConflict(opts ...sql.ConflictOption) *NoteUpsertBulk + func (ncb *NoteCreateBulk) OnConflictColumns(columns ...string) *NoteUpsertBulk + func (ncb *NoteCreateBulk) Save(ctx context.Context) ([]*Note, error) + func (ncb *NoteCreateBulk) SaveX(ctx context.Context) []*Note + type NoteDelete struct + func (nd *NoteDelete) Exec(ctx context.Context) (int, error) + func (nd *NoteDelete) ExecX(ctx context.Context) int + func (nd *NoteDelete) Where(ps ...predicate.Note) *NoteDelete + type NoteDeleteOne struct + func (ndo *NoteDeleteOne) Exec(ctx context.Context) error + func (ndo *NoteDeleteOne) ExecX(ctx context.Context) + type NoteEdges struct + Children []*Note + Parent *Note + func (e NoteEdges) ChildrenOrErr() ([]*Note, error) + func (e NoteEdges) ParentOrErr() (*Note, error) + type NoteFilter struct + func (f *NoteFilter) Where(p entql.P) + func (f *NoteFilter) WhereHasChildren() + func (f *NoteFilter) WhereHasChildrenWith(preds ...predicate.Note) + func (f *NoteFilter) WhereHasParent() + func (f *NoteFilter) WhereHasParentWith(preds ...predicate.Note) + func (f *NoteFilter) WhereID(p entql.StringP) + func (f *NoteFilter) WhereText(p entql.StringP) + type NoteGroupBy struct + func (ngb *NoteGroupBy) Aggregate(fns ...AggregateFunc) *NoteGroupBy + func (ngb *NoteGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ngb *NoteGroupBy) BoolX(ctx context.Context) bool + func (ngb *NoteGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ngb *NoteGroupBy) BoolsX(ctx context.Context) []bool + func (ngb *NoteGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ngb *NoteGroupBy) Float64X(ctx context.Context) float64 + func (ngb *NoteGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ngb *NoteGroupBy) Float64sX(ctx context.Context) []float64 + func (ngb *NoteGroupBy) Int(ctx context.Context) (_ int, err error) + func (ngb *NoteGroupBy) IntX(ctx context.Context) int + func (ngb *NoteGroupBy) Ints(ctx context.Context) ([]int, error) + func (ngb *NoteGroupBy) IntsX(ctx context.Context) []int + func (ngb *NoteGroupBy) Scan(ctx context.Context, v interface{}) error + func (ngb *NoteGroupBy) ScanX(ctx context.Context, v interface{}) + func (ngb *NoteGroupBy) String(ctx context.Context) (_ string, err error) + func (ngb *NoteGroupBy) StringX(ctx context.Context) string + func (ngb *NoteGroupBy) Strings(ctx context.Context) ([]string, error) + func (ngb *NoteGroupBy) StringsX(ctx context.Context) []string + type NoteMutation struct + func (m *NoteMutation) AddChildIDs(ids ...schema.NoteID) + func (m *NoteMutation) AddField(name string, value ent.Value) error + func (m *NoteMutation) AddedEdges() []string + func (m *NoteMutation) AddedField(name string) (ent.Value, bool) + func (m *NoteMutation) AddedFields() []string + func (m *NoteMutation) AddedIDs(name string) []ent.Value + func (m *NoteMutation) ChildrenCleared() bool + func (m *NoteMutation) ChildrenIDs() (ids []schema.NoteID) + func (m *NoteMutation) ClearChildren() + func (m *NoteMutation) ClearEdge(name string) error + func (m *NoteMutation) ClearField(name string) error + func (m *NoteMutation) ClearParent() + func (m *NoteMutation) ClearText() + func (m *NoteMutation) ClearedEdges() []string + func (m *NoteMutation) ClearedFields() []string + func (m *NoteMutation) EdgeCleared(name string) bool + func (m *NoteMutation) Field(name string) (ent.Value, bool) + func (m *NoteMutation) FieldCleared(name string) bool + func (m *NoteMutation) Fields() []string + func (m *NoteMutation) Filter() *NoteFilter + func (m *NoteMutation) ID() (id schema.NoteID, exists bool) + func (m *NoteMutation) IDs(ctx context.Context) ([]schema.NoteID, error) + func (m *NoteMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *NoteMutation) OldText(ctx context.Context) (v string, err error) + func (m *NoteMutation) Op() Op + func (m *NoteMutation) ParentCleared() bool + func (m *NoteMutation) ParentID() (id schema.NoteID, exists bool) + func (m *NoteMutation) ParentIDs() (ids []schema.NoteID) + func (m *NoteMutation) RemoveChildIDs(ids ...schema.NoteID) + func (m *NoteMutation) RemovedChildrenIDs() (ids []schema.NoteID) + func (m *NoteMutation) RemovedEdges() []string + func (m *NoteMutation) RemovedIDs(name string) []ent.Value + func (m *NoteMutation) ResetChildren() + func (m *NoteMutation) ResetEdge(name string) error + func (m *NoteMutation) ResetField(name string) error + func (m *NoteMutation) ResetParent() + func (m *NoteMutation) ResetText() + func (m *NoteMutation) SetField(name string, value ent.Value) error + func (m *NoteMutation) SetID(id schema.NoteID) + func (m *NoteMutation) SetParentID(id schema.NoteID) + func (m *NoteMutation) SetText(s string) + func (m *NoteMutation) Text() (r string, exists bool) + func (m *NoteMutation) TextCleared() bool + func (m *NoteMutation) Type() string + func (m *NoteMutation) Where(ps ...predicate.Note) + func (m NoteMutation) Client() *Client + func (m NoteMutation) Tx() (*Tx, error) + type NoteQuery struct + func (nq *NoteQuery) All(ctx context.Context) ([]*Note, error) + func (nq *NoteQuery) AllX(ctx context.Context) []*Note + func (nq *NoteQuery) Clone() *NoteQuery + func (nq *NoteQuery) Count(ctx context.Context) (int, error) + func (nq *NoteQuery) CountX(ctx context.Context) int + func (nq *NoteQuery) Exist(ctx context.Context) (bool, error) + func (nq *NoteQuery) ExistX(ctx context.Context) bool + func (nq *NoteQuery) Filter() *NoteFilter + func (nq *NoteQuery) First(ctx context.Context) (*Note, error) + func (nq *NoteQuery) FirstID(ctx context.Context) (id schema.NoteID, err error) + func (nq *NoteQuery) FirstIDX(ctx context.Context) schema.NoteID + func (nq *NoteQuery) FirstX(ctx context.Context) *Note + func (nq *NoteQuery) GroupBy(field string, fields ...string) *NoteGroupBy + func (nq *NoteQuery) IDs(ctx context.Context) ([]schema.NoteID, error) + func (nq *NoteQuery) IDsX(ctx context.Context) []schema.NoteID + func (nq *NoteQuery) Limit(limit int) *NoteQuery + func (nq *NoteQuery) Offset(offset int) *NoteQuery + func (nq *NoteQuery) Only(ctx context.Context) (*Note, error) + func (nq *NoteQuery) OnlyID(ctx context.Context) (id schema.NoteID, err error) + func (nq *NoteQuery) OnlyIDX(ctx context.Context) schema.NoteID + func (nq *NoteQuery) OnlyX(ctx context.Context) *Note + func (nq *NoteQuery) Order(o ...OrderFunc) *NoteQuery + func (nq *NoteQuery) QueryChildren() *NoteQuery + func (nq *NoteQuery) QueryParent() *NoteQuery + func (nq *NoteQuery) Select(fields ...string) *NoteSelect + func (nq *NoteQuery) Unique(unique bool) *NoteQuery + func (nq *NoteQuery) Where(ps ...predicate.Note) *NoteQuery + func (nq *NoteQuery) WithChildren(opts ...func(*NoteQuery)) *NoteQuery + func (nq *NoteQuery) WithParent(opts ...func(*NoteQuery)) *NoteQuery + type NoteSelect struct + func (ns *NoteSelect) Bool(ctx context.Context) (_ bool, err error) + func (ns *NoteSelect) BoolX(ctx context.Context) bool + func (ns *NoteSelect) Bools(ctx context.Context) ([]bool, error) + func (ns *NoteSelect) BoolsX(ctx context.Context) []bool + func (ns *NoteSelect) Float64(ctx context.Context) (_ float64, err error) + func (ns *NoteSelect) Float64X(ctx context.Context) float64 + func (ns *NoteSelect) Float64s(ctx context.Context) ([]float64, error) + func (ns *NoteSelect) Float64sX(ctx context.Context) []float64 + func (ns *NoteSelect) Int(ctx context.Context) (_ int, err error) + func (ns *NoteSelect) IntX(ctx context.Context) int + func (ns *NoteSelect) Ints(ctx context.Context) ([]int, error) + func (ns *NoteSelect) IntsX(ctx context.Context) []int + func (ns *NoteSelect) Scan(ctx context.Context, v interface{}) error + func (ns *NoteSelect) ScanX(ctx context.Context, v interface{}) + func (ns *NoteSelect) String(ctx context.Context) (_ string, err error) + func (ns *NoteSelect) StringX(ctx context.Context) string + func (ns *NoteSelect) Strings(ctx context.Context) ([]string, error) + func (ns *NoteSelect) StringsX(ctx context.Context) []string + type NoteUpdate struct + func (nu *NoteUpdate) AddChildIDs(ids ...schema.NoteID) *NoteUpdate + func (nu *NoteUpdate) AddChildren(n ...*Note) *NoteUpdate + func (nu *NoteUpdate) ClearChildren() *NoteUpdate + func (nu *NoteUpdate) ClearParent() *NoteUpdate + func (nu *NoteUpdate) ClearText() *NoteUpdate + func (nu *NoteUpdate) Exec(ctx context.Context) error + func (nu *NoteUpdate) ExecX(ctx context.Context) + func (nu *NoteUpdate) Mutation() *NoteMutation + func (nu *NoteUpdate) RemoveChildIDs(ids ...schema.NoteID) *NoteUpdate + func (nu *NoteUpdate) RemoveChildren(n ...*Note) *NoteUpdate + func (nu *NoteUpdate) Save(ctx context.Context) (int, error) + func (nu *NoteUpdate) SaveX(ctx context.Context) int + func (nu *NoteUpdate) SetNillableParentID(id *schema.NoteID) *NoteUpdate + func (nu *NoteUpdate) SetNillableText(s *string) *NoteUpdate + func (nu *NoteUpdate) SetParent(n *Note) *NoteUpdate + func (nu *NoteUpdate) SetParentID(id schema.NoteID) *NoteUpdate + func (nu *NoteUpdate) SetText(s string) *NoteUpdate + func (nu *NoteUpdate) Where(ps ...predicate.Note) *NoteUpdate + type NoteUpdateOne struct + func (nuo *NoteUpdateOne) AddChildIDs(ids ...schema.NoteID) *NoteUpdateOne + func (nuo *NoteUpdateOne) AddChildren(n ...*Note) *NoteUpdateOne + func (nuo *NoteUpdateOne) ClearChildren() *NoteUpdateOne + func (nuo *NoteUpdateOne) ClearParent() *NoteUpdateOne + func (nuo *NoteUpdateOne) ClearText() *NoteUpdateOne + func (nuo *NoteUpdateOne) Exec(ctx context.Context) error + func (nuo *NoteUpdateOne) ExecX(ctx context.Context) + func (nuo *NoteUpdateOne) Mutation() *NoteMutation + func (nuo *NoteUpdateOne) RemoveChildIDs(ids ...schema.NoteID) *NoteUpdateOne + func (nuo *NoteUpdateOne) RemoveChildren(n ...*Note) *NoteUpdateOne + func (nuo *NoteUpdateOne) Save(ctx context.Context) (*Note, error) + func (nuo *NoteUpdateOne) SaveX(ctx context.Context) *Note + func (nuo *NoteUpdateOne) Select(field string, fields ...string) *NoteUpdateOne + func (nuo *NoteUpdateOne) SetNillableParentID(id *schema.NoteID) *NoteUpdateOne + func (nuo *NoteUpdateOne) SetNillableText(s *string) *NoteUpdateOne + func (nuo *NoteUpdateOne) SetParent(n *Note) *NoteUpdateOne + func (nuo *NoteUpdateOne) SetParentID(id schema.NoteID) *NoteUpdateOne + func (nuo *NoteUpdateOne) SetText(s string) *NoteUpdateOne + type NoteUpsert struct + func (u *NoteUpsert) ClearText() *NoteUpsert + func (u *NoteUpsert) SetText(v string) *NoteUpsert + func (u *NoteUpsert) UpdateText() *NoteUpsert + type NoteUpsertBulk struct + func (u *NoteUpsertBulk) ClearText() *NoteUpsertBulk + func (u *NoteUpsertBulk) DoNothing() *NoteUpsertBulk + func (u *NoteUpsertBulk) Exec(ctx context.Context) error + func (u *NoteUpsertBulk) ExecX(ctx context.Context) + func (u *NoteUpsertBulk) Ignore() *NoteUpsertBulk + func (u *NoteUpsertBulk) SetText(v string) *NoteUpsertBulk + func (u *NoteUpsertBulk) Update(set func(*NoteUpsert)) *NoteUpsertBulk + func (u *NoteUpsertBulk) UpdateNewValues() *NoteUpsertBulk + func (u *NoteUpsertBulk) UpdateText() *NoteUpsertBulk + type NoteUpsertOne struct + func (u *NoteUpsertOne) ClearText() *NoteUpsertOne + func (u *NoteUpsertOne) DoNothing() *NoteUpsertOne + func (u *NoteUpsertOne) Exec(ctx context.Context) error + func (u *NoteUpsertOne) ExecX(ctx context.Context) + func (u *NoteUpsertOne) ID(ctx context.Context) (id schema.NoteID, err error) + func (u *NoteUpsertOne) IDX(ctx context.Context) schema.NoteID + func (u *NoteUpsertOne) Ignore() *NoteUpsertOne + func (u *NoteUpsertOne) SetText(v string) *NoteUpsertOne + func (u *NoteUpsertOne) Update(set func(*NoteUpsert)) *NoteUpsertOne + func (u *NoteUpsertOne) UpdateNewValues() *NoteUpsertOne + func (u *NoteUpsertOne) UpdateText() *NoteUpsertOne + type Notes []*Note + 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 string + func (pe *Pet) QueryBestFriend() *PetQuery + func (pe *Pet) QueryCars() *CarQuery + func (pe *Pet) QueryFriends() *PetQuery + func (pe *Pet) QueryOwner() *UserQuery + func (pe *Pet) String() string + func (pe *Pet) Unwrap() *Pet + func (pe *Pet) Update() *PetUpdateOne + type PetClient struct + func NewPetClient(c config) *PetClient + func (c *PetClient) Create() *PetCreate + func (c *PetClient) CreateBulk(builders ...*PetCreate) *PetCreateBulk + func (c *PetClient) Delete() *PetDelete + func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne + func (c *PetClient) DeleteOneID(id string) *PetDeleteOne + func (c *PetClient) Get(ctx context.Context, id string) (*Pet, error) + func (c *PetClient) GetX(ctx context.Context, id string) *Pet + func (c *PetClient) Hooks() []Hook + func (c *PetClient) Query() *PetQuery + func (c *PetClient) QueryBestFriend(pe *Pet) *PetQuery + func (c *PetClient) QueryCars(pe *Pet) *CarQuery + func (c *PetClient) QueryFriends(pe *Pet) *PetQuery + func (c *PetClient) QueryOwner(pe *Pet) *UserQuery + func (c *PetClient) Update() *PetUpdate + func (c *PetClient) UpdateOne(pe *Pet) *PetUpdateOne + func (c *PetClient) UpdateOneID(id string) *PetUpdateOne + func (c *PetClient) Use(hooks ...Hook) + type PetCreate struct + func (pc *PetCreate) AddCarIDs(ids ...int) *PetCreate + func (pc *PetCreate) AddCars(c ...*Car) *PetCreate + func (pc *PetCreate) AddFriendIDs(ids ...string) *PetCreate + func (pc *PetCreate) AddFriends(p ...*Pet) *PetCreate + func (pc *PetCreate) Exec(ctx context.Context) error + func (pc *PetCreate) ExecX(ctx context.Context) + func (pc *PetCreate) Mutation() *PetMutation + func (pc *PetCreate) OnConflict(opts ...sql.ConflictOption) *PetUpsertOne + func (pc *PetCreate) OnConflictColumns(columns ...string) *PetUpsertOne + func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) + func (pc *PetCreate) SaveX(ctx context.Context) *Pet + func (pc *PetCreate) SetBestFriend(p *Pet) *PetCreate + func (pc *PetCreate) SetBestFriendID(id string) *PetCreate + func (pc *PetCreate) SetID(s string) *PetCreate + func (pc *PetCreate) SetNillableBestFriendID(id *string) *PetCreate + func (pc *PetCreate) SetNillableID(s *string) *PetCreate + func (pc *PetCreate) SetNillableOwnerID(id *int) *PetCreate + func (pc *PetCreate) SetOwner(u *User) *PetCreate + func (pc *PetCreate) SetOwnerID(id int) *PetCreate + type PetCreateBulk struct + func (pcb *PetCreateBulk) Exec(ctx context.Context) error + func (pcb *PetCreateBulk) ExecX(ctx context.Context) + func (pcb *PetCreateBulk) OnConflict(opts ...sql.ConflictOption) *PetUpsertBulk + func (pcb *PetCreateBulk) OnConflictColumns(columns ...string) *PetUpsertBulk + func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) + func (pcb *PetCreateBulk) SaveX(ctx context.Context) []*Pet + type PetDelete struct + func (pd *PetDelete) Exec(ctx context.Context) (int, error) + func (pd *PetDelete) ExecX(ctx context.Context) int + func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete + type PetDeleteOne struct + func (pdo *PetDeleteOne) Exec(ctx context.Context) error + func (pdo *PetDeleteOne) ExecX(ctx context.Context) + type PetEdges struct + BestFriend *Pet + Cars []*Car + Friends []*Pet + Owner *User + func (e PetEdges) BestFriendOrErr() (*Pet, error) + func (e PetEdges) CarsOrErr() ([]*Car, error) + func (e PetEdges) FriendsOrErr() ([]*Pet, error) + func (e PetEdges) OwnerOrErr() (*User, error) + type PetFilter struct + func (f *PetFilter) Where(p entql.P) + func (f *PetFilter) WhereHasBestFriend() + func (f *PetFilter) WhereHasBestFriendWith(preds ...predicate.Pet) + func (f *PetFilter) WhereHasCars() + func (f *PetFilter) WhereHasCarsWith(preds ...predicate.Car) + func (f *PetFilter) WhereHasFriends() + func (f *PetFilter) WhereHasFriendsWith(preds ...predicate.Pet) + func (f *PetFilter) WhereHasOwner() + func (f *PetFilter) WhereHasOwnerWith(preds ...predicate.User) + func (f *PetFilter) WhereID(p entql.StringP) + type PetGroupBy struct + func (pgb *PetGroupBy) Aggregate(fns ...AggregateFunc) *PetGroupBy + func (pgb *PetGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (pgb *PetGroupBy) BoolX(ctx context.Context) bool + func (pgb *PetGroupBy) Bools(ctx context.Context) ([]bool, error) + func (pgb *PetGroupBy) BoolsX(ctx context.Context) []bool + func (pgb *PetGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (pgb *PetGroupBy) Float64X(ctx context.Context) float64 + func (pgb *PetGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (pgb *PetGroupBy) Float64sX(ctx context.Context) []float64 + func (pgb *PetGroupBy) Int(ctx context.Context) (_ int, err error) + func (pgb *PetGroupBy) IntX(ctx context.Context) int + func (pgb *PetGroupBy) Ints(ctx context.Context) ([]int, error) + func (pgb *PetGroupBy) IntsX(ctx context.Context) []int + func (pgb *PetGroupBy) Scan(ctx context.Context, v interface{}) error + func (pgb *PetGroupBy) ScanX(ctx context.Context, v interface{}) + func (pgb *PetGroupBy) String(ctx context.Context) (_ string, err error) + func (pgb *PetGroupBy) StringX(ctx context.Context) string + func (pgb *PetGroupBy) Strings(ctx context.Context) ([]string, error) + func (pgb *PetGroupBy) StringsX(ctx context.Context) []string + type PetMutation struct + func (m *PetMutation) AddCarIDs(ids ...int) + func (m *PetMutation) AddField(name string, value ent.Value) error + func (m *PetMutation) AddFriendIDs(ids ...string) + func (m *PetMutation) AddedEdges() []string + func (m *PetMutation) AddedField(name string) (ent.Value, bool) + func (m *PetMutation) AddedFields() []string + func (m *PetMutation) AddedIDs(name string) []ent.Value + func (m *PetMutation) BestFriendCleared() bool + func (m *PetMutation) BestFriendID() (id string, exists bool) + func (m *PetMutation) BestFriendIDs() (ids []string) + func (m *PetMutation) CarsCleared() bool + func (m *PetMutation) CarsIDs() (ids []int) + func (m *PetMutation) ClearBestFriend() + func (m *PetMutation) ClearCars() + func (m *PetMutation) ClearEdge(name string) error + func (m *PetMutation) ClearField(name string) error + func (m *PetMutation) ClearFriends() + func (m *PetMutation) ClearOwner() + func (m *PetMutation) ClearedEdges() []string + func (m *PetMutation) ClearedFields() []string + func (m *PetMutation) EdgeCleared(name string) bool + func (m *PetMutation) Field(name string) (ent.Value, bool) + func (m *PetMutation) FieldCleared(name string) bool + func (m *PetMutation) Fields() []string + func (m *PetMutation) Filter() *PetFilter + func (m *PetMutation) FriendsCleared() bool + func (m *PetMutation) FriendsIDs() (ids []string) + func (m *PetMutation) ID() (id string, exists bool) + func (m *PetMutation) IDs(ctx context.Context) ([]string, error) + func (m *PetMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PetMutation) Op() Op + func (m *PetMutation) OwnerCleared() bool + func (m *PetMutation) OwnerID() (id int, exists bool) + func (m *PetMutation) OwnerIDs() (ids []int) + func (m *PetMutation) RemoveCarIDs(ids ...int) + func (m *PetMutation) RemoveFriendIDs(ids ...string) + func (m *PetMutation) RemovedCarsIDs() (ids []int) + func (m *PetMutation) RemovedEdges() []string + func (m *PetMutation) RemovedFriendsIDs() (ids []string) + func (m *PetMutation) RemovedIDs(name string) []ent.Value + func (m *PetMutation) ResetBestFriend() + func (m *PetMutation) ResetCars() + func (m *PetMutation) ResetEdge(name string) error + func (m *PetMutation) ResetField(name string) error + func (m *PetMutation) ResetFriends() + func (m *PetMutation) ResetOwner() + func (m *PetMutation) SetBestFriendID(id string) + func (m *PetMutation) SetField(name string, value ent.Value) error + func (m *PetMutation) SetID(id string) + func (m *PetMutation) SetOwnerID(id int) + func (m *PetMutation) Type() string + func (m *PetMutation) 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) Filter() *PetFilter + func (pq *PetQuery) First(ctx context.Context) (*Pet, error) + func (pq *PetQuery) FirstID(ctx context.Context) (id string, err error) + func (pq *PetQuery) FirstIDX(ctx context.Context) string + func (pq *PetQuery) FirstX(ctx context.Context) *Pet + func (pq *PetQuery) GroupBy(field string, fields ...string) *PetGroupBy + func (pq *PetQuery) IDs(ctx context.Context) ([]string, error) + func (pq *PetQuery) IDsX(ctx context.Context) []string + func (pq *PetQuery) Limit(limit int) *PetQuery + func (pq *PetQuery) Offset(offset int) *PetQuery + func (pq *PetQuery) Only(ctx context.Context) (*Pet, error) + func (pq *PetQuery) OnlyID(ctx context.Context) (id string, err error) + func (pq *PetQuery) OnlyIDX(ctx context.Context) string + func (pq *PetQuery) OnlyX(ctx context.Context) *Pet + func (pq *PetQuery) Order(o ...OrderFunc) *PetQuery + func (pq *PetQuery) QueryBestFriend() *PetQuery + func (pq *PetQuery) QueryCars() *CarQuery + func (pq *PetQuery) QueryFriends() *PetQuery + func (pq *PetQuery) QueryOwner() *UserQuery + func (pq *PetQuery) Select(fields ...string) *PetSelect + func (pq *PetQuery) Unique(unique bool) *PetQuery + func (pq *PetQuery) Where(ps ...predicate.Pet) *PetQuery + func (pq *PetQuery) WithBestFriend(opts ...func(*PetQuery)) *PetQuery + func (pq *PetQuery) WithCars(opts ...func(*CarQuery)) *PetQuery + func (pq *PetQuery) WithFriends(opts ...func(*PetQuery)) *PetQuery + func (pq *PetQuery) WithOwner(opts ...func(*UserQuery)) *PetQuery + type PetSelect struct + func (ps *PetSelect) Bool(ctx context.Context) (_ bool, err error) + func (ps *PetSelect) BoolX(ctx context.Context) bool + func (ps *PetSelect) Bools(ctx context.Context) ([]bool, error) + func (ps *PetSelect) BoolsX(ctx context.Context) []bool + func (ps *PetSelect) Float64(ctx context.Context) (_ float64, err error) + func (ps *PetSelect) Float64X(ctx context.Context) float64 + func (ps *PetSelect) Float64s(ctx context.Context) ([]float64, error) + func (ps *PetSelect) Float64sX(ctx context.Context) []float64 + func (ps *PetSelect) Int(ctx context.Context) (_ int, err error) + func (ps *PetSelect) IntX(ctx context.Context) int + func (ps *PetSelect) Ints(ctx context.Context) ([]int, error) + func (ps *PetSelect) IntsX(ctx context.Context) []int + func (ps *PetSelect) Scan(ctx context.Context, v interface{}) error + func (ps *PetSelect) ScanX(ctx context.Context, v interface{}) + func (ps *PetSelect) String(ctx context.Context) (_ string, err error) + func (ps *PetSelect) StringX(ctx context.Context) string + func (ps *PetSelect) Strings(ctx context.Context) ([]string, error) + func (ps *PetSelect) StringsX(ctx context.Context) []string + type PetUpdate struct + func (pu *PetUpdate) AddCarIDs(ids ...int) *PetUpdate + func (pu *PetUpdate) AddCars(c ...*Car) *PetUpdate + func (pu *PetUpdate) AddFriendIDs(ids ...string) *PetUpdate + func (pu *PetUpdate) AddFriends(p ...*Pet) *PetUpdate + func (pu *PetUpdate) ClearBestFriend() *PetUpdate + func (pu *PetUpdate) ClearCars() *PetUpdate + func (pu *PetUpdate) ClearFriends() *PetUpdate + func (pu *PetUpdate) ClearOwner() *PetUpdate + func (pu *PetUpdate) Exec(ctx context.Context) error + func (pu *PetUpdate) ExecX(ctx context.Context) + func (pu *PetUpdate) Mutation() *PetMutation + func (pu *PetUpdate) RemoveCarIDs(ids ...int) *PetUpdate + func (pu *PetUpdate) RemoveCars(c ...*Car) *PetUpdate + func (pu *PetUpdate) RemoveFriendIDs(ids ...string) *PetUpdate + func (pu *PetUpdate) RemoveFriends(p ...*Pet) *PetUpdate + func (pu *PetUpdate) Save(ctx context.Context) (int, error) + func (pu *PetUpdate) SaveX(ctx context.Context) int + func (pu *PetUpdate) SetBestFriend(p *Pet) *PetUpdate + func (pu *PetUpdate) SetBestFriendID(id string) *PetUpdate + func (pu *PetUpdate) SetNillableBestFriendID(id *string) *PetUpdate + func (pu *PetUpdate) SetNillableOwnerID(id *int) *PetUpdate + func (pu *PetUpdate) SetOwner(u *User) *PetUpdate + func (pu *PetUpdate) SetOwnerID(id int) *PetUpdate + func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate + type PetUpdateOne struct + func (puo *PetUpdateOne) AddCarIDs(ids ...int) *PetUpdateOne + func (puo *PetUpdateOne) AddCars(c ...*Car) *PetUpdateOne + func (puo *PetUpdateOne) AddFriendIDs(ids ...string) *PetUpdateOne + func (puo *PetUpdateOne) AddFriends(p ...*Pet) *PetUpdateOne + func (puo *PetUpdateOne) ClearBestFriend() *PetUpdateOne + func (puo *PetUpdateOne) ClearCars() *PetUpdateOne + func (puo *PetUpdateOne) ClearFriends() *PetUpdateOne + func (puo *PetUpdateOne) ClearOwner() *PetUpdateOne + func (puo *PetUpdateOne) Exec(ctx context.Context) error + func (puo *PetUpdateOne) ExecX(ctx context.Context) + func (puo *PetUpdateOne) Mutation() *PetMutation + func (puo *PetUpdateOne) RemoveCarIDs(ids ...int) *PetUpdateOne + func (puo *PetUpdateOne) RemoveCars(c ...*Car) *PetUpdateOne + func (puo *PetUpdateOne) RemoveFriendIDs(ids ...string) *PetUpdateOne + func (puo *PetUpdateOne) RemoveFriends(p ...*Pet) *PetUpdateOne + func (puo *PetUpdateOne) Save(ctx context.Context) (*Pet, error) + func (puo *PetUpdateOne) SaveX(ctx context.Context) *Pet + func (puo *PetUpdateOne) Select(field string, fields ...string) *PetUpdateOne + func (puo *PetUpdateOne) SetBestFriend(p *Pet) *PetUpdateOne + func (puo *PetUpdateOne) SetBestFriendID(id string) *PetUpdateOne + func (puo *PetUpdateOne) SetNillableBestFriendID(id *string) *PetUpdateOne + func (puo *PetUpdateOne) SetNillableOwnerID(id *int) *PetUpdateOne + func (puo *PetUpdateOne) SetOwner(u *User) *PetUpdateOne + func (puo *PetUpdateOne) SetOwnerID(id int) *PetUpdateOne + type PetUpsert struct + type PetUpsertBulk struct + func (u *PetUpsertBulk) DoNothing() *PetUpsertBulk + func (u *PetUpsertBulk) Exec(ctx context.Context) error + func (u *PetUpsertBulk) ExecX(ctx context.Context) + func (u *PetUpsertBulk) Ignore() *PetUpsertBulk + func (u *PetUpsertBulk) Update(set func(*PetUpsert)) *PetUpsertBulk + func (u *PetUpsertBulk) UpdateNewValues() *PetUpsertBulk + type PetUpsertOne struct + func (u *PetUpsertOne) DoNothing() *PetUpsertOne + func (u *PetUpsertOne) Exec(ctx context.Context) error + func (u *PetUpsertOne) ExecX(ctx context.Context) + func (u *PetUpsertOne) ID(ctx context.Context) (id string, err error) + func (u *PetUpsertOne) IDX(ctx context.Context) string + func (u *PetUpsertOne) Ignore() *PetUpsertOne + func (u *PetUpsertOne) Update(set func(*PetUpsert)) *PetUpsertOne + func (u *PetUpsertOne) UpdateNewValues() *PetUpsertOne + type Pets []*Pet + type Policy = ent.Policy + type Query = ent.Query + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Session struct + Edges SessionEdges + ID schema.ID + func (s *Session) QueryDevice() *DeviceQuery + func (s *Session) String() string + func (s *Session) Unwrap() *Session + func (s *Session) Update() *SessionUpdateOne + type SessionClient struct + func NewSessionClient(c config) *SessionClient + func (c *SessionClient) Create() *SessionCreate + func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk + func (c *SessionClient) Delete() *SessionDelete + func (c *SessionClient) DeleteOne(s *Session) *SessionDeleteOne + func (c *SessionClient) DeleteOneID(id schema.ID) *SessionDeleteOne + func (c *SessionClient) Get(ctx context.Context, id schema.ID) (*Session, error) + func (c *SessionClient) GetX(ctx context.Context, id schema.ID) *Session + func (c *SessionClient) Hooks() []Hook + func (c *SessionClient) Query() *SessionQuery + func (c *SessionClient) QueryDevice(s *Session) *DeviceQuery + func (c *SessionClient) Update() *SessionUpdate + func (c *SessionClient) UpdateOne(s *Session) *SessionUpdateOne + func (c *SessionClient) UpdateOneID(id schema.ID) *SessionUpdateOne + func (c *SessionClient) Use(hooks ...Hook) + type SessionCreate struct + func (sc *SessionCreate) Exec(ctx context.Context) error + func (sc *SessionCreate) ExecX(ctx context.Context) + func (sc *SessionCreate) Mutation() *SessionMutation + func (sc *SessionCreate) OnConflict(opts ...sql.ConflictOption) *SessionUpsertOne + func (sc *SessionCreate) OnConflictColumns(columns ...string) *SessionUpsertOne + func (sc *SessionCreate) Save(ctx context.Context) (*Session, error) + func (sc *SessionCreate) SaveX(ctx context.Context) *Session + func (sc *SessionCreate) SetDevice(d *Device) *SessionCreate + func (sc *SessionCreate) SetDeviceID(id schema.ID) *SessionCreate + func (sc *SessionCreate) SetID(s schema.ID) *SessionCreate + func (sc *SessionCreate) SetNillableDeviceID(id *schema.ID) *SessionCreate + func (sc *SessionCreate) SetNillableID(s *schema.ID) *SessionCreate + type SessionCreateBulk struct + func (scb *SessionCreateBulk) Exec(ctx context.Context) error + func (scb *SessionCreateBulk) ExecX(ctx context.Context) + func (scb *SessionCreateBulk) OnConflict(opts ...sql.ConflictOption) *SessionUpsertBulk + func (scb *SessionCreateBulk) OnConflictColumns(columns ...string) *SessionUpsertBulk + func (scb *SessionCreateBulk) Save(ctx context.Context) ([]*Session, error) + func (scb *SessionCreateBulk) SaveX(ctx context.Context) []*Session + type SessionDelete struct + func (sd *SessionDelete) Exec(ctx context.Context) (int, error) + func (sd *SessionDelete) ExecX(ctx context.Context) int + func (sd *SessionDelete) Where(ps ...predicate.Session) *SessionDelete + type SessionDeleteOne struct + func (sdo *SessionDeleteOne) Exec(ctx context.Context) error + func (sdo *SessionDeleteOne) ExecX(ctx context.Context) + type SessionEdges struct + Device *Device + func (e SessionEdges) DeviceOrErr() (*Device, error) + type SessionFilter struct + func (f *SessionFilter) Where(p entql.P) + func (f *SessionFilter) WhereHasDevice() + func (f *SessionFilter) WhereHasDeviceWith(preds ...predicate.Device) + func (f *SessionFilter) WhereID(p entql.BytesP) + type SessionGroupBy struct + func (sgb *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy + func (sgb *SessionGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (sgb *SessionGroupBy) BoolX(ctx context.Context) bool + func (sgb *SessionGroupBy) Bools(ctx context.Context) ([]bool, error) + func (sgb *SessionGroupBy) BoolsX(ctx context.Context) []bool + func (sgb *SessionGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (sgb *SessionGroupBy) Float64X(ctx context.Context) float64 + func (sgb *SessionGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (sgb *SessionGroupBy) Float64sX(ctx context.Context) []float64 + func (sgb *SessionGroupBy) Int(ctx context.Context) (_ int, err error) + func (sgb *SessionGroupBy) IntX(ctx context.Context) int + func (sgb *SessionGroupBy) Ints(ctx context.Context) ([]int, error) + func (sgb *SessionGroupBy) IntsX(ctx context.Context) []int + func (sgb *SessionGroupBy) Scan(ctx context.Context, v interface{}) error + func (sgb *SessionGroupBy) ScanX(ctx context.Context, v interface{}) + func (sgb *SessionGroupBy) String(ctx context.Context) (_ string, err error) + func (sgb *SessionGroupBy) StringX(ctx context.Context) string + func (sgb *SessionGroupBy) Strings(ctx context.Context) ([]string, error) + func (sgb *SessionGroupBy) StringsX(ctx context.Context) []string + type SessionMutation struct + func (m *SessionMutation) AddField(name string, value ent.Value) error + func (m *SessionMutation) AddedEdges() []string + func (m *SessionMutation) AddedField(name string) (ent.Value, bool) + func (m *SessionMutation) AddedFields() []string + func (m *SessionMutation) AddedIDs(name string) []ent.Value + func (m *SessionMutation) ClearDevice() + func (m *SessionMutation) ClearEdge(name string) error + func (m *SessionMutation) ClearField(name string) error + func (m *SessionMutation) ClearedEdges() []string + func (m *SessionMutation) ClearedFields() []string + func (m *SessionMutation) DeviceCleared() bool + func (m *SessionMutation) DeviceID() (id schema.ID, exists bool) + func (m *SessionMutation) DeviceIDs() (ids []schema.ID) + func (m *SessionMutation) EdgeCleared(name string) bool + func (m *SessionMutation) Field(name string) (ent.Value, bool) + func (m *SessionMutation) FieldCleared(name string) bool + func (m *SessionMutation) Fields() []string + func (m *SessionMutation) Filter() *SessionFilter + func (m *SessionMutation) ID() (id schema.ID, exists bool) + func (m *SessionMutation) IDs(ctx context.Context) ([]schema.ID, error) + func (m *SessionMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *SessionMutation) Op() Op + func (m *SessionMutation) RemovedEdges() []string + func (m *SessionMutation) RemovedIDs(name string) []ent.Value + func (m *SessionMutation) ResetDevice() + func (m *SessionMutation) ResetEdge(name string) error + func (m *SessionMutation) ResetField(name string) error + func (m *SessionMutation) SetDeviceID(id schema.ID) + func (m *SessionMutation) SetField(name string, value ent.Value) error + func (m *SessionMutation) SetID(id schema.ID) + func (m *SessionMutation) Type() string + func (m *SessionMutation) Where(ps ...predicate.Session) + func (m SessionMutation) Client() *Client + func (m SessionMutation) Tx() (*Tx, error) + type SessionQuery struct + func (sq *SessionQuery) All(ctx context.Context) ([]*Session, error) + func (sq *SessionQuery) AllX(ctx context.Context) []*Session + func (sq *SessionQuery) Clone() *SessionQuery + func (sq *SessionQuery) Count(ctx context.Context) (int, error) + func (sq *SessionQuery) CountX(ctx context.Context) int + func (sq *SessionQuery) Exist(ctx context.Context) (bool, error) + func (sq *SessionQuery) ExistX(ctx context.Context) bool + func (sq *SessionQuery) Filter() *SessionFilter + func (sq *SessionQuery) First(ctx context.Context) (*Session, error) + func (sq *SessionQuery) FirstID(ctx context.Context) (id schema.ID, err error) + func (sq *SessionQuery) FirstIDX(ctx context.Context) schema.ID + func (sq *SessionQuery) FirstX(ctx context.Context) *Session + func (sq *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy + func (sq *SessionQuery) IDs(ctx context.Context) ([]schema.ID, error) + func (sq *SessionQuery) IDsX(ctx context.Context) []schema.ID + func (sq *SessionQuery) Limit(limit int) *SessionQuery + func (sq *SessionQuery) Offset(offset int) *SessionQuery + func (sq *SessionQuery) Only(ctx context.Context) (*Session, error) + func (sq *SessionQuery) OnlyID(ctx context.Context) (id schema.ID, err error) + func (sq *SessionQuery) OnlyIDX(ctx context.Context) schema.ID + func (sq *SessionQuery) OnlyX(ctx context.Context) *Session + func (sq *SessionQuery) Order(o ...OrderFunc) *SessionQuery + func (sq *SessionQuery) QueryDevice() *DeviceQuery + func (sq *SessionQuery) Select(fields ...string) *SessionSelect + func (sq *SessionQuery) Unique(unique bool) *SessionQuery + func (sq *SessionQuery) Where(ps ...predicate.Session) *SessionQuery + func (sq *SessionQuery) WithDevice(opts ...func(*DeviceQuery)) *SessionQuery + type SessionSelect struct + func (ss *SessionSelect) Bool(ctx context.Context) (_ bool, err error) + func (ss *SessionSelect) BoolX(ctx context.Context) bool + func (ss *SessionSelect) Bools(ctx context.Context) ([]bool, error) + func (ss *SessionSelect) BoolsX(ctx context.Context) []bool + func (ss *SessionSelect) Float64(ctx context.Context) (_ float64, err error) + func (ss *SessionSelect) Float64X(ctx context.Context) float64 + func (ss *SessionSelect) Float64s(ctx context.Context) ([]float64, error) + func (ss *SessionSelect) Float64sX(ctx context.Context) []float64 + func (ss *SessionSelect) Int(ctx context.Context) (_ int, err error) + func (ss *SessionSelect) IntX(ctx context.Context) int + func (ss *SessionSelect) Ints(ctx context.Context) ([]int, error) + func (ss *SessionSelect) IntsX(ctx context.Context) []int + func (ss *SessionSelect) Scan(ctx context.Context, v interface{}) error + func (ss *SessionSelect) ScanX(ctx context.Context, v interface{}) + func (ss *SessionSelect) String(ctx context.Context) (_ string, err error) + func (ss *SessionSelect) StringX(ctx context.Context) string + func (ss *SessionSelect) Strings(ctx context.Context) ([]string, error) + func (ss *SessionSelect) StringsX(ctx context.Context) []string + type SessionUpdate struct + func (su *SessionUpdate) ClearDevice() *SessionUpdate + func (su *SessionUpdate) Exec(ctx context.Context) error + func (su *SessionUpdate) ExecX(ctx context.Context) + func (su *SessionUpdate) Mutation() *SessionMutation + func (su *SessionUpdate) Save(ctx context.Context) (int, error) + func (su *SessionUpdate) SaveX(ctx context.Context) int + func (su *SessionUpdate) SetDevice(d *Device) *SessionUpdate + func (su *SessionUpdate) SetDeviceID(id schema.ID) *SessionUpdate + func (su *SessionUpdate) SetNillableDeviceID(id *schema.ID) *SessionUpdate + func (su *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate + type SessionUpdateOne struct + func (suo *SessionUpdateOne) ClearDevice() *SessionUpdateOne + func (suo *SessionUpdateOne) Exec(ctx context.Context) error + func (suo *SessionUpdateOne) ExecX(ctx context.Context) + func (suo *SessionUpdateOne) Mutation() *SessionMutation + func (suo *SessionUpdateOne) Save(ctx context.Context) (*Session, error) + func (suo *SessionUpdateOne) SaveX(ctx context.Context) *Session + func (suo *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne + func (suo *SessionUpdateOne) SetDevice(d *Device) *SessionUpdateOne + func (suo *SessionUpdateOne) SetDeviceID(id schema.ID) *SessionUpdateOne + func (suo *SessionUpdateOne) SetNillableDeviceID(id *schema.ID) *SessionUpdateOne + type SessionUpsert struct + type SessionUpsertBulk struct + func (u *SessionUpsertBulk) DoNothing() *SessionUpsertBulk + func (u *SessionUpsertBulk) Exec(ctx context.Context) error + func (u *SessionUpsertBulk) ExecX(ctx context.Context) + func (u *SessionUpsertBulk) Ignore() *SessionUpsertBulk + func (u *SessionUpsertBulk) Update(set func(*SessionUpsert)) *SessionUpsertBulk + func (u *SessionUpsertBulk) UpdateNewValues() *SessionUpsertBulk + type SessionUpsertOne struct + func (u *SessionUpsertOne) DoNothing() *SessionUpsertOne + func (u *SessionUpsertOne) Exec(ctx context.Context) error + func (u *SessionUpsertOne) ExecX(ctx context.Context) + func (u *SessionUpsertOne) ID(ctx context.Context) (id schema.ID, err error) + func (u *SessionUpsertOne) IDX(ctx context.Context) schema.ID + func (u *SessionUpsertOne) Ignore() *SessionUpsertOne + func (u *SessionUpsertOne) Update(set func(*SessionUpsert)) *SessionUpsertOne + func (u *SessionUpsertOne) UpdateNewValues() *SessionUpsertOne + type Sessions []*Session + type Tx struct + Blob *BlobClient + Car *CarClient + Device *DeviceClient + Doc *DocClient + Group *GroupClient + MixinID *MixinIDClient + Note *NoteClient + Pet *PetClient + Session *SessionClient + User *UserClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type User struct + Edges UserEdges + ID int + func (u *User) QueryChildren() *UserQuery + func (u *User) QueryGroups() *GroupQuery + func (u *User) QueryParent() *UserQuery + func (u *User) QueryPets() *PetQuery + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + type UserClient struct + func NewUserClient(c config) *UserClient + func (c *UserClient) Create() *UserCreate + func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk + func (c *UserClient) Delete() *UserDelete + func (c *UserClient) DeleteOne(u *User) *UserDeleteOne + func (c *UserClient) DeleteOneID(id int) *UserDeleteOne + func (c *UserClient) Get(ctx context.Context, id int) (*User, error) + func (c *UserClient) GetX(ctx context.Context, id int) *User + func (c *UserClient) Hooks() []Hook + func (c *UserClient) Query() *UserQuery + func (c *UserClient) QueryChildren(u *User) *UserQuery + func (c *UserClient) QueryGroups(u *User) *GroupQuery + func (c *UserClient) QueryParent(u *User) *UserQuery + func (c *UserClient) QueryPets(u *User) *PetQuery + func (c *UserClient) Update() *UserUpdate + func (c *UserClient) UpdateOne(u *User) *UserUpdateOne + func (c *UserClient) UpdateOneID(id int) *UserUpdateOne + func (c *UserClient) Use(hooks ...Hook) + type UserCreate struct + func (uc *UserCreate) AddChildIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddChildren(u ...*User) *UserCreate + func (uc *UserCreate) AddGroupIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate + func (uc *UserCreate) AddPetIDs(ids ...string) *UserCreate + func (uc *UserCreate) AddPets(p ...*Pet) *UserCreate + func (uc *UserCreate) Exec(ctx context.Context) error + func (uc *UserCreate) ExecX(ctx context.Context) + func (uc *UserCreate) Mutation() *UserMutation + func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne + func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne + func (uc *UserCreate) Save(ctx context.Context) (*User, error) + func (uc *UserCreate) SaveX(ctx context.Context) *User + func (uc *UserCreate) SetID(i int) *UserCreate + func (uc *UserCreate) SetNillableParentID(id *int) *UserCreate + func (uc *UserCreate) SetParent(u *User) *UserCreate + func (uc *UserCreate) SetParentID(id int) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Exec(ctx context.Context) error + func (ucb *UserCreateBulk) ExecX(ctx context.Context) + func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk + func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + type UserEdges struct + Children []*User + Groups []*Group + Parent *User + Pets []*Pet + func (e UserEdges) ChildrenOrErr() ([]*User, error) + func (e UserEdges) GroupsOrErr() ([]*Group, error) + func (e UserEdges) ParentOrErr() (*User, error) + func (e UserEdges) PetsOrErr() ([]*Pet, error) + type UserFilter struct + func (f *UserFilter) Where(p entql.P) + func (f *UserFilter) WhereHasChildren() + func (f *UserFilter) WhereHasChildrenWith(preds ...predicate.User) + func (f *UserFilter) WhereHasGroups() + func (f *UserFilter) WhereHasGroupsWith(preds ...predicate.Group) + func (f *UserFilter) WhereHasParent() + func (f *UserFilter) WhereHasParentWith(preds ...predicate.User) + func (f *UserFilter) WhereHasPets() + func (f *UserFilter) WhereHasPetsWith(preds ...predicate.Pet) + func (f *UserFilter) WhereID(p entql.IntP) + type UserGroupBy struct + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ugb *UserGroupBy) BoolX(ctx context.Context) bool + func (ugb *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ugb *UserGroupBy) BoolsX(ctx context.Context) []bool + func (ugb *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ugb *UserGroupBy) Float64X(ctx context.Context) float64 + func (ugb *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ugb *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (ugb *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (ugb *UserGroupBy) IntX(ctx context.Context) int + func (ugb *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (ugb *UserGroupBy) IntsX(ctx context.Context) []int + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + func (ugb *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (ugb *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (ugb *UserGroupBy) StringX(ctx context.Context) string + func (ugb *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (ugb *UserGroupBy) StringsX(ctx context.Context) []string + type UserMutation struct + func (m *UserMutation) AddChildIDs(ids ...int) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddGroupIDs(ids ...int) + func (m *UserMutation) AddPetIDs(ids ...string) + func (m *UserMutation) AddedEdges() []string + func (m *UserMutation) AddedField(name string) (ent.Value, bool) + func (m *UserMutation) AddedFields() []string + func (m *UserMutation) AddedIDs(name string) []ent.Value + func (m *UserMutation) ChildrenCleared() bool + func (m *UserMutation) ChildrenIDs() (ids []int) + func (m *UserMutation) ClearChildren() + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearGroups() + func (m *UserMutation) ClearParent() + func (m *UserMutation) ClearPets() + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) Filter() *UserFilter + func (m *UserMutation) GroupsCleared() bool + func (m *UserMutation) GroupsIDs() (ids []int) + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) Op() Op + func (m *UserMutation) ParentCleared() bool + func (m *UserMutation) ParentID() (id int, exists bool) + func (m *UserMutation) ParentIDs() (ids []int) + func (m *UserMutation) PetsCleared() bool + func (m *UserMutation) PetsIDs() (ids []string) + func (m *UserMutation) RemoveChildIDs(ids ...int) + func (m *UserMutation) RemoveGroupIDs(ids ...int) + func (m *UserMutation) RemovePetIDs(ids ...string) + func (m *UserMutation) RemovedChildrenIDs() (ids []int) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedGroupsIDs() (ids []int) + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) RemovedPetsIDs() (ids []string) + func (m *UserMutation) ResetChildren() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetGroups() + func (m *UserMutation) ResetParent() + func (m *UserMutation) ResetPets() + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetID(id int) + func (m *UserMutation) SetParentID(id int) + func (m *UserMutation) Type() string + func (m *UserMutation) 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) Filter() *UserFilter + func (uq *UserQuery) First(ctx context.Context) (*User, error) + func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error) + func (uq *UserQuery) FirstIDX(ctx context.Context) int + func (uq *UserQuery) FirstX(ctx context.Context) *User + func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy + func (uq *UserQuery) IDs(ctx context.Context) ([]int, error) + func (uq *UserQuery) IDsX(ctx context.Context) []int + func (uq *UserQuery) Limit(limit int) *UserQuery + func (uq *UserQuery) Offset(offset int) *UserQuery + func (uq *UserQuery) Only(ctx context.Context) (*User, error) + func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error) + func (uq *UserQuery) OnlyIDX(ctx context.Context) int + func (uq *UserQuery) OnlyX(ctx context.Context) *User + func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery + func (uq *UserQuery) QueryChildren() *UserQuery + func (uq *UserQuery) QueryGroups() *GroupQuery + func (uq *UserQuery) QueryParent() *UserQuery + func (uq *UserQuery) QueryPets() *PetQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithChildren(opts ...func(*UserQuery)) *UserQuery + func (uq *UserQuery) WithGroups(opts ...func(*GroupQuery)) *UserQuery + func (uq *UserQuery) WithParent(opts ...func(*UserQuery)) *UserQuery + func (uq *UserQuery) WithPets(opts ...func(*PetQuery)) *UserQuery + type UserSelect struct + func (us *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (us *UserSelect) BoolX(ctx context.Context) bool + func (us *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (us *UserSelect) BoolsX(ctx context.Context) []bool + func (us *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (us *UserSelect) Float64X(ctx context.Context) float64 + func (us *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (us *UserSelect) Float64sX(ctx context.Context) []float64 + func (us *UserSelect) Int(ctx context.Context) (_ int, err error) + func (us *UserSelect) IntX(ctx context.Context) int + func (us *UserSelect) Ints(ctx context.Context) ([]int, error) + func (us *UserSelect) IntsX(ctx context.Context) []int + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + func (us *UserSelect) ScanX(ctx context.Context, v interface{}) + func (us *UserSelect) String(ctx context.Context) (_ string, err error) + func (us *UserSelect) StringX(ctx context.Context) string + func (us *UserSelect) Strings(ctx context.Context) ([]string, error) + func (us *UserSelect) StringsX(ctx context.Context) []string + type UserUpdate struct + func (uu *UserUpdate) AddChildIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddChildren(u ...*User) *UserUpdate + func (uu *UserUpdate) AddGroupIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate + func (uu *UserUpdate) AddPetIDs(ids ...string) *UserUpdate + func (uu *UserUpdate) AddPets(p ...*Pet) *UserUpdate + func (uu *UserUpdate) ClearChildren() *UserUpdate + func (uu *UserUpdate) ClearGroups() *UserUpdate + func (uu *UserUpdate) ClearParent() *UserUpdate + func (uu *UserUpdate) ClearPets() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) RemoveChildIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveChildren(u ...*User) *UserUpdate + func (uu *UserUpdate) RemoveGroupIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveGroups(g ...*Group) *UserUpdate + func (uu *UserUpdate) RemovePetIDs(ids ...string) *UserUpdate + func (uu *UserUpdate) RemovePets(p ...*Pet) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetNillableParentID(id *int) *UserUpdate + func (uu *UserUpdate) SetParent(u *User) *UserUpdate + func (uu *UserUpdate) SetParentID(id int) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddChildIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddChildren(u ...*User) *UserUpdateOne + func (uuo *UserUpdateOne) AddGroupIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne + func (uuo *UserUpdateOne) AddPetIDs(ids ...string) *UserUpdateOne + func (uuo *UserUpdateOne) AddPets(p ...*Pet) *UserUpdateOne + func (uuo *UserUpdateOne) ClearChildren() *UserUpdateOne + func (uuo *UserUpdateOne) ClearGroups() *UserUpdateOne + func (uuo *UserUpdateOne) ClearParent() *UserUpdateOne + func (uuo *UserUpdateOne) ClearPets() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) RemoveChildIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveChildren(u ...*User) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveGroupIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveGroups(g ...*Group) *UserUpdateOne + func (uuo *UserUpdateOne) RemovePetIDs(ids ...string) *UserUpdateOne + func (uuo *UserUpdateOne) RemovePets(p ...*Pet) *UserUpdateOne + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableParentID(id *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetParent(u *User) *UserUpdateOne + func (uuo *UserUpdateOne) SetParentID(id int) *UserUpdateOne + type UserUpsert struct + type UserUpsertBulk struct + func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk + func (u *UserUpsertBulk) Exec(ctx context.Context) error + func (u *UserUpsertBulk) ExecX(ctx context.Context) + func (u *UserUpsertBulk) Ignore() *UserUpsertBulk + func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk + func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk + type UserUpsertOne struct + func (u *UserUpsertOne) DoNothing() *UserUpsertOne + func (u *UserUpsertOne) Exec(ctx context.Context) error + func (u *UserUpsertOne) ExecX(ctx context.Context) + func (u *UserUpsertOne) ID(ctx context.Context) (id int, err error) + func (u *UserUpsertOne) IDX(ctx context.Context) int + func (u *UserUpsertOne) Ignore() *UserUpsertOne + func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne + func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value