Versions in this module Expand all Collapse all v0 v0.8.0 Jan 29, 2025 v0.7.0 Jan 17, 2025 v0.6.0 Jan 9, 2025 v0.5.0 Nov 29, 2024 v0.4.0 Nov 15, 2024 v0.3.0 Oct 29, 2024 v0.2.0 Oct 23, 2024 v0.1.0 Oct 2, 2024 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeLocation + const TypePkg + var ErrTxStarted = errors.New("db: cannot start a transaction within a transaction") + func Asc(fields ...string) func(*sql.Selector) + func Desc(fields ...string) func(*sql.Selector) + 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 + Location *LocationClient + Pkg *PkgClient + 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) Intercept(interceptors ...Interceptor) + func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) + 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 InterceptFunc = ent.InterceptFunc + type Interceptor = ent.Interceptor + type Location struct + Config types.LocationConfig + CreatedAt time.Time + Description string + Edges LocationEdges + ID int + Name string + Purpose types.LocationPurpose + Source types.LocationSource + UUID uuid.UUID + func (l *Location) QueryPackages() *PkgQuery + func (l *Location) String() string + func (l *Location) Unwrap() *Location + func (l *Location) Update() *LocationUpdateOne + func (l *Location) Value(name string) (ent.Value, error) + type LocationClient struct + func NewLocationClient(c config) *LocationClient + func (c *LocationClient) Create() *LocationCreate + func (c *LocationClient) CreateBulk(builders ...*LocationCreate) *LocationCreateBulk + func (c *LocationClient) Delete() *LocationDelete + func (c *LocationClient) DeleteOne(l *Location) *LocationDeleteOne + func (c *LocationClient) DeleteOneID(id int) *LocationDeleteOne + func (c *LocationClient) Get(ctx context.Context, id int) (*Location, error) + func (c *LocationClient) GetX(ctx context.Context, id int) *Location + func (c *LocationClient) Hooks() []Hook + func (c *LocationClient) Intercept(interceptors ...Interceptor) + func (c *LocationClient) Interceptors() []Interceptor + func (c *LocationClient) MapCreateBulk(slice any, setFunc func(*LocationCreate, int)) *LocationCreateBulk + func (c *LocationClient) Query() *LocationQuery + func (c *LocationClient) QueryPackages(l *Location) *PkgQuery + func (c *LocationClient) Update() *LocationUpdate + func (c *LocationClient) UpdateOne(l *Location) *LocationUpdateOne + func (c *LocationClient) UpdateOneID(id int) *LocationUpdateOne + func (c *LocationClient) Use(hooks ...Hook) + type LocationCreate struct + func (lc *LocationCreate) AddPackageIDs(ids ...int) *LocationCreate + func (lc *LocationCreate) AddPackages(p ...*Pkg) *LocationCreate + func (lc *LocationCreate) Exec(ctx context.Context) error + func (lc *LocationCreate) ExecX(ctx context.Context) + func (lc *LocationCreate) Mutation() *LocationMutation + func (lc *LocationCreate) Save(ctx context.Context) (*Location, error) + func (lc *LocationCreate) SaveX(ctx context.Context) *Location + func (lc *LocationCreate) SetConfig(tc types.LocationConfig) *LocationCreate + func (lc *LocationCreate) SetCreatedAt(t time.Time) *LocationCreate + func (lc *LocationCreate) SetDescription(s string) *LocationCreate + func (lc *LocationCreate) SetName(s string) *LocationCreate + func (lc *LocationCreate) SetNillableCreatedAt(t *time.Time) *LocationCreate + func (lc *LocationCreate) SetPurpose(tp types.LocationPurpose) *LocationCreate + func (lc *LocationCreate) SetSource(ts types.LocationSource) *LocationCreate + func (lc *LocationCreate) SetUUID(u uuid.UUID) *LocationCreate + type LocationCreateBulk struct + func (lcb *LocationCreateBulk) Exec(ctx context.Context) error + func (lcb *LocationCreateBulk) ExecX(ctx context.Context) + func (lcb *LocationCreateBulk) Save(ctx context.Context) ([]*Location, error) + func (lcb *LocationCreateBulk) SaveX(ctx context.Context) []*Location + type LocationDelete struct + func (ld *LocationDelete) Exec(ctx context.Context) (int, error) + func (ld *LocationDelete) ExecX(ctx context.Context) int + func (ld *LocationDelete) Where(ps ...predicate.Location) *LocationDelete + type LocationDeleteOne struct + func (ldo *LocationDeleteOne) Exec(ctx context.Context) error + func (ldo *LocationDeleteOne) ExecX(ctx context.Context) + func (ldo *LocationDeleteOne) Where(ps ...predicate.Location) *LocationDeleteOne + type LocationEdges struct + Packages []*Pkg + func (e LocationEdges) PackagesOrErr() ([]*Pkg, error) + type LocationGroupBy struct + func (lgb *LocationGroupBy) Aggregate(fns ...AggregateFunc) *LocationGroupBy + func (lgb *LocationGroupBy) Scan(ctx context.Context, v any) error + func (s *LocationGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *LocationGroupBy) BoolX(ctx context.Context) bool + func (s *LocationGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *LocationGroupBy) BoolsX(ctx context.Context) []bool + func (s *LocationGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *LocationGroupBy) Float64X(ctx context.Context) float64 + func (s *LocationGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *LocationGroupBy) Float64sX(ctx context.Context) []float64 + func (s *LocationGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *LocationGroupBy) IntX(ctx context.Context) int + func (s *LocationGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *LocationGroupBy) IntsX(ctx context.Context) []int + func (s *LocationGroupBy) ScanX(ctx context.Context, v any) + func (s *LocationGroupBy) String(ctx context.Context) (_ string, err error) + func (s *LocationGroupBy) StringX(ctx context.Context) string + func (s *LocationGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *LocationGroupBy) StringsX(ctx context.Context) []string + type LocationMutation struct + func (m *LocationMutation) AddField(name string, value ent.Value) error + func (m *LocationMutation) AddPackageIDs(ids ...int) + func (m *LocationMutation) AddedEdges() []string + func (m *LocationMutation) AddedField(name string) (ent.Value, bool) + func (m *LocationMutation) AddedFields() []string + func (m *LocationMutation) AddedIDs(name string) []ent.Value + func (m *LocationMutation) ClearEdge(name string) error + func (m *LocationMutation) ClearField(name string) error + func (m *LocationMutation) ClearPackages() + func (m *LocationMutation) ClearedEdges() []string + func (m *LocationMutation) ClearedFields() []string + func (m *LocationMutation) Config() (r types.LocationConfig, exists bool) + func (m *LocationMutation) CreatedAt() (r time.Time, exists bool) + func (m *LocationMutation) Description() (r string, exists bool) + func (m *LocationMutation) EdgeCleared(name string) bool + func (m *LocationMutation) Field(name string) (ent.Value, bool) + func (m *LocationMutation) FieldCleared(name string) bool + func (m *LocationMutation) Fields() []string + func (m *LocationMutation) ID() (id int, exists bool) + func (m *LocationMutation) IDs(ctx context.Context) ([]int, error) + func (m *LocationMutation) Name() (r string, exists bool) + func (m *LocationMutation) OldConfig(ctx context.Context) (v types.LocationConfig, err error) + func (m *LocationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *LocationMutation) OldDescription(ctx context.Context) (v string, err error) + func (m *LocationMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *LocationMutation) OldName(ctx context.Context) (v string, err error) + func (m *LocationMutation) OldPurpose(ctx context.Context) (v types.LocationPurpose, err error) + func (m *LocationMutation) OldSource(ctx context.Context) (v types.LocationSource, err error) + func (m *LocationMutation) OldUUID(ctx context.Context) (v uuid.UUID, err error) + func (m *LocationMutation) Op() Op + func (m *LocationMutation) PackagesCleared() bool + func (m *LocationMutation) PackagesIDs() (ids []int) + func (m *LocationMutation) Purpose() (r types.LocationPurpose, exists bool) + func (m *LocationMutation) RemovePackageIDs(ids ...int) + func (m *LocationMutation) RemovedEdges() []string + func (m *LocationMutation) RemovedIDs(name string) []ent.Value + func (m *LocationMutation) RemovedPackagesIDs() (ids []int) + func (m *LocationMutation) ResetConfig() + func (m *LocationMutation) ResetCreatedAt() + func (m *LocationMutation) ResetDescription() + func (m *LocationMutation) ResetEdge(name string) error + func (m *LocationMutation) ResetField(name string) error + func (m *LocationMutation) ResetName() + func (m *LocationMutation) ResetPackages() + func (m *LocationMutation) ResetPurpose() + func (m *LocationMutation) ResetSource() + func (m *LocationMutation) ResetUUID() + func (m *LocationMutation) SetConfig(tc types.LocationConfig) + func (m *LocationMutation) SetCreatedAt(t time.Time) + func (m *LocationMutation) SetDescription(s string) + func (m *LocationMutation) SetField(name string, value ent.Value) error + func (m *LocationMutation) SetName(s string) + func (m *LocationMutation) SetOp(op Op) + func (m *LocationMutation) SetPurpose(tp types.LocationPurpose) + func (m *LocationMutation) SetSource(ts types.LocationSource) + func (m *LocationMutation) SetUUID(u uuid.UUID) + func (m *LocationMutation) Source() (r types.LocationSource, exists bool) + func (m *LocationMutation) Type() string + func (m *LocationMutation) UUID() (r uuid.UUID, exists bool) + func (m *LocationMutation) Where(ps ...predicate.Location) + func (m *LocationMutation) WhereP(ps ...func(*sql.Selector)) + func (m LocationMutation) Client() *Client + func (m LocationMutation) Tx() (*Tx, error) + type LocationQuery struct + func (lq *LocationQuery) Aggregate(fns ...AggregateFunc) *LocationSelect + func (lq *LocationQuery) All(ctx context.Context) ([]*Location, error) + func (lq *LocationQuery) AllX(ctx context.Context) []*Location + func (lq *LocationQuery) Clone() *LocationQuery + func (lq *LocationQuery) Count(ctx context.Context) (int, error) + func (lq *LocationQuery) CountX(ctx context.Context) int + func (lq *LocationQuery) Exist(ctx context.Context) (bool, error) + func (lq *LocationQuery) ExistX(ctx context.Context) bool + func (lq *LocationQuery) First(ctx context.Context) (*Location, error) + func (lq *LocationQuery) FirstID(ctx context.Context) (id int, err error) + func (lq *LocationQuery) FirstIDX(ctx context.Context) int + func (lq *LocationQuery) FirstX(ctx context.Context) *Location + func (lq *LocationQuery) GroupBy(field string, fields ...string) *LocationGroupBy + func (lq *LocationQuery) IDs(ctx context.Context) (ids []int, err error) + func (lq *LocationQuery) IDsX(ctx context.Context) []int + func (lq *LocationQuery) Limit(limit int) *LocationQuery + func (lq *LocationQuery) Offset(offset int) *LocationQuery + func (lq *LocationQuery) Only(ctx context.Context) (*Location, error) + func (lq *LocationQuery) OnlyID(ctx context.Context) (id int, err error) + func (lq *LocationQuery) OnlyIDX(ctx context.Context) int + func (lq *LocationQuery) OnlyX(ctx context.Context) *Location + func (lq *LocationQuery) Order(o ...location.OrderOption) *LocationQuery + func (lq *LocationQuery) QueryPackages() *PkgQuery + func (lq *LocationQuery) Select(fields ...string) *LocationSelect + func (lq *LocationQuery) Unique(unique bool) *LocationQuery + func (lq *LocationQuery) Where(ps ...predicate.Location) *LocationQuery + func (lq *LocationQuery) WithPackages(opts ...func(*PkgQuery)) *LocationQuery + type LocationSelect struct + func (ls *LocationSelect) Aggregate(fns ...AggregateFunc) *LocationSelect + func (ls *LocationSelect) Scan(ctx context.Context, v any) error + func (s *LocationSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *LocationSelect) BoolX(ctx context.Context) bool + func (s *LocationSelect) Bools(ctx context.Context) ([]bool, error) + func (s *LocationSelect) BoolsX(ctx context.Context) []bool + func (s *LocationSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *LocationSelect) Float64X(ctx context.Context) float64 + func (s *LocationSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *LocationSelect) Float64sX(ctx context.Context) []float64 + func (s *LocationSelect) Int(ctx context.Context) (_ int, err error) + func (s *LocationSelect) IntX(ctx context.Context) int + func (s *LocationSelect) Ints(ctx context.Context) ([]int, error) + func (s *LocationSelect) IntsX(ctx context.Context) []int + func (s *LocationSelect) ScanX(ctx context.Context, v any) + func (s *LocationSelect) String(ctx context.Context) (_ string, err error) + func (s *LocationSelect) StringX(ctx context.Context) string + func (s *LocationSelect) Strings(ctx context.Context) ([]string, error) + func (s *LocationSelect) StringsX(ctx context.Context) []string + type LocationUpdate struct + func (lu *LocationUpdate) AddPackageIDs(ids ...int) *LocationUpdate + func (lu *LocationUpdate) AddPackages(p ...*Pkg) *LocationUpdate + func (lu *LocationUpdate) ClearPackages() *LocationUpdate + func (lu *LocationUpdate) Exec(ctx context.Context) error + func (lu *LocationUpdate) ExecX(ctx context.Context) + func (lu *LocationUpdate) Mutation() *LocationMutation + func (lu *LocationUpdate) RemovePackageIDs(ids ...int) *LocationUpdate + func (lu *LocationUpdate) RemovePackages(p ...*Pkg) *LocationUpdate + func (lu *LocationUpdate) Save(ctx context.Context) (int, error) + func (lu *LocationUpdate) SaveX(ctx context.Context) int + func (lu *LocationUpdate) SetConfig(tc types.LocationConfig) *LocationUpdate + func (lu *LocationUpdate) SetDescription(s string) *LocationUpdate + func (lu *LocationUpdate) SetName(s string) *LocationUpdate + func (lu *LocationUpdate) SetNillableConfig(tc *types.LocationConfig) *LocationUpdate + func (lu *LocationUpdate) SetNillableDescription(s *string) *LocationUpdate + func (lu *LocationUpdate) SetNillableName(s *string) *LocationUpdate + func (lu *LocationUpdate) SetNillablePurpose(tp *types.LocationPurpose) *LocationUpdate + func (lu *LocationUpdate) SetNillableSource(ts *types.LocationSource) *LocationUpdate + func (lu *LocationUpdate) SetNillableUUID(u *uuid.UUID) *LocationUpdate + func (lu *LocationUpdate) SetPurpose(tp types.LocationPurpose) *LocationUpdate + func (lu *LocationUpdate) SetSource(ts types.LocationSource) *LocationUpdate + func (lu *LocationUpdate) SetUUID(u uuid.UUID) *LocationUpdate + func (lu *LocationUpdate) Where(ps ...predicate.Location) *LocationUpdate + type LocationUpdateOne struct + func (luo *LocationUpdateOne) AddPackageIDs(ids ...int) *LocationUpdateOne + func (luo *LocationUpdateOne) AddPackages(p ...*Pkg) *LocationUpdateOne + func (luo *LocationUpdateOne) ClearPackages() *LocationUpdateOne + func (luo *LocationUpdateOne) Exec(ctx context.Context) error + func (luo *LocationUpdateOne) ExecX(ctx context.Context) + func (luo *LocationUpdateOne) Mutation() *LocationMutation + func (luo *LocationUpdateOne) RemovePackageIDs(ids ...int) *LocationUpdateOne + func (luo *LocationUpdateOne) RemovePackages(p ...*Pkg) *LocationUpdateOne + func (luo *LocationUpdateOne) Save(ctx context.Context) (*Location, error) + func (luo *LocationUpdateOne) SaveX(ctx context.Context) *Location + func (luo *LocationUpdateOne) Select(field string, fields ...string) *LocationUpdateOne + func (luo *LocationUpdateOne) SetConfig(tc types.LocationConfig) *LocationUpdateOne + func (luo *LocationUpdateOne) SetDescription(s string) *LocationUpdateOne + func (luo *LocationUpdateOne) SetName(s string) *LocationUpdateOne + func (luo *LocationUpdateOne) SetNillableConfig(tc *types.LocationConfig) *LocationUpdateOne + func (luo *LocationUpdateOne) SetNillableDescription(s *string) *LocationUpdateOne + func (luo *LocationUpdateOne) SetNillableName(s *string) *LocationUpdateOne + func (luo *LocationUpdateOne) SetNillablePurpose(tp *types.LocationPurpose) *LocationUpdateOne + func (luo *LocationUpdateOne) SetNillableSource(ts *types.LocationSource) *LocationUpdateOne + func (luo *LocationUpdateOne) SetNillableUUID(u *uuid.UUID) *LocationUpdateOne + func (luo *LocationUpdateOne) SetPurpose(tp types.LocationPurpose) *LocationUpdateOne + func (luo *LocationUpdateOne) SetSource(ts types.LocationSource) *LocationUpdateOne + func (luo *LocationUpdateOne) SetUUID(u uuid.UUID) *LocationUpdateOne + func (luo *LocationUpdateOne) Where(ps ...predicate.Location) *LocationUpdateOne + type Locations []*Location + 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(...any)) Option + type OrderFunc func(*sql.Selector) + type Pkg struct + AipID uuid.UUID + CreatedAt time.Time + Edges PkgEdges + ID int + LocationID int + Name string + ObjectKey uuid.UUID + Status types.PackageStatus + func (pk *Pkg) QueryLocation() *LocationQuery + func (pk *Pkg) String() string + func (pk *Pkg) Unwrap() *Pkg + func (pk *Pkg) Update() *PkgUpdateOne + func (pk *Pkg) Value(name string) (ent.Value, error) + type PkgClient struct + func NewPkgClient(c config) *PkgClient + func (c *PkgClient) Create() *PkgCreate + func (c *PkgClient) CreateBulk(builders ...*PkgCreate) *PkgCreateBulk + func (c *PkgClient) Delete() *PkgDelete + func (c *PkgClient) DeleteOne(pk *Pkg) *PkgDeleteOne + func (c *PkgClient) DeleteOneID(id int) *PkgDeleteOne + func (c *PkgClient) Get(ctx context.Context, id int) (*Pkg, error) + func (c *PkgClient) GetX(ctx context.Context, id int) *Pkg + func (c *PkgClient) Hooks() []Hook + func (c *PkgClient) Intercept(interceptors ...Interceptor) + func (c *PkgClient) Interceptors() []Interceptor + func (c *PkgClient) MapCreateBulk(slice any, setFunc func(*PkgCreate, int)) *PkgCreateBulk + func (c *PkgClient) Query() *PkgQuery + func (c *PkgClient) QueryLocation(pk *Pkg) *LocationQuery + func (c *PkgClient) Update() *PkgUpdate + func (c *PkgClient) UpdateOne(pk *Pkg) *PkgUpdateOne + func (c *PkgClient) UpdateOneID(id int) *PkgUpdateOne + func (c *PkgClient) Use(hooks ...Hook) + type PkgCreate struct + func (pc *PkgCreate) Exec(ctx context.Context) error + func (pc *PkgCreate) ExecX(ctx context.Context) + func (pc *PkgCreate) Mutation() *PkgMutation + func (pc *PkgCreate) Save(ctx context.Context) (*Pkg, error) + func (pc *PkgCreate) SaveX(ctx context.Context) *Pkg + func (pc *PkgCreate) SetAipID(u uuid.UUID) *PkgCreate + func (pc *PkgCreate) SetCreatedAt(t time.Time) *PkgCreate + func (pc *PkgCreate) SetLocation(l *Location) *PkgCreate + func (pc *PkgCreate) SetLocationID(i int) *PkgCreate + func (pc *PkgCreate) SetName(s string) *PkgCreate + func (pc *PkgCreate) SetNillableCreatedAt(t *time.Time) *PkgCreate + func (pc *PkgCreate) SetNillableLocationID(i *int) *PkgCreate + func (pc *PkgCreate) SetObjectKey(u uuid.UUID) *PkgCreate + func (pc *PkgCreate) SetStatus(ts types.PackageStatus) *PkgCreate + type PkgCreateBulk struct + func (pcb *PkgCreateBulk) Exec(ctx context.Context) error + func (pcb *PkgCreateBulk) ExecX(ctx context.Context) + func (pcb *PkgCreateBulk) Save(ctx context.Context) ([]*Pkg, error) + func (pcb *PkgCreateBulk) SaveX(ctx context.Context) []*Pkg + type PkgDelete struct + func (pd *PkgDelete) Exec(ctx context.Context) (int, error) + func (pd *PkgDelete) ExecX(ctx context.Context) int + func (pd *PkgDelete) Where(ps ...predicate.Pkg) *PkgDelete + type PkgDeleteOne struct + func (pdo *PkgDeleteOne) Exec(ctx context.Context) error + func (pdo *PkgDeleteOne) ExecX(ctx context.Context) + func (pdo *PkgDeleteOne) Where(ps ...predicate.Pkg) *PkgDeleteOne + type PkgEdges struct + Location *Location + func (e PkgEdges) LocationOrErr() (*Location, error) + type PkgGroupBy struct + func (pgb *PkgGroupBy) Aggregate(fns ...AggregateFunc) *PkgGroupBy + func (pgb *PkgGroupBy) Scan(ctx context.Context, v any) error + func (s *PkgGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *PkgGroupBy) BoolX(ctx context.Context) bool + func (s *PkgGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *PkgGroupBy) BoolsX(ctx context.Context) []bool + func (s *PkgGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *PkgGroupBy) Float64X(ctx context.Context) float64 + func (s *PkgGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *PkgGroupBy) Float64sX(ctx context.Context) []float64 + func (s *PkgGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *PkgGroupBy) IntX(ctx context.Context) int + func (s *PkgGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *PkgGroupBy) IntsX(ctx context.Context) []int + func (s *PkgGroupBy) ScanX(ctx context.Context, v any) + func (s *PkgGroupBy) String(ctx context.Context) (_ string, err error) + func (s *PkgGroupBy) StringX(ctx context.Context) string + func (s *PkgGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *PkgGroupBy) StringsX(ctx context.Context) []string + type PkgMutation struct + func (m *PkgMutation) AddField(name string, value ent.Value) error + func (m *PkgMutation) AddedEdges() []string + func (m *PkgMutation) AddedField(name string) (ent.Value, bool) + func (m *PkgMutation) AddedFields() []string + func (m *PkgMutation) AddedIDs(name string) []ent.Value + func (m *PkgMutation) AipID() (r uuid.UUID, exists bool) + func (m *PkgMutation) ClearEdge(name string) error + func (m *PkgMutation) ClearField(name string) error + func (m *PkgMutation) ClearLocation() + func (m *PkgMutation) ClearLocationID() + func (m *PkgMutation) ClearedEdges() []string + func (m *PkgMutation) ClearedFields() []string + func (m *PkgMutation) CreatedAt() (r time.Time, exists bool) + func (m *PkgMutation) EdgeCleared(name string) bool + func (m *PkgMutation) Field(name string) (ent.Value, bool) + func (m *PkgMutation) FieldCleared(name string) bool + func (m *PkgMutation) Fields() []string + func (m *PkgMutation) ID() (id int, exists bool) + func (m *PkgMutation) IDs(ctx context.Context) ([]int, error) + func (m *PkgMutation) LocationCleared() bool + func (m *PkgMutation) LocationID() (r int, exists bool) + func (m *PkgMutation) LocationIDCleared() bool + func (m *PkgMutation) LocationIDs() (ids []int) + func (m *PkgMutation) Name() (r string, exists bool) + func (m *PkgMutation) ObjectKey() (r uuid.UUID, exists bool) + func (m *PkgMutation) OldAipID(ctx context.Context) (v uuid.UUID, err error) + func (m *PkgMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *PkgMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PkgMutation) OldLocationID(ctx context.Context) (v int, err error) + func (m *PkgMutation) OldName(ctx context.Context) (v string, err error) + func (m *PkgMutation) OldObjectKey(ctx context.Context) (v uuid.UUID, err error) + func (m *PkgMutation) OldStatus(ctx context.Context) (v types.PackageStatus, err error) + func (m *PkgMutation) Op() Op + func (m *PkgMutation) RemovedEdges() []string + func (m *PkgMutation) RemovedIDs(name string) []ent.Value + func (m *PkgMutation) ResetAipID() + func (m *PkgMutation) ResetCreatedAt() + func (m *PkgMutation) ResetEdge(name string) error + func (m *PkgMutation) ResetField(name string) error + func (m *PkgMutation) ResetLocation() + func (m *PkgMutation) ResetLocationID() + func (m *PkgMutation) ResetName() + func (m *PkgMutation) ResetObjectKey() + func (m *PkgMutation) ResetStatus() + func (m *PkgMutation) SetAipID(u uuid.UUID) + func (m *PkgMutation) SetCreatedAt(t time.Time) + func (m *PkgMutation) SetField(name string, value ent.Value) error + func (m *PkgMutation) SetLocationID(i int) + func (m *PkgMutation) SetName(s string) + func (m *PkgMutation) SetObjectKey(u uuid.UUID) + func (m *PkgMutation) SetOp(op Op) + func (m *PkgMutation) SetStatus(ts types.PackageStatus) + func (m *PkgMutation) Status() (r types.PackageStatus, exists bool) + func (m *PkgMutation) Type() string + func (m *PkgMutation) Where(ps ...predicate.Pkg) + func (m *PkgMutation) WhereP(ps ...func(*sql.Selector)) + func (m PkgMutation) Client() *Client + func (m PkgMutation) Tx() (*Tx, error) + type PkgQuery struct + func (pq *PkgQuery) Aggregate(fns ...AggregateFunc) *PkgSelect + func (pq *PkgQuery) All(ctx context.Context) ([]*Pkg, error) + func (pq *PkgQuery) AllX(ctx context.Context) []*Pkg + func (pq *PkgQuery) Clone() *PkgQuery + func (pq *PkgQuery) Count(ctx context.Context) (int, error) + func (pq *PkgQuery) CountX(ctx context.Context) int + func (pq *PkgQuery) Exist(ctx context.Context) (bool, error) + func (pq *PkgQuery) ExistX(ctx context.Context) bool + func (pq *PkgQuery) First(ctx context.Context) (*Pkg, error) + func (pq *PkgQuery) FirstID(ctx context.Context) (id int, err error) + func (pq *PkgQuery) FirstIDX(ctx context.Context) int + func (pq *PkgQuery) FirstX(ctx context.Context) *Pkg + func (pq *PkgQuery) GroupBy(field string, fields ...string) *PkgGroupBy + func (pq *PkgQuery) IDs(ctx context.Context) (ids []int, err error) + func (pq *PkgQuery) IDsX(ctx context.Context) []int + func (pq *PkgQuery) Limit(limit int) *PkgQuery + func (pq *PkgQuery) Offset(offset int) *PkgQuery + func (pq *PkgQuery) Only(ctx context.Context) (*Pkg, error) + func (pq *PkgQuery) OnlyID(ctx context.Context) (id int, err error) + func (pq *PkgQuery) OnlyIDX(ctx context.Context) int + func (pq *PkgQuery) OnlyX(ctx context.Context) *Pkg + func (pq *PkgQuery) Order(o ...pkg.OrderOption) *PkgQuery + func (pq *PkgQuery) QueryLocation() *LocationQuery + func (pq *PkgQuery) Select(fields ...string) *PkgSelect + func (pq *PkgQuery) Unique(unique bool) *PkgQuery + func (pq *PkgQuery) Where(ps ...predicate.Pkg) *PkgQuery + func (pq *PkgQuery) WithLocation(opts ...func(*LocationQuery)) *PkgQuery + type PkgSelect struct + func (ps *PkgSelect) Aggregate(fns ...AggregateFunc) *PkgSelect + func (ps *PkgSelect) Scan(ctx context.Context, v any) error + func (s *PkgSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *PkgSelect) BoolX(ctx context.Context) bool + func (s *PkgSelect) Bools(ctx context.Context) ([]bool, error) + func (s *PkgSelect) BoolsX(ctx context.Context) []bool + func (s *PkgSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *PkgSelect) Float64X(ctx context.Context) float64 + func (s *PkgSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *PkgSelect) Float64sX(ctx context.Context) []float64 + func (s *PkgSelect) Int(ctx context.Context) (_ int, err error) + func (s *PkgSelect) IntX(ctx context.Context) int + func (s *PkgSelect) Ints(ctx context.Context) ([]int, error) + func (s *PkgSelect) IntsX(ctx context.Context) []int + func (s *PkgSelect) ScanX(ctx context.Context, v any) + func (s *PkgSelect) String(ctx context.Context) (_ string, err error) + func (s *PkgSelect) StringX(ctx context.Context) string + func (s *PkgSelect) Strings(ctx context.Context) ([]string, error) + func (s *PkgSelect) StringsX(ctx context.Context) []string + type PkgUpdate struct + func (pu *PkgUpdate) ClearLocation() *PkgUpdate + func (pu *PkgUpdate) ClearLocationID() *PkgUpdate + func (pu *PkgUpdate) Exec(ctx context.Context) error + func (pu *PkgUpdate) ExecX(ctx context.Context) + func (pu *PkgUpdate) Mutation() *PkgMutation + func (pu *PkgUpdate) Save(ctx context.Context) (int, error) + func (pu *PkgUpdate) SaveX(ctx context.Context) int + func (pu *PkgUpdate) SetAipID(u uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetLocation(l *Location) *PkgUpdate + func (pu *PkgUpdate) SetLocationID(i int) *PkgUpdate + func (pu *PkgUpdate) SetName(s string) *PkgUpdate + func (pu *PkgUpdate) SetNillableAipID(u *uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetNillableLocationID(i *int) *PkgUpdate + func (pu *PkgUpdate) SetNillableName(s *string) *PkgUpdate + func (pu *PkgUpdate) SetNillableObjectKey(u *uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetNillableStatus(ts *types.PackageStatus) *PkgUpdate + func (pu *PkgUpdate) SetObjectKey(u uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetStatus(ts types.PackageStatus) *PkgUpdate + func (pu *PkgUpdate) Where(ps ...predicate.Pkg) *PkgUpdate + type PkgUpdateOne struct + func (puo *PkgUpdateOne) ClearLocation() *PkgUpdateOne + func (puo *PkgUpdateOne) ClearLocationID() *PkgUpdateOne + func (puo *PkgUpdateOne) Exec(ctx context.Context) error + func (puo *PkgUpdateOne) ExecX(ctx context.Context) + func (puo *PkgUpdateOne) Mutation() *PkgMutation + func (puo *PkgUpdateOne) Save(ctx context.Context) (*Pkg, error) + func (puo *PkgUpdateOne) SaveX(ctx context.Context) *Pkg + func (puo *PkgUpdateOne) Select(field string, fields ...string) *PkgUpdateOne + func (puo *PkgUpdateOne) SetAipID(u uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetLocation(l *Location) *PkgUpdateOne + func (puo *PkgUpdateOne) SetLocationID(i int) *PkgUpdateOne + func (puo *PkgUpdateOne) SetName(s string) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableAipID(u *uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableLocationID(i *int) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableName(s *string) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableObjectKey(u *uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableStatus(ts *types.PackageStatus) *PkgUpdateOne + func (puo *PkgUpdateOne) SetObjectKey(u uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetStatus(ts types.PackageStatus) *PkgUpdateOne + func (puo *PkgUpdateOne) Where(ps ...predicate.Pkg) *PkgUpdateOne + type Pkgs []*Pkg + type Policy = ent.Policy + type Querier = ent.Querier + type QuerierFunc = ent.QuerierFunc + type Query = ent.Query + type QueryContext = ent.QueryContext + 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 TraverseFunc = ent.TraverseFunc + type Traverser = ent.Traverser + type Tx struct + Location *LocationClient + Pkg *PkgClient + 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