Versions in this module Expand all Collapse all v1 v1.5.0 Oct 24, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeGalaxy + const TypePlanet + 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 Client struct + Galaxy *GalaxyClient + Planet *PlanetClient + Schema *migrate.Schema + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type 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 Galaxies []*Galaxy + type Galaxy struct + Edges GalaxyEdges + ID int + Name string + Type galaxy.Type + func (ga *Galaxy) QueryPlanets() *PlanetQuery + func (ga *Galaxy) String() string + func (ga *Galaxy) Unwrap() *Galaxy + func (ga *Galaxy) Update() *GalaxyUpdateOne + type GalaxyClient struct + func NewGalaxyClient(c config) *GalaxyClient + func (c *GalaxyClient) Create() *GalaxyCreate + func (c *GalaxyClient) CreateBulk(builders ...*GalaxyCreate) *GalaxyCreateBulk + func (c *GalaxyClient) Delete() *GalaxyDelete + func (c *GalaxyClient) DeleteOne(ga *Galaxy) *GalaxyDeleteOne + func (c *GalaxyClient) DeleteOneID(id int) *GalaxyDeleteOne + func (c *GalaxyClient) Get(ctx context.Context, id int) (*Galaxy, error) + func (c *GalaxyClient) GetX(ctx context.Context, id int) *Galaxy + func (c *GalaxyClient) Hooks() []Hook + func (c *GalaxyClient) Query() *GalaxyQuery + func (c *GalaxyClient) QueryPlanets(ga *Galaxy) *PlanetQuery + func (c *GalaxyClient) Update() *GalaxyUpdate + func (c *GalaxyClient) UpdateOne(ga *Galaxy) *GalaxyUpdateOne + func (c *GalaxyClient) UpdateOneID(id int) *GalaxyUpdateOne + func (c *GalaxyClient) Use(hooks ...Hook) + type GalaxyCreate struct + func (gc *GalaxyCreate) AddPlanetIDs(ids ...int) *GalaxyCreate + func (gc *GalaxyCreate) AddPlanets(p ...*Planet) *GalaxyCreate + func (gc *GalaxyCreate) Mutation() *GalaxyMutation + func (gc *GalaxyCreate) Save(ctx context.Context) (*Galaxy, error) + func (gc *GalaxyCreate) SaveX(ctx context.Context) *Galaxy + func (gc *GalaxyCreate) SetName(s string) *GalaxyCreate + func (gc *GalaxyCreate) SetType(ga galaxy.Type) *GalaxyCreate + type GalaxyCreateBulk struct + func (gcb *GalaxyCreateBulk) Save(ctx context.Context) ([]*Galaxy, error) + func (gcb *GalaxyCreateBulk) SaveX(ctx context.Context) []*Galaxy + type GalaxyDelete struct + func (gd *GalaxyDelete) Exec(ctx context.Context) (int, error) + func (gd *GalaxyDelete) ExecX(ctx context.Context) int + func (gd *GalaxyDelete) Where(ps ...predicate.Galaxy) *GalaxyDelete + type GalaxyDeleteOne struct + func (gdo *GalaxyDeleteOne) Exec(ctx context.Context) error + func (gdo *GalaxyDeleteOne) ExecX(ctx context.Context) + type GalaxyEdges struct + Planets []*Planet + func (e GalaxyEdges) PlanetsOrErr() ([]*Planet, error) + type GalaxyGroupBy struct + func (ggb *GalaxyGroupBy) Aggregate(fns ...AggregateFunc) *GalaxyGroupBy + func (ggb *GalaxyGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ggb *GalaxyGroupBy) BoolX(ctx context.Context) bool + func (ggb *GalaxyGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ggb *GalaxyGroupBy) BoolsX(ctx context.Context) []bool + func (ggb *GalaxyGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ggb *GalaxyGroupBy) Float64X(ctx context.Context) float64 + func (ggb *GalaxyGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ggb *GalaxyGroupBy) Float64sX(ctx context.Context) []float64 + func (ggb *GalaxyGroupBy) Int(ctx context.Context) (_ int, err error) + func (ggb *GalaxyGroupBy) IntX(ctx context.Context) int + func (ggb *GalaxyGroupBy) Ints(ctx context.Context) ([]int, error) + func (ggb *GalaxyGroupBy) IntsX(ctx context.Context) []int + func (ggb *GalaxyGroupBy) Scan(ctx context.Context, v interface{}) error + func (ggb *GalaxyGroupBy) ScanX(ctx context.Context, v interface{}) + func (ggb *GalaxyGroupBy) String(ctx context.Context) (_ string, err error) + func (ggb *GalaxyGroupBy) StringX(ctx context.Context) string + func (ggb *GalaxyGroupBy) Strings(ctx context.Context) ([]string, error) + func (ggb *GalaxyGroupBy) StringsX(ctx context.Context) []string + type GalaxyMutation struct + func (m *GalaxyMutation) AddField(name string, value ent.Value) error + func (m *GalaxyMutation) AddPlanetIDs(ids ...int) + func (m *GalaxyMutation) AddedEdges() []string + func (m *GalaxyMutation) AddedField(name string) (ent.Value, bool) + func (m *GalaxyMutation) AddedFields() []string + func (m *GalaxyMutation) AddedIDs(name string) []ent.Value + func (m *GalaxyMutation) ClearEdge(name string) error + func (m *GalaxyMutation) ClearField(name string) error + func (m *GalaxyMutation) ClearedEdges() []string + func (m *GalaxyMutation) ClearedFields() []string + func (m *GalaxyMutation) EdgeCleared(name string) bool + func (m *GalaxyMutation) Field(name string) (ent.Value, bool) + func (m *GalaxyMutation) FieldCleared(name string) bool + func (m *GalaxyMutation) Fields() []string + func (m *GalaxyMutation) GetType() (r galaxy.Type, exists bool) + func (m *GalaxyMutation) ID() (id int, exists bool) + func (m *GalaxyMutation) Name() (r string, exists bool) + func (m *GalaxyMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *GalaxyMutation) OldName(ctx context.Context) (v string, err error) + func (m *GalaxyMutation) OldType(ctx context.Context) (v galaxy.Type, err error) + func (m *GalaxyMutation) Op() Op + func (m *GalaxyMutation) PlanetsIDs() (ids []int) + func (m *GalaxyMutation) RemovePlanetIDs(ids ...int) + func (m *GalaxyMutation) RemovedEdges() []string + func (m *GalaxyMutation) RemovedIDs(name string) []ent.Value + func (m *GalaxyMutation) RemovedPlanetsIDs() (ids []int) + func (m *GalaxyMutation) ResetEdge(name string) error + func (m *GalaxyMutation) ResetField(name string) error + func (m *GalaxyMutation) ResetName() + func (m *GalaxyMutation) ResetPlanets() + func (m *GalaxyMutation) ResetType() + func (m *GalaxyMutation) SetField(name string, value ent.Value) error + func (m *GalaxyMutation) SetName(s string) + func (m *GalaxyMutation) SetType(ga galaxy.Type) + func (m *GalaxyMutation) Type() string + func (m GalaxyMutation) Client() *Client + func (m GalaxyMutation) Tx() (*Tx, error) + type GalaxyQuery struct + func (gq *GalaxyQuery) All(ctx context.Context) ([]*Galaxy, error) + func (gq *GalaxyQuery) AllX(ctx context.Context) []*Galaxy + func (gq *GalaxyQuery) Clone() *GalaxyQuery + func (gq *GalaxyQuery) Count(ctx context.Context) (int, error) + func (gq *GalaxyQuery) CountX(ctx context.Context) int + func (gq *GalaxyQuery) Exist(ctx context.Context) (bool, error) + func (gq *GalaxyQuery) ExistX(ctx context.Context) bool + func (gq *GalaxyQuery) First(ctx context.Context) (*Galaxy, error) + func (gq *GalaxyQuery) FirstID(ctx context.Context) (id int, err error) + func (gq *GalaxyQuery) FirstX(ctx context.Context) *Galaxy + func (gq *GalaxyQuery) FirstXID(ctx context.Context) int + func (gq *GalaxyQuery) GroupBy(field string, fields ...string) *GalaxyGroupBy + func (gq *GalaxyQuery) IDs(ctx context.Context) ([]int, error) + func (gq *GalaxyQuery) IDsX(ctx context.Context) []int + func (gq *GalaxyQuery) Limit(limit int) *GalaxyQuery + func (gq *GalaxyQuery) Offset(offset int) *GalaxyQuery + func (gq *GalaxyQuery) Only(ctx context.Context) (*Galaxy, error) + func (gq *GalaxyQuery) OnlyID(ctx context.Context) (id int, err error) + func (gq *GalaxyQuery) OnlyIDX(ctx context.Context) int + func (gq *GalaxyQuery) OnlyX(ctx context.Context) *Galaxy + func (gq *GalaxyQuery) Order(o ...OrderFunc) *GalaxyQuery + func (gq *GalaxyQuery) QueryPlanets() *PlanetQuery + func (gq *GalaxyQuery) Select(field string, fields ...string) *GalaxySelect + func (gq *GalaxyQuery) Where(ps ...predicate.Galaxy) *GalaxyQuery + func (gq *GalaxyQuery) WithPlanets(opts ...func(*PlanetQuery)) *GalaxyQuery + type GalaxySelect struct + func (gs *GalaxySelect) Bool(ctx context.Context) (_ bool, err error) + func (gs *GalaxySelect) BoolX(ctx context.Context) bool + func (gs *GalaxySelect) Bools(ctx context.Context) ([]bool, error) + func (gs *GalaxySelect) BoolsX(ctx context.Context) []bool + func (gs *GalaxySelect) Float64(ctx context.Context) (_ float64, err error) + func (gs *GalaxySelect) Float64X(ctx context.Context) float64 + func (gs *GalaxySelect) Float64s(ctx context.Context) ([]float64, error) + func (gs *GalaxySelect) Float64sX(ctx context.Context) []float64 + func (gs *GalaxySelect) Int(ctx context.Context) (_ int, err error) + func (gs *GalaxySelect) IntX(ctx context.Context) int + func (gs *GalaxySelect) Ints(ctx context.Context) ([]int, error) + func (gs *GalaxySelect) IntsX(ctx context.Context) []int + func (gs *GalaxySelect) Scan(ctx context.Context, v interface{}) error + func (gs *GalaxySelect) ScanX(ctx context.Context, v interface{}) + func (gs *GalaxySelect) String(ctx context.Context) (_ string, err error) + func (gs *GalaxySelect) StringX(ctx context.Context) string + func (gs *GalaxySelect) Strings(ctx context.Context) ([]string, error) + func (gs *GalaxySelect) StringsX(ctx context.Context) []string + type GalaxyUpdate struct + func (gu *GalaxyUpdate) AddPlanetIDs(ids ...int) *GalaxyUpdate + func (gu *GalaxyUpdate) AddPlanets(p ...*Planet) *GalaxyUpdate + func (gu *GalaxyUpdate) Exec(ctx context.Context) error + func (gu *GalaxyUpdate) ExecX(ctx context.Context) + func (gu *GalaxyUpdate) Mutation() *GalaxyMutation + func (gu *GalaxyUpdate) RemovePlanetIDs(ids ...int) *GalaxyUpdate + func (gu *GalaxyUpdate) RemovePlanets(p ...*Planet) *GalaxyUpdate + func (gu *GalaxyUpdate) Save(ctx context.Context) (int, error) + func (gu *GalaxyUpdate) SaveX(ctx context.Context) int + func (gu *GalaxyUpdate) SetName(s string) *GalaxyUpdate + func (gu *GalaxyUpdate) SetType(ga galaxy.Type) *GalaxyUpdate + func (gu *GalaxyUpdate) Where(ps ...predicate.Galaxy) *GalaxyUpdate + type GalaxyUpdateOne struct + func (guo *GalaxyUpdateOne) AddPlanetIDs(ids ...int) *GalaxyUpdateOne + func (guo *GalaxyUpdateOne) AddPlanets(p ...*Planet) *GalaxyUpdateOne + func (guo *GalaxyUpdateOne) Exec(ctx context.Context) error + func (guo *GalaxyUpdateOne) ExecX(ctx context.Context) + func (guo *GalaxyUpdateOne) Mutation() *GalaxyMutation + func (guo *GalaxyUpdateOne) RemovePlanetIDs(ids ...int) *GalaxyUpdateOne + func (guo *GalaxyUpdateOne) RemovePlanets(p ...*Planet) *GalaxyUpdateOne + func (guo *GalaxyUpdateOne) Save(ctx context.Context) (*Galaxy, error) + func (guo *GalaxyUpdateOne) SaveX(ctx context.Context) *Galaxy + func (guo *GalaxyUpdateOne) SetName(s string) *GalaxyUpdateOne + func (guo *GalaxyUpdateOne) SetType(ga galaxy.Type) *GalaxyUpdateOne + type Hook = ent.Hook + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...interface{})) Option + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Planet struct + Age uint + Edges PlanetEdges + ID int + Name string + func (pl *Planet) QueryNeighbors() *PlanetQuery + func (pl *Planet) String() string + func (pl *Planet) Unwrap() *Planet + func (pl *Planet) Update() *PlanetUpdateOne + type PlanetClient struct + func NewPlanetClient(c config) *PlanetClient + func (c *PlanetClient) Create() *PlanetCreate + func (c *PlanetClient) CreateBulk(builders ...*PlanetCreate) *PlanetCreateBulk + func (c *PlanetClient) Delete() *PlanetDelete + func (c *PlanetClient) DeleteOne(pl *Planet) *PlanetDeleteOne + func (c *PlanetClient) DeleteOneID(id int) *PlanetDeleteOne + func (c *PlanetClient) Get(ctx context.Context, id int) (*Planet, error) + func (c *PlanetClient) GetX(ctx context.Context, id int) *Planet + func (c *PlanetClient) Hooks() []Hook + func (c *PlanetClient) Query() *PlanetQuery + func (c *PlanetClient) QueryNeighbors(pl *Planet) *PlanetQuery + func (c *PlanetClient) Update() *PlanetUpdate + func (c *PlanetClient) UpdateOne(pl *Planet) *PlanetUpdateOne + func (c *PlanetClient) UpdateOneID(id int) *PlanetUpdateOne + func (c *PlanetClient) Use(hooks ...Hook) + type PlanetCreate struct + func (pc *PlanetCreate) AddNeighborIDs(ids ...int) *PlanetCreate + func (pc *PlanetCreate) AddNeighbors(p ...*Planet) *PlanetCreate + func (pc *PlanetCreate) Mutation() *PlanetMutation + func (pc *PlanetCreate) Save(ctx context.Context) (*Planet, error) + func (pc *PlanetCreate) SaveX(ctx context.Context) *Planet + func (pc *PlanetCreate) SetAge(u uint) *PlanetCreate + func (pc *PlanetCreate) SetName(s string) *PlanetCreate + func (pc *PlanetCreate) SetNillableAge(u *uint) *PlanetCreate + type PlanetCreateBulk struct + func (pcb *PlanetCreateBulk) Save(ctx context.Context) ([]*Planet, error) + func (pcb *PlanetCreateBulk) SaveX(ctx context.Context) []*Planet + type PlanetDelete struct + func (pd *PlanetDelete) Exec(ctx context.Context) (int, error) + func (pd *PlanetDelete) ExecX(ctx context.Context) int + func (pd *PlanetDelete) Where(ps ...predicate.Planet) *PlanetDelete + type PlanetDeleteOne struct + func (pdo *PlanetDeleteOne) Exec(ctx context.Context) error + func (pdo *PlanetDeleteOne) ExecX(ctx context.Context) + type PlanetEdges struct + Neighbors []*Planet + func (e PlanetEdges) NeighborsOrErr() ([]*Planet, error) + type PlanetGroupBy struct + func (pgb *PlanetGroupBy) Aggregate(fns ...AggregateFunc) *PlanetGroupBy + func (pgb *PlanetGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (pgb *PlanetGroupBy) BoolX(ctx context.Context) bool + func (pgb *PlanetGroupBy) Bools(ctx context.Context) ([]bool, error) + func (pgb *PlanetGroupBy) BoolsX(ctx context.Context) []bool + func (pgb *PlanetGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (pgb *PlanetGroupBy) Float64X(ctx context.Context) float64 + func (pgb *PlanetGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (pgb *PlanetGroupBy) Float64sX(ctx context.Context) []float64 + func (pgb *PlanetGroupBy) Int(ctx context.Context) (_ int, err error) + func (pgb *PlanetGroupBy) IntX(ctx context.Context) int + func (pgb *PlanetGroupBy) Ints(ctx context.Context) ([]int, error) + func (pgb *PlanetGroupBy) IntsX(ctx context.Context) []int + func (pgb *PlanetGroupBy) Scan(ctx context.Context, v interface{}) error + func (pgb *PlanetGroupBy) ScanX(ctx context.Context, v interface{}) + func (pgb *PlanetGroupBy) String(ctx context.Context) (_ string, err error) + func (pgb *PlanetGroupBy) StringX(ctx context.Context) string + func (pgb *PlanetGroupBy) Strings(ctx context.Context) ([]string, error) + func (pgb *PlanetGroupBy) StringsX(ctx context.Context) []string + type PlanetMutation struct + func (m *PlanetMutation) AddAge(u uint) + func (m *PlanetMutation) AddField(name string, value ent.Value) error + func (m *PlanetMutation) AddNeighborIDs(ids ...int) + func (m *PlanetMutation) AddedAge() (r uint, exists bool) + func (m *PlanetMutation) AddedEdges() []string + func (m *PlanetMutation) AddedField(name string) (ent.Value, bool) + func (m *PlanetMutation) AddedFields() []string + func (m *PlanetMutation) AddedIDs(name string) []ent.Value + func (m *PlanetMutation) Age() (r uint, exists bool) + func (m *PlanetMutation) AgeCleared() bool + func (m *PlanetMutation) ClearAge() + func (m *PlanetMutation) ClearEdge(name string) error + func (m *PlanetMutation) ClearField(name string) error + func (m *PlanetMutation) ClearedEdges() []string + func (m *PlanetMutation) ClearedFields() []string + func (m *PlanetMutation) EdgeCleared(name string) bool + func (m *PlanetMutation) Field(name string) (ent.Value, bool) + func (m *PlanetMutation) FieldCleared(name string) bool + func (m *PlanetMutation) Fields() []string + func (m *PlanetMutation) ID() (id int, exists bool) + func (m *PlanetMutation) Name() (r string, exists bool) + func (m *PlanetMutation) NeighborsIDs() (ids []int) + func (m *PlanetMutation) OldAge(ctx context.Context) (v uint, err error) + func (m *PlanetMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PlanetMutation) OldName(ctx context.Context) (v string, err error) + func (m *PlanetMutation) Op() Op + func (m *PlanetMutation) RemoveNeighborIDs(ids ...int) + func (m *PlanetMutation) RemovedEdges() []string + func (m *PlanetMutation) RemovedIDs(name string) []ent.Value + func (m *PlanetMutation) RemovedNeighborsIDs() (ids []int) + func (m *PlanetMutation) ResetAge() + func (m *PlanetMutation) ResetEdge(name string) error + func (m *PlanetMutation) ResetField(name string) error + func (m *PlanetMutation) ResetName() + func (m *PlanetMutation) ResetNeighbors() + func (m *PlanetMutation) SetAge(u uint) + func (m *PlanetMutation) SetField(name string, value ent.Value) error + func (m *PlanetMutation) SetName(s string) + func (m *PlanetMutation) Type() string + func (m PlanetMutation) Client() *Client + func (m PlanetMutation) Tx() (*Tx, error) + type PlanetQuery struct + func (pq *PlanetQuery) All(ctx context.Context) ([]*Planet, error) + func (pq *PlanetQuery) AllX(ctx context.Context) []*Planet + func (pq *PlanetQuery) Clone() *PlanetQuery + func (pq *PlanetQuery) Count(ctx context.Context) (int, error) + func (pq *PlanetQuery) CountX(ctx context.Context) int + func (pq *PlanetQuery) Exist(ctx context.Context) (bool, error) + func (pq *PlanetQuery) ExistX(ctx context.Context) bool + func (pq *PlanetQuery) First(ctx context.Context) (*Planet, error) + func (pq *PlanetQuery) FirstID(ctx context.Context) (id int, err error) + func (pq *PlanetQuery) FirstX(ctx context.Context) *Planet + func (pq *PlanetQuery) FirstXID(ctx context.Context) int + func (pq *PlanetQuery) GroupBy(field string, fields ...string) *PlanetGroupBy + func (pq *PlanetQuery) IDs(ctx context.Context) ([]int, error) + func (pq *PlanetQuery) IDsX(ctx context.Context) []int + func (pq *PlanetQuery) Limit(limit int) *PlanetQuery + func (pq *PlanetQuery) Offset(offset int) *PlanetQuery + func (pq *PlanetQuery) Only(ctx context.Context) (*Planet, error) + func (pq *PlanetQuery) OnlyID(ctx context.Context) (id int, err error) + func (pq *PlanetQuery) OnlyIDX(ctx context.Context) int + func (pq *PlanetQuery) OnlyX(ctx context.Context) *Planet + func (pq *PlanetQuery) Order(o ...OrderFunc) *PlanetQuery + func (pq *PlanetQuery) QueryNeighbors() *PlanetQuery + func (pq *PlanetQuery) Select(field string, fields ...string) *PlanetSelect + func (pq *PlanetQuery) Where(ps ...predicate.Planet) *PlanetQuery + func (pq *PlanetQuery) WithNeighbors(opts ...func(*PlanetQuery)) *PlanetQuery + type PlanetSelect struct + func (ps *PlanetSelect) Bool(ctx context.Context) (_ bool, err error) + func (ps *PlanetSelect) BoolX(ctx context.Context) bool + func (ps *PlanetSelect) Bools(ctx context.Context) ([]bool, error) + func (ps *PlanetSelect) BoolsX(ctx context.Context) []bool + func (ps *PlanetSelect) Float64(ctx context.Context) (_ float64, err error) + func (ps *PlanetSelect) Float64X(ctx context.Context) float64 + func (ps *PlanetSelect) Float64s(ctx context.Context) ([]float64, error) + func (ps *PlanetSelect) Float64sX(ctx context.Context) []float64 + func (ps *PlanetSelect) Int(ctx context.Context) (_ int, err error) + func (ps *PlanetSelect) IntX(ctx context.Context) int + func (ps *PlanetSelect) Ints(ctx context.Context) ([]int, error) + func (ps *PlanetSelect) IntsX(ctx context.Context) []int + func (ps *PlanetSelect) Scan(ctx context.Context, v interface{}) error + func (ps *PlanetSelect) ScanX(ctx context.Context, v interface{}) + func (ps *PlanetSelect) String(ctx context.Context) (_ string, err error) + func (ps *PlanetSelect) StringX(ctx context.Context) string + func (ps *PlanetSelect) Strings(ctx context.Context) ([]string, error) + func (ps *PlanetSelect) StringsX(ctx context.Context) []string + type PlanetUpdate struct + func (pu *PlanetUpdate) AddAge(u uint) *PlanetUpdate + func (pu *PlanetUpdate) AddNeighborIDs(ids ...int) *PlanetUpdate + func (pu *PlanetUpdate) AddNeighbors(p ...*Planet) *PlanetUpdate + func (pu *PlanetUpdate) ClearAge() *PlanetUpdate + func (pu *PlanetUpdate) Exec(ctx context.Context) error + func (pu *PlanetUpdate) ExecX(ctx context.Context) + func (pu *PlanetUpdate) Mutation() *PlanetMutation + func (pu *PlanetUpdate) RemoveNeighborIDs(ids ...int) *PlanetUpdate + func (pu *PlanetUpdate) RemoveNeighbors(p ...*Planet) *PlanetUpdate + func (pu *PlanetUpdate) Save(ctx context.Context) (int, error) + func (pu *PlanetUpdate) SaveX(ctx context.Context) int + func (pu *PlanetUpdate) SetAge(u uint) *PlanetUpdate + func (pu *PlanetUpdate) SetNillableAge(u *uint) *PlanetUpdate + func (pu *PlanetUpdate) Where(ps ...predicate.Planet) *PlanetUpdate + type PlanetUpdateOne struct + func (puo *PlanetUpdateOne) AddAge(u uint) *PlanetUpdateOne + func (puo *PlanetUpdateOne) AddNeighborIDs(ids ...int) *PlanetUpdateOne + func (puo *PlanetUpdateOne) AddNeighbors(p ...*Planet) *PlanetUpdateOne + func (puo *PlanetUpdateOne) ClearAge() *PlanetUpdateOne + func (puo *PlanetUpdateOne) Exec(ctx context.Context) error + func (puo *PlanetUpdateOne) ExecX(ctx context.Context) + func (puo *PlanetUpdateOne) Mutation() *PlanetMutation + func (puo *PlanetUpdateOne) RemoveNeighborIDs(ids ...int) *PlanetUpdateOne + func (puo *PlanetUpdateOne) RemoveNeighbors(p ...*Planet) *PlanetUpdateOne + func (puo *PlanetUpdateOne) Save(ctx context.Context) (*Planet, error) + func (puo *PlanetUpdateOne) SaveX(ctx context.Context) *Planet + func (puo *PlanetUpdateOne) SetAge(u uint) *PlanetUpdateOne + func (puo *PlanetUpdateOne) SetNillableAge(u *uint) *PlanetUpdateOne + type Planets []*Planet + type Policy = ent.Policy + type Query = ent.Query + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Tx struct + Galaxy *GalaxyClient + Planet *PlanetClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value