Versions in this module Expand all Collapse all v0 v0.5.4 Jan 6, 2021 v0.5.3 Dec 13, 2020 v0.5.2 Dec 11, 2020 v0.5.1 Nov 29, 2020 v0.5.0 Nov 3, 2020 Changes in this version type CityQuery + func (cq *CityQuery) FirstIDX(ctx context.Context) int type StreetQuery + func (sq *StreetQuery) FirstIDX(ctx context.Context) int v0.4.3 Sep 21, 2020 Changes in this version type CityMutation + func (m *CityMutation) ClearStreets() + func (m *CityMutation) StreetsCleared() bool type CityUpdate + func (cu *CityUpdate) ClearStreets() *CityUpdate type CityUpdateOne + func (cuo *CityUpdateOne) ClearStreets() *CityUpdateOne v0.4.2 Aug 30, 2020 v0.4.1 Aug 30, 2020 v0.4.0 Aug 18, 2020 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCity + const TypeStreet + 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 Cities []*City + type City struct + Edges CityEdges + ID int + Name string + func (c *City) QueryStreets() *StreetQuery + func (c *City) String() string + func (c *City) Unwrap() *City + func (c *City) Update() *CityUpdateOne + type CityClient struct + func NewCityClient(c config) *CityClient + func (c *CityClient) Create() *CityCreate + func (c *CityClient) CreateBulk(builders ...*CityCreate) *CityCreateBulk + func (c *CityClient) Delete() *CityDelete + func (c *CityClient) DeleteOne(ci *City) *CityDeleteOne + func (c *CityClient) DeleteOneID(id int) *CityDeleteOne + func (c *CityClient) Get(ctx context.Context, id int) (*City, error) + func (c *CityClient) GetX(ctx context.Context, id int) *City + func (c *CityClient) Hooks() []Hook + func (c *CityClient) Query() *CityQuery + func (c *CityClient) QueryStreets(ci *City) *StreetQuery + func (c *CityClient) Update() *CityUpdate + func (c *CityClient) UpdateOne(ci *City) *CityUpdateOne + func (c *CityClient) UpdateOneID(id int) *CityUpdateOne + func (c *CityClient) Use(hooks ...Hook) + type CityCreate struct + func (cc *CityCreate) AddStreetIDs(ids ...int) *CityCreate + func (cc *CityCreate) AddStreets(s ...*Street) *CityCreate + func (cc *CityCreate) Mutation() *CityMutation + func (cc *CityCreate) Save(ctx context.Context) (*City, error) + func (cc *CityCreate) SaveX(ctx context.Context) *City + func (cc *CityCreate) SetName(s string) *CityCreate + type CityCreateBulk struct + func (ccb *CityCreateBulk) Save(ctx context.Context) ([]*City, error) + func (ccb *CityCreateBulk) SaveX(ctx context.Context) []*City + type CityDelete struct + func (cd *CityDelete) Exec(ctx context.Context) (int, error) + func (cd *CityDelete) ExecX(ctx context.Context) int + func (cd *CityDelete) Where(ps ...predicate.City) *CityDelete + type CityDeleteOne struct + func (cdo *CityDeleteOne) Exec(ctx context.Context) error + func (cdo *CityDeleteOne) ExecX(ctx context.Context) + type CityEdges struct + Streets []*Street + func (e CityEdges) StreetsOrErr() ([]*Street, error) + type CityGroupBy struct + func (cgb *CityGroupBy) Aggregate(fns ...AggregateFunc) *CityGroupBy + func (cgb *CityGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *CityGroupBy) BoolX(ctx context.Context) bool + func (cgb *CityGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *CityGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *CityGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *CityGroupBy) Float64X(ctx context.Context) float64 + func (cgb *CityGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *CityGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *CityGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *CityGroupBy) IntX(ctx context.Context) int + func (cgb *CityGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *CityGroupBy) IntsX(ctx context.Context) []int + func (cgb *CityGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *CityGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *CityGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *CityGroupBy) StringX(ctx context.Context) string + func (cgb *CityGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *CityGroupBy) StringsX(ctx context.Context) []string + type CityMutation struct + func (m *CityMutation) AddField(name string, value ent.Value) error + func (m *CityMutation) AddStreetIDs(ids ...int) + func (m *CityMutation) AddedEdges() []string + func (m *CityMutation) AddedField(name string) (ent.Value, bool) + func (m *CityMutation) AddedFields() []string + func (m *CityMutation) AddedIDs(name string) []ent.Value + func (m *CityMutation) ClearEdge(name string) error + func (m *CityMutation) ClearField(name string) error + func (m *CityMutation) ClearedEdges() []string + func (m *CityMutation) ClearedFields() []string + func (m *CityMutation) EdgeCleared(name string) bool + func (m *CityMutation) Field(name string) (ent.Value, bool) + func (m *CityMutation) FieldCleared(name string) bool + func (m *CityMutation) Fields() []string + func (m *CityMutation) ID() (id int, exists bool) + func (m *CityMutation) Name() (r string, exists bool) + func (m *CityMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CityMutation) OldName(ctx context.Context) (v string, err error) + func (m *CityMutation) Op() Op + func (m *CityMutation) RemoveStreetIDs(ids ...int) + func (m *CityMutation) RemovedEdges() []string + func (m *CityMutation) RemovedIDs(name string) []ent.Value + func (m *CityMutation) RemovedStreetsIDs() (ids []int) + func (m *CityMutation) ResetEdge(name string) error + func (m *CityMutation) ResetField(name string) error + func (m *CityMutation) ResetName() + func (m *CityMutation) ResetStreets() + func (m *CityMutation) SetField(name string, value ent.Value) error + func (m *CityMutation) SetName(s string) + func (m *CityMutation) StreetsIDs() (ids []int) + func (m *CityMutation) Type() string + func (m CityMutation) Client() *Client + func (m CityMutation) Tx() (*Tx, error) + type CityQuery struct + func (cq *CityQuery) All(ctx context.Context) ([]*City, error) + func (cq *CityQuery) AllX(ctx context.Context) []*City + func (cq *CityQuery) Clone() *CityQuery + func (cq *CityQuery) Count(ctx context.Context) (int, error) + func (cq *CityQuery) CountX(ctx context.Context) int + func (cq *CityQuery) Exist(ctx context.Context) (bool, error) + func (cq *CityQuery) ExistX(ctx context.Context) bool + func (cq *CityQuery) First(ctx context.Context) (*City, error) + func (cq *CityQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CityQuery) FirstX(ctx context.Context) *City + func (cq *CityQuery) FirstXID(ctx context.Context) int + func (cq *CityQuery) GroupBy(field string, fields ...string) *CityGroupBy + func (cq *CityQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CityQuery) IDsX(ctx context.Context) []int + func (cq *CityQuery) Limit(limit int) *CityQuery + func (cq *CityQuery) Offset(offset int) *CityQuery + func (cq *CityQuery) Only(ctx context.Context) (*City, error) + func (cq *CityQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CityQuery) OnlyIDX(ctx context.Context) int + func (cq *CityQuery) OnlyX(ctx context.Context) *City + func (cq *CityQuery) Order(o ...OrderFunc) *CityQuery + func (cq *CityQuery) QueryStreets() *StreetQuery + func (cq *CityQuery) Select(field string, fields ...string) *CitySelect + func (cq *CityQuery) Where(ps ...predicate.City) *CityQuery + func (cq *CityQuery) WithStreets(opts ...func(*StreetQuery)) *CityQuery + type CitySelect struct + func (cs *CitySelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *CitySelect) BoolX(ctx context.Context) bool + func (cs *CitySelect) Bools(ctx context.Context) ([]bool, error) + func (cs *CitySelect) BoolsX(ctx context.Context) []bool + func (cs *CitySelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *CitySelect) Float64X(ctx context.Context) float64 + func (cs *CitySelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *CitySelect) Float64sX(ctx context.Context) []float64 + func (cs *CitySelect) Int(ctx context.Context) (_ int, err error) + func (cs *CitySelect) IntX(ctx context.Context) int + func (cs *CitySelect) Ints(ctx context.Context) ([]int, error) + func (cs *CitySelect) IntsX(ctx context.Context) []int + func (cs *CitySelect) Scan(ctx context.Context, v interface{}) error + func (cs *CitySelect) ScanX(ctx context.Context, v interface{}) + func (cs *CitySelect) String(ctx context.Context) (_ string, err error) + func (cs *CitySelect) StringX(ctx context.Context) string + func (cs *CitySelect) Strings(ctx context.Context) ([]string, error) + func (cs *CitySelect) StringsX(ctx context.Context) []string + type CityUpdate struct + func (cu *CityUpdate) AddStreetIDs(ids ...int) *CityUpdate + func (cu *CityUpdate) AddStreets(s ...*Street) *CityUpdate + func (cu *CityUpdate) Exec(ctx context.Context) error + func (cu *CityUpdate) ExecX(ctx context.Context) + func (cu *CityUpdate) Mutation() *CityMutation + func (cu *CityUpdate) RemoveStreetIDs(ids ...int) *CityUpdate + func (cu *CityUpdate) RemoveStreets(s ...*Street) *CityUpdate + func (cu *CityUpdate) Save(ctx context.Context) (int, error) + func (cu *CityUpdate) SaveX(ctx context.Context) int + func (cu *CityUpdate) SetName(s string) *CityUpdate + func (cu *CityUpdate) Where(ps ...predicate.City) *CityUpdate + type CityUpdateOne struct + func (cuo *CityUpdateOne) AddStreetIDs(ids ...int) *CityUpdateOne + func (cuo *CityUpdateOne) AddStreets(s ...*Street) *CityUpdateOne + func (cuo *CityUpdateOne) Exec(ctx context.Context) error + func (cuo *CityUpdateOne) ExecX(ctx context.Context) + func (cuo *CityUpdateOne) Mutation() *CityMutation + func (cuo *CityUpdateOne) RemoveStreetIDs(ids ...int) *CityUpdateOne + func (cuo *CityUpdateOne) RemoveStreets(s ...*Street) *CityUpdateOne + func (cuo *CityUpdateOne) Save(ctx context.Context) (*City, error) + func (cuo *CityUpdateOne) SaveX(ctx context.Context) *City + func (cuo *CityUpdateOne) SetName(s string) *CityUpdateOne + type Client struct + City *CityClient + Schema *migrate.Schema + Street *StreetClient + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type 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 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 Street struct + Edges StreetEdges + ID int + Name string + func (s *Street) QueryCity() *CityQuery + func (s *Street) String() string + func (s *Street) Unwrap() *Street + func (s *Street) Update() *StreetUpdateOne + type StreetClient struct + func NewStreetClient(c config) *StreetClient + func (c *StreetClient) Create() *StreetCreate + func (c *StreetClient) CreateBulk(builders ...*StreetCreate) *StreetCreateBulk + func (c *StreetClient) Delete() *StreetDelete + func (c *StreetClient) DeleteOne(s *Street) *StreetDeleteOne + func (c *StreetClient) DeleteOneID(id int) *StreetDeleteOne + func (c *StreetClient) Get(ctx context.Context, id int) (*Street, error) + func (c *StreetClient) GetX(ctx context.Context, id int) *Street + func (c *StreetClient) Hooks() []Hook + func (c *StreetClient) Query() *StreetQuery + func (c *StreetClient) QueryCity(s *Street) *CityQuery + func (c *StreetClient) Update() *StreetUpdate + func (c *StreetClient) UpdateOne(s *Street) *StreetUpdateOne + func (c *StreetClient) UpdateOneID(id int) *StreetUpdateOne + func (c *StreetClient) Use(hooks ...Hook) + type StreetCreate struct + func (sc *StreetCreate) Mutation() *StreetMutation + func (sc *StreetCreate) Save(ctx context.Context) (*Street, error) + func (sc *StreetCreate) SaveX(ctx context.Context) *Street + func (sc *StreetCreate) SetCity(c *City) *StreetCreate + func (sc *StreetCreate) SetCityID(id int) *StreetCreate + func (sc *StreetCreate) SetName(s string) *StreetCreate + func (sc *StreetCreate) SetNillableCityID(id *int) *StreetCreate + type StreetCreateBulk struct + func (scb *StreetCreateBulk) Save(ctx context.Context) ([]*Street, error) + func (scb *StreetCreateBulk) SaveX(ctx context.Context) []*Street + type StreetDelete struct + func (sd *StreetDelete) Exec(ctx context.Context) (int, error) + func (sd *StreetDelete) ExecX(ctx context.Context) int + func (sd *StreetDelete) Where(ps ...predicate.Street) *StreetDelete + type StreetDeleteOne struct + func (sdo *StreetDeleteOne) Exec(ctx context.Context) error + func (sdo *StreetDeleteOne) ExecX(ctx context.Context) + type StreetEdges struct + City *City + func (e StreetEdges) CityOrErr() (*City, error) + type StreetGroupBy struct + func (sgb *StreetGroupBy) Aggregate(fns ...AggregateFunc) *StreetGroupBy + func (sgb *StreetGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (sgb *StreetGroupBy) BoolX(ctx context.Context) bool + func (sgb *StreetGroupBy) Bools(ctx context.Context) ([]bool, error) + func (sgb *StreetGroupBy) BoolsX(ctx context.Context) []bool + func (sgb *StreetGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (sgb *StreetGroupBy) Float64X(ctx context.Context) float64 + func (sgb *StreetGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (sgb *StreetGroupBy) Float64sX(ctx context.Context) []float64 + func (sgb *StreetGroupBy) Int(ctx context.Context) (_ int, err error) + func (sgb *StreetGroupBy) IntX(ctx context.Context) int + func (sgb *StreetGroupBy) Ints(ctx context.Context) ([]int, error) + func (sgb *StreetGroupBy) IntsX(ctx context.Context) []int + func (sgb *StreetGroupBy) Scan(ctx context.Context, v interface{}) error + func (sgb *StreetGroupBy) ScanX(ctx context.Context, v interface{}) + func (sgb *StreetGroupBy) String(ctx context.Context) (_ string, err error) + func (sgb *StreetGroupBy) StringX(ctx context.Context) string + func (sgb *StreetGroupBy) Strings(ctx context.Context) ([]string, error) + func (sgb *StreetGroupBy) StringsX(ctx context.Context) []string + type StreetMutation struct + func (m *StreetMutation) AddField(name string, value ent.Value) error + func (m *StreetMutation) AddedEdges() []string + func (m *StreetMutation) AddedField(name string) (ent.Value, bool) + func (m *StreetMutation) AddedFields() []string + func (m *StreetMutation) AddedIDs(name string) []ent.Value + func (m *StreetMutation) CityCleared() bool + func (m *StreetMutation) CityID() (id int, exists bool) + func (m *StreetMutation) CityIDs() (ids []int) + func (m *StreetMutation) ClearCity() + func (m *StreetMutation) ClearEdge(name string) error + func (m *StreetMutation) ClearField(name string) error + func (m *StreetMutation) ClearedEdges() []string + func (m *StreetMutation) ClearedFields() []string + func (m *StreetMutation) EdgeCleared(name string) bool + func (m *StreetMutation) Field(name string) (ent.Value, bool) + func (m *StreetMutation) FieldCleared(name string) bool + func (m *StreetMutation) Fields() []string + func (m *StreetMutation) ID() (id int, exists bool) + func (m *StreetMutation) Name() (r string, exists bool) + func (m *StreetMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *StreetMutation) OldName(ctx context.Context) (v string, err error) + func (m *StreetMutation) Op() Op + func (m *StreetMutation) RemovedEdges() []string + func (m *StreetMutation) RemovedIDs(name string) []ent.Value + func (m *StreetMutation) ResetCity() + func (m *StreetMutation) ResetEdge(name string) error + func (m *StreetMutation) ResetField(name string) error + func (m *StreetMutation) ResetName() + func (m *StreetMutation) SetCityID(id int) + func (m *StreetMutation) SetField(name string, value ent.Value) error + func (m *StreetMutation) SetName(s string) + func (m *StreetMutation) Type() string + func (m StreetMutation) Client() *Client + func (m StreetMutation) Tx() (*Tx, error) + type StreetQuery struct + func (sq *StreetQuery) All(ctx context.Context) ([]*Street, error) + func (sq *StreetQuery) AllX(ctx context.Context) []*Street + func (sq *StreetQuery) Clone() *StreetQuery + func (sq *StreetQuery) Count(ctx context.Context) (int, error) + func (sq *StreetQuery) CountX(ctx context.Context) int + func (sq *StreetQuery) Exist(ctx context.Context) (bool, error) + func (sq *StreetQuery) ExistX(ctx context.Context) bool + func (sq *StreetQuery) First(ctx context.Context) (*Street, error) + func (sq *StreetQuery) FirstID(ctx context.Context) (id int, err error) + func (sq *StreetQuery) FirstX(ctx context.Context) *Street + func (sq *StreetQuery) FirstXID(ctx context.Context) int + func (sq *StreetQuery) GroupBy(field string, fields ...string) *StreetGroupBy + func (sq *StreetQuery) IDs(ctx context.Context) ([]int, error) + func (sq *StreetQuery) IDsX(ctx context.Context) []int + func (sq *StreetQuery) Limit(limit int) *StreetQuery + func (sq *StreetQuery) Offset(offset int) *StreetQuery + func (sq *StreetQuery) Only(ctx context.Context) (*Street, error) + func (sq *StreetQuery) OnlyID(ctx context.Context) (id int, err error) + func (sq *StreetQuery) OnlyIDX(ctx context.Context) int + func (sq *StreetQuery) OnlyX(ctx context.Context) *Street + func (sq *StreetQuery) Order(o ...OrderFunc) *StreetQuery + func (sq *StreetQuery) QueryCity() *CityQuery + func (sq *StreetQuery) Select(field string, fields ...string) *StreetSelect + func (sq *StreetQuery) Where(ps ...predicate.Street) *StreetQuery + func (sq *StreetQuery) WithCity(opts ...func(*CityQuery)) *StreetQuery + type StreetSelect struct + func (ss *StreetSelect) Bool(ctx context.Context) (_ bool, err error) + func (ss *StreetSelect) BoolX(ctx context.Context) bool + func (ss *StreetSelect) Bools(ctx context.Context) ([]bool, error) + func (ss *StreetSelect) BoolsX(ctx context.Context) []bool + func (ss *StreetSelect) Float64(ctx context.Context) (_ float64, err error) + func (ss *StreetSelect) Float64X(ctx context.Context) float64 + func (ss *StreetSelect) Float64s(ctx context.Context) ([]float64, error) + func (ss *StreetSelect) Float64sX(ctx context.Context) []float64 + func (ss *StreetSelect) Int(ctx context.Context) (_ int, err error) + func (ss *StreetSelect) IntX(ctx context.Context) int + func (ss *StreetSelect) Ints(ctx context.Context) ([]int, error) + func (ss *StreetSelect) IntsX(ctx context.Context) []int + func (ss *StreetSelect) Scan(ctx context.Context, v interface{}) error + func (ss *StreetSelect) ScanX(ctx context.Context, v interface{}) + func (ss *StreetSelect) String(ctx context.Context) (_ string, err error) + func (ss *StreetSelect) StringX(ctx context.Context) string + func (ss *StreetSelect) Strings(ctx context.Context) ([]string, error) + func (ss *StreetSelect) StringsX(ctx context.Context) []string + type StreetUpdate struct + func (su *StreetUpdate) ClearCity() *StreetUpdate + func (su *StreetUpdate) Exec(ctx context.Context) error + func (su *StreetUpdate) ExecX(ctx context.Context) + func (su *StreetUpdate) Mutation() *StreetMutation + func (su *StreetUpdate) Save(ctx context.Context) (int, error) + func (su *StreetUpdate) SaveX(ctx context.Context) int + func (su *StreetUpdate) SetCity(c *City) *StreetUpdate + func (su *StreetUpdate) SetCityID(id int) *StreetUpdate + func (su *StreetUpdate) SetName(s string) *StreetUpdate + func (su *StreetUpdate) SetNillableCityID(id *int) *StreetUpdate + func (su *StreetUpdate) Where(ps ...predicate.Street) *StreetUpdate + type StreetUpdateOne struct + func (suo *StreetUpdateOne) ClearCity() *StreetUpdateOne + func (suo *StreetUpdateOne) Exec(ctx context.Context) error + func (suo *StreetUpdateOne) ExecX(ctx context.Context) + func (suo *StreetUpdateOne) Mutation() *StreetMutation + func (suo *StreetUpdateOne) Save(ctx context.Context) (*Street, error) + func (suo *StreetUpdateOne) SaveX(ctx context.Context) *Street + func (suo *StreetUpdateOne) SetCity(c *City) *StreetUpdateOne + func (suo *StreetUpdateOne) SetCityID(id int) *StreetUpdateOne + func (suo *StreetUpdateOne) SetName(s string) *StreetUpdateOne + func (suo *StreetUpdateOne) SetNillableCityID(id *int) *StreetUpdateOne + type Streets []*Street + type Tx struct + City *CityClient + Street *StreetClient + 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