Documentation
¶
Index ¶
- Constants
- 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
- type Client
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type DbPackage
- type DbPackageClient
- func (c *DbPackageClient) Create() *DbPackageCreate
- func (c *DbPackageClient) CreateBulk(builders ...*DbPackageCreate) *DbPackageCreateBulk
- func (c *DbPackageClient) Delete() *DbPackageDelete
- func (c *DbPackageClient) DeleteOne(dp *DbPackage) *DbPackageDeleteOne
- func (c *DbPackageClient) DeleteOneID(id int) *DbPackageDeleteOne
- func (c *DbPackageClient) Get(ctx context.Context, id int) (*DbPackage, error)
- func (c *DbPackageClient) GetX(ctx context.Context, id int) *DbPackage
- func (c *DbPackageClient) Hooks() []Hook
- func (c *DbPackageClient) Query() *DbPackageQuery
- func (c *DbPackageClient) Update() *DbPackageUpdate
- func (c *DbPackageClient) UpdateOne(dp *DbPackage) *DbPackageUpdateOne
- func (c *DbPackageClient) UpdateOneID(id int) *DbPackageUpdateOne
- func (c *DbPackageClient) Use(hooks ...Hook)
- type DbPackageCreate
- func (dpc *DbPackageCreate) Exec(ctx context.Context) error
- func (dpc *DbPackageCreate) ExecX(ctx context.Context)
- func (dpc *DbPackageCreate) Mutation() *DbPackageMutation
- func (dpc *DbPackageCreate) Save(ctx context.Context) (*DbPackage, error)
- func (dpc *DbPackageCreate) SaveX(ctx context.Context) *DbPackage
- func (dpc *DbPackageCreate) SetBuildTimeStart(t time.Time) *DbPackageCreate
- func (dpc *DbPackageCreate) SetDebugSymbols(ds dbpackage.DebugSymbols) *DbPackageCreate
- func (dpc *DbPackageCreate) SetHash(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetIoIn(i int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetIoOut(i int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetLastVerified(t time.Time) *DbPackageCreate
- func (dpc *DbPackageCreate) SetLastVersionBuild(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetLto(d dbpackage.Lto) *DbPackageCreate
- func (dpc *DbPackageCreate) SetMarch(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetMaxRss(i int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableBuildTimeStart(t *time.Time) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableDebugSymbols(ds *dbpackage.DebugSymbols) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableHash(s *string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableIoIn(i *int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableIoOut(i *int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableLastVerified(t *time.Time) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableLastVersionBuild(s *string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableLto(d *dbpackage.Lto) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableMaxRss(i *int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillablePkgbuild(s *string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableRepoVersion(s *string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableSTime(i *int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableSkipReason(s *string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableSrcinfo(s *string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableSrcinfoHash(s *string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableStatus(d *dbpackage.Status) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableUTime(i *int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableUpdated(t *time.Time) *DbPackageCreate
- func (dpc *DbPackageCreate) SetNillableVersion(s *string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetPackages(s []string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetPkgbase(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetPkgbuild(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetRepoVersion(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetRepository(d dbpackage.Repository) *DbPackageCreate
- func (dpc *DbPackageCreate) SetSTime(i int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetSkipReason(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetSrcinfo(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetSrcinfoHash(s string) *DbPackageCreate
- func (dpc *DbPackageCreate) SetStatus(d dbpackage.Status) *DbPackageCreate
- func (dpc *DbPackageCreate) SetUTime(i int64) *DbPackageCreate
- func (dpc *DbPackageCreate) SetUpdated(t time.Time) *DbPackageCreate
- func (dpc *DbPackageCreate) SetVersion(s string) *DbPackageCreate
- type DbPackageCreateBulk
- type DbPackageDelete
- type DbPackageDeleteOne
- type DbPackageGroupBy
- func (dpgb *DbPackageGroupBy) Aggregate(fns ...AggregateFunc) *DbPackageGroupBy
- func (s *DbPackageGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DbPackageGroupBy) BoolX(ctx context.Context) bool
- func (s *DbPackageGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DbPackageGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DbPackageGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DbPackageGroupBy) Float64X(ctx context.Context) float64
- func (s *DbPackageGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DbPackageGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DbPackageGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DbPackageGroupBy) IntX(ctx context.Context) int
- func (s *DbPackageGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DbPackageGroupBy) IntsX(ctx context.Context) []int
- func (dpgb *DbPackageGroupBy) Scan(ctx context.Context, v interface{}) error
- func (s *DbPackageGroupBy) ScanX(ctx context.Context, v interface{})
- func (s *DbPackageGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DbPackageGroupBy) StringX(ctx context.Context) string
- func (s *DbPackageGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DbPackageGroupBy) StringsX(ctx context.Context) []string
- type DbPackageMutation
- func (m *DbPackageMutation) AddField(name string, value ent.Value) error
- func (m *DbPackageMutation) AddIoIn(i int64)
- func (m *DbPackageMutation) AddIoOut(i int64)
- func (m *DbPackageMutation) AddMaxRss(i int64)
- func (m *DbPackageMutation) AddSTime(i int64)
- func (m *DbPackageMutation) AddUTime(i int64)
- func (m *DbPackageMutation) AddedEdges() []string
- func (m *DbPackageMutation) AddedField(name string) (ent.Value, bool)
- func (m *DbPackageMutation) AddedFields() []string
- func (m *DbPackageMutation) AddedIDs(name string) []ent.Value
- func (m *DbPackageMutation) AddedIoIn() (r int64, exists bool)
- func (m *DbPackageMutation) AddedIoOut() (r int64, exists bool)
- func (m *DbPackageMutation) AddedMaxRss() (r int64, exists bool)
- func (m *DbPackageMutation) AddedSTime() (r int64, exists bool)
- func (m *DbPackageMutation) AddedUTime() (r int64, exists bool)
- func (m *DbPackageMutation) BuildTimeStart() (r time.Time, exists bool)
- func (m *DbPackageMutation) BuildTimeStartCleared() bool
- func (m *DbPackageMutation) ClearBuildTimeStart()
- func (m *DbPackageMutation) ClearDebugSymbols()
- func (m *DbPackageMutation) ClearEdge(name string) error
- func (m *DbPackageMutation) ClearField(name string) error
- func (m *DbPackageMutation) ClearHash()
- func (m *DbPackageMutation) ClearIoIn()
- func (m *DbPackageMutation) ClearIoOut()
- func (m *DbPackageMutation) ClearLastVerified()
- func (m *DbPackageMutation) ClearLastVersionBuild()
- func (m *DbPackageMutation) ClearLto()
- func (m *DbPackageMutation) ClearMaxRss()
- func (m *DbPackageMutation) ClearPackages()
- func (m *DbPackageMutation) ClearPkgbuild()
- func (m *DbPackageMutation) ClearRepoVersion()
- func (m *DbPackageMutation) ClearSTime()
- func (m *DbPackageMutation) ClearSkipReason()
- func (m *DbPackageMutation) ClearSrcinfo()
- func (m *DbPackageMutation) ClearSrcinfoHash()
- func (m *DbPackageMutation) ClearStatus()
- func (m *DbPackageMutation) ClearUTime()
- func (m *DbPackageMutation) ClearUpdated()
- func (m *DbPackageMutation) ClearVersion()
- func (m *DbPackageMutation) ClearedEdges() []string
- func (m *DbPackageMutation) ClearedFields() []string
- func (m DbPackageMutation) Client() *Client
- func (m *DbPackageMutation) DebugSymbols() (r dbpackage.DebugSymbols, exists bool)
- func (m *DbPackageMutation) DebugSymbolsCleared() bool
- func (m *DbPackageMutation) EdgeCleared(name string) bool
- func (m *DbPackageMutation) Field(name string) (ent.Value, bool)
- func (m *DbPackageMutation) FieldCleared(name string) bool
- func (m *DbPackageMutation) Fields() []string
- func (m *DbPackageMutation) Hash() (r string, exists bool)
- func (m *DbPackageMutation) HashCleared() bool
- func (m *DbPackageMutation) ID() (id int, exists bool)
- func (m *DbPackageMutation) IDs(ctx context.Context) ([]int, error)
- func (m *DbPackageMutation) IoIn() (r int64, exists bool)
- func (m *DbPackageMutation) IoInCleared() bool
- func (m *DbPackageMutation) IoOut() (r int64, exists bool)
- func (m *DbPackageMutation) IoOutCleared() bool
- func (m *DbPackageMutation) LastVerified() (r time.Time, exists bool)
- func (m *DbPackageMutation) LastVerifiedCleared() bool
- func (m *DbPackageMutation) LastVersionBuild() (r string, exists bool)
- func (m *DbPackageMutation) LastVersionBuildCleared() bool
- func (m *DbPackageMutation) Lto() (r dbpackage.Lto, exists bool)
- func (m *DbPackageMutation) LtoCleared() bool
- func (m *DbPackageMutation) March() (r string, exists bool)
- func (m *DbPackageMutation) MaxRss() (r int64, exists bool)
- func (m *DbPackageMutation) MaxRssCleared() bool
- func (m *DbPackageMutation) OldBuildTimeStart(ctx context.Context) (v time.Time, err error)
- func (m *DbPackageMutation) OldDebugSymbols(ctx context.Context) (v dbpackage.DebugSymbols, err error)
- func (m *DbPackageMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DbPackageMutation) OldHash(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) OldIoIn(ctx context.Context) (v *int64, err error)
- func (m *DbPackageMutation) OldIoOut(ctx context.Context) (v *int64, err error)
- func (m *DbPackageMutation) OldLastVerified(ctx context.Context) (v time.Time, err error)
- func (m *DbPackageMutation) OldLastVersionBuild(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) OldLto(ctx context.Context) (v dbpackage.Lto, err error)
- func (m *DbPackageMutation) OldMarch(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) OldMaxRss(ctx context.Context) (v *int64, err error)
- func (m *DbPackageMutation) OldPackages(ctx context.Context) (v []string, err error)
- func (m *DbPackageMutation) OldPkgbase(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) OldPkgbuild(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) OldRepoVersion(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) OldRepository(ctx context.Context) (v dbpackage.Repository, err error)
- func (m *DbPackageMutation) OldSTime(ctx context.Context) (v *int64, err error)
- func (m *DbPackageMutation) OldSkipReason(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) OldSrcinfo(ctx context.Context) (v *string, err error)
- func (m *DbPackageMutation) OldSrcinfoHash(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) OldStatus(ctx context.Context) (v dbpackage.Status, err error)
- func (m *DbPackageMutation) OldUTime(ctx context.Context) (v *int64, err error)
- func (m *DbPackageMutation) OldUpdated(ctx context.Context) (v time.Time, err error)
- func (m *DbPackageMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *DbPackageMutation) Op() Op
- func (m *DbPackageMutation) Packages() (r []string, exists bool)
- func (m *DbPackageMutation) PackagesCleared() bool
- func (m *DbPackageMutation) Pkgbase() (r string, exists bool)
- func (m *DbPackageMutation) Pkgbuild() (r string, exists bool)
- func (m *DbPackageMutation) PkgbuildCleared() bool
- func (m *DbPackageMutation) RemovedEdges() []string
- func (m *DbPackageMutation) RemovedIDs(name string) []ent.Value
- func (m *DbPackageMutation) RepoVersion() (r string, exists bool)
- func (m *DbPackageMutation) RepoVersionCleared() bool
- func (m *DbPackageMutation) Repository() (r dbpackage.Repository, exists bool)
- func (m *DbPackageMutation) ResetBuildTimeStart()
- func (m *DbPackageMutation) ResetDebugSymbols()
- func (m *DbPackageMutation) ResetEdge(name string) error
- func (m *DbPackageMutation) ResetField(name string) error
- func (m *DbPackageMutation) ResetHash()
- func (m *DbPackageMutation) ResetIoIn()
- func (m *DbPackageMutation) ResetIoOut()
- func (m *DbPackageMutation) ResetLastVerified()
- func (m *DbPackageMutation) ResetLastVersionBuild()
- func (m *DbPackageMutation) ResetLto()
- func (m *DbPackageMutation) ResetMarch()
- func (m *DbPackageMutation) ResetMaxRss()
- func (m *DbPackageMutation) ResetPackages()
- func (m *DbPackageMutation) ResetPkgbase()
- func (m *DbPackageMutation) ResetPkgbuild()
- func (m *DbPackageMutation) ResetRepoVersion()
- func (m *DbPackageMutation) ResetRepository()
- func (m *DbPackageMutation) ResetSTime()
- func (m *DbPackageMutation) ResetSkipReason()
- func (m *DbPackageMutation) ResetSrcinfo()
- func (m *DbPackageMutation) ResetSrcinfoHash()
- func (m *DbPackageMutation) ResetStatus()
- func (m *DbPackageMutation) ResetUTime()
- func (m *DbPackageMutation) ResetUpdated()
- func (m *DbPackageMutation) ResetVersion()
- func (m *DbPackageMutation) STime() (r int64, exists bool)
- func (m *DbPackageMutation) STimeCleared() bool
- func (m *DbPackageMutation) SetBuildTimeStart(t time.Time)
- func (m *DbPackageMutation) SetDebugSymbols(ds dbpackage.DebugSymbols)
- func (m *DbPackageMutation) SetField(name string, value ent.Value) error
- func (m *DbPackageMutation) SetHash(s string)
- func (m *DbPackageMutation) SetIoIn(i int64)
- func (m *DbPackageMutation) SetIoOut(i int64)
- func (m *DbPackageMutation) SetLastVerified(t time.Time)
- func (m *DbPackageMutation) SetLastVersionBuild(s string)
- func (m *DbPackageMutation) SetLto(d dbpackage.Lto)
- func (m *DbPackageMutation) SetMarch(s string)
- func (m *DbPackageMutation) SetMaxRss(i int64)
- func (m *DbPackageMutation) SetPackages(s []string)
- func (m *DbPackageMutation) SetPkgbase(s string)
- func (m *DbPackageMutation) SetPkgbuild(s string)
- func (m *DbPackageMutation) SetRepoVersion(s string)
- func (m *DbPackageMutation) SetRepository(d dbpackage.Repository)
- func (m *DbPackageMutation) SetSTime(i int64)
- func (m *DbPackageMutation) SetSkipReason(s string)
- func (m *DbPackageMutation) SetSrcinfo(s string)
- func (m *DbPackageMutation) SetSrcinfoHash(s string)
- func (m *DbPackageMutation) SetStatus(d dbpackage.Status)
- func (m *DbPackageMutation) SetUTime(i int64)
- func (m *DbPackageMutation) SetUpdated(t time.Time)
- func (m *DbPackageMutation) SetVersion(s string)
- func (m *DbPackageMutation) SkipReason() (r string, exists bool)
- func (m *DbPackageMutation) SkipReasonCleared() bool
- func (m *DbPackageMutation) Srcinfo() (r string, exists bool)
- func (m *DbPackageMutation) SrcinfoCleared() bool
- func (m *DbPackageMutation) SrcinfoHash() (r string, exists bool)
- func (m *DbPackageMutation) SrcinfoHashCleared() bool
- func (m *DbPackageMutation) Status() (r dbpackage.Status, exists bool)
- func (m *DbPackageMutation) StatusCleared() bool
- func (m DbPackageMutation) Tx() (*Tx, error)
- func (m *DbPackageMutation) Type() string
- func (m *DbPackageMutation) UTime() (r int64, exists bool)
- func (m *DbPackageMutation) UTimeCleared() bool
- func (m *DbPackageMutation) Updated() (r time.Time, exists bool)
- func (m *DbPackageMutation) UpdatedCleared() bool
- func (m *DbPackageMutation) Version() (r string, exists bool)
- func (m *DbPackageMutation) VersionCleared() bool
- func (m *DbPackageMutation) Where(ps ...predicate.DbPackage)
- type DbPackageQuery
- func (dpq *DbPackageQuery) All(ctx context.Context) ([]*DbPackage, error)
- func (dpq *DbPackageQuery) AllX(ctx context.Context) []*DbPackage
- func (dpq *DbPackageQuery) Clone() *DbPackageQuery
- func (dpq *DbPackageQuery) Count(ctx context.Context) (int, error)
- func (dpq *DbPackageQuery) CountX(ctx context.Context) int
- func (dpq *DbPackageQuery) Exist(ctx context.Context) (bool, error)
- func (dpq *DbPackageQuery) ExistX(ctx context.Context) bool
- func (dpq *DbPackageQuery) First(ctx context.Context) (*DbPackage, error)
- func (dpq *DbPackageQuery) FirstID(ctx context.Context) (id int, err error)
- func (dpq *DbPackageQuery) FirstIDX(ctx context.Context) int
- func (dpq *DbPackageQuery) FirstX(ctx context.Context) *DbPackage
- func (dpq *DbPackageQuery) GroupBy(field string, fields ...string) *DbPackageGroupBy
- func (dpq *DbPackageQuery) IDs(ctx context.Context) ([]int, error)
- func (dpq *DbPackageQuery) IDsX(ctx context.Context) []int
- func (dpq *DbPackageQuery) Limit(limit int) *DbPackageQuery
- func (dpq *DbPackageQuery) Modify(modifiers ...func(s *sql.Selector)) *DbPackageSelect
- func (dpq *DbPackageQuery) Offset(offset int) *DbPackageQuery
- func (dpq *DbPackageQuery) Only(ctx context.Context) (*DbPackage, error)
- func (dpq *DbPackageQuery) OnlyID(ctx context.Context) (id int, err error)
- func (dpq *DbPackageQuery) OnlyIDX(ctx context.Context) int
- func (dpq *DbPackageQuery) OnlyX(ctx context.Context) *DbPackage
- func (dpq *DbPackageQuery) Order(o ...OrderFunc) *DbPackageQuery
- func (dpq *DbPackageQuery) Select(fields ...string) *DbPackageSelect
- func (dpq *DbPackageQuery) Unique(unique bool) *DbPackageQuery
- func (dpq *DbPackageQuery) Where(ps ...predicate.DbPackage) *DbPackageQuery
- type DbPackageSelect
- func (s *DbPackageSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DbPackageSelect) BoolX(ctx context.Context) bool
- func (s *DbPackageSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DbPackageSelect) BoolsX(ctx context.Context) []bool
- func (s *DbPackageSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DbPackageSelect) Float64X(ctx context.Context) float64
- func (s *DbPackageSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DbPackageSelect) Float64sX(ctx context.Context) []float64
- func (s *DbPackageSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DbPackageSelect) IntX(ctx context.Context) int
- func (s *DbPackageSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DbPackageSelect) IntsX(ctx context.Context) []int
- func (dps *DbPackageSelect) Modify(modifiers ...func(s *sql.Selector)) *DbPackageSelect
- func (dps *DbPackageSelect) Scan(ctx context.Context, v interface{}) error
- func (s *DbPackageSelect) ScanX(ctx context.Context, v interface{})
- func (s *DbPackageSelect) String(ctx context.Context) (_ string, err error)
- func (s *DbPackageSelect) StringX(ctx context.Context) string
- func (s *DbPackageSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DbPackageSelect) StringsX(ctx context.Context) []string
- type DbPackageUpdate
- func (dpu *DbPackageUpdate) AddIoIn(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) AddIoOut(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) AddMaxRss(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) AddSTime(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) AddUTime(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearBuildTimeStart() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearDebugSymbols() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearHash() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearIoIn() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearIoOut() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearLastVerified() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearLastVersionBuild() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearLto() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearMaxRss() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearPackages() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearPkgbuild() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearRepoVersion() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearSTime() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearSkipReason() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearSrcinfo() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearSrcinfoHash() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearStatus() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearUTime() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearUpdated() *DbPackageUpdate
- func (dpu *DbPackageUpdate) ClearVersion() *DbPackageUpdate
- func (dpu *DbPackageUpdate) Exec(ctx context.Context) error
- func (dpu *DbPackageUpdate) ExecX(ctx context.Context)
- func (dpu *DbPackageUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DbPackageUpdate
- func (dpu *DbPackageUpdate) Mutation() *DbPackageMutation
- func (dpu *DbPackageUpdate) Save(ctx context.Context) (int, error)
- func (dpu *DbPackageUpdate) SaveX(ctx context.Context) int
- func (dpu *DbPackageUpdate) SetBuildTimeStart(t time.Time) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetDebugSymbols(ds dbpackage.DebugSymbols) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetHash(s string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetIoIn(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetIoOut(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetLastVerified(t time.Time) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetLastVersionBuild(s string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetLto(d dbpackage.Lto) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetMaxRss(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableBuildTimeStart(t *time.Time) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableDebugSymbols(ds *dbpackage.DebugSymbols) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableHash(s *string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableIoIn(i *int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableIoOut(i *int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableLastVerified(t *time.Time) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableLastVersionBuild(s *string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableLto(d *dbpackage.Lto) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableMaxRss(i *int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillablePkgbuild(s *string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableRepoVersion(s *string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableSTime(i *int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableSkipReason(s *string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableSrcinfo(s *string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableSrcinfoHash(s *string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableStatus(d *dbpackage.Status) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableUTime(i *int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableUpdated(t *time.Time) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetNillableVersion(s *string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetPackages(s []string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetPkgbuild(s string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetRepoVersion(s string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetRepository(d dbpackage.Repository) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetSTime(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetSkipReason(s string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetSrcinfo(s string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetSrcinfoHash(s string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetStatus(d dbpackage.Status) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetUTime(i int64) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetUpdated(t time.Time) *DbPackageUpdate
- func (dpu *DbPackageUpdate) SetVersion(s string) *DbPackageUpdate
- func (dpu *DbPackageUpdate) Where(ps ...predicate.DbPackage) *DbPackageUpdate
- type DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) AddIoIn(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) AddIoOut(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) AddMaxRss(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) AddSTime(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) AddUTime(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearBuildTimeStart() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearDebugSymbols() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearHash() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearIoIn() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearIoOut() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearLastVerified() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearLastVersionBuild() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearLto() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearMaxRss() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearPackages() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearPkgbuild() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearRepoVersion() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearSTime() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearSkipReason() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearSrcinfo() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearSrcinfoHash() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearStatus() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearUTime() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearUpdated() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) ClearVersion() *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) Exec(ctx context.Context) error
- func (dpuo *DbPackageUpdateOne) ExecX(ctx context.Context)
- func (dpuo *DbPackageUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) Mutation() *DbPackageMutation
- func (dpuo *DbPackageUpdateOne) Save(ctx context.Context) (*DbPackage, error)
- func (dpuo *DbPackageUpdateOne) SaveX(ctx context.Context) *DbPackage
- func (dpuo *DbPackageUpdateOne) Select(field string, fields ...string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetBuildTimeStart(t time.Time) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetDebugSymbols(ds dbpackage.DebugSymbols) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetHash(s string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetIoIn(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetIoOut(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetLastVerified(t time.Time) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetLastVersionBuild(s string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetLto(d dbpackage.Lto) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetMaxRss(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableBuildTimeStart(t *time.Time) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableDebugSymbols(ds *dbpackage.DebugSymbols) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableHash(s *string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableIoIn(i *int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableIoOut(i *int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableLastVerified(t *time.Time) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableLastVersionBuild(s *string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableLto(d *dbpackage.Lto) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableMaxRss(i *int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillablePkgbuild(s *string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableRepoVersion(s *string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableSTime(i *int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableSkipReason(s *string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableSrcinfo(s *string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableSrcinfoHash(s *string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableStatus(d *dbpackage.Status) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableUTime(i *int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableUpdated(t *time.Time) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetNillableVersion(s *string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetPackages(s []string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetPkgbuild(s string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetRepoVersion(s string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetRepository(d dbpackage.Repository) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetSTime(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetSkipReason(s string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetSrcinfo(s string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetSrcinfoHash(s string) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetStatus(d dbpackage.Status) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetUTime(i int64) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetUpdated(t time.Time) *DbPackageUpdateOne
- func (dpuo *DbPackageUpdateOne) SetVersion(s string) *DbPackageUpdateOne
- type DbPackages
- type Hook
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Query
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeDbPackage = "DbPackage" )
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // DbPackage is the client for interacting with the DbPackage builders. DbPackage *DbPackageClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func NewClient ¶
NewClient creates a new client configured with the given options.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) BeginTx ¶
BeginTx returns a transactional client with specified options.
func (*Client) Close ¶
Close closes the database connection and prevents new queries from starting.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). DbPackage. Query(). Count(ctx)
func (*Client) Tx ¶
Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Committer ¶
Committer is the interface that wraps the Commit method.
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type DbPackage ¶
type DbPackage struct { // ID of the ent. ID int `json:"id,omitempty"` // Pkgbase holds the value of the "pkgbase" field. Pkgbase string `json:"pkgbase,omitempty"` // Packages holds the value of the "packages" field. Packages []string `json:"packages,omitempty"` // Status holds the value of the "status" field. Status dbpackage.Status `json:"status,omitempty"` // SkipReason holds the value of the "skip_reason" field. SkipReason string `json:"skip_reason,omitempty"` // Repository holds the value of the "repository" field. Repository dbpackage.Repository `json:"repository,omitempty"` // March holds the value of the "march" field. March string `json:"march,omitempty"` // Version holds the value of the "version" field. Version string `json:"version,omitempty"` // RepoVersion holds the value of the "repo_version" field. RepoVersion string `json:"repo_version,omitempty"` // BuildTimeStart holds the value of the "build_time_start" field. BuildTimeStart time.Time `json:"build_time_start,omitempty"` // Updated holds the value of the "updated" field. Updated time.Time `json:"updated,omitempty"` // Hash holds the value of the "hash" field. Hash string `json:"hash,omitempty"` // Lto holds the value of the "lto" field. Lto dbpackage.Lto `json:"lto,omitempty"` // LastVersionBuild holds the value of the "last_version_build" field. LastVersionBuild string `json:"last_version_build,omitempty"` // LastVerified holds the value of the "last_verified" field. LastVerified time.Time `json:"last_verified,omitempty"` // DebugSymbols holds the value of the "debug_symbols" field. DebugSymbols dbpackage.DebugSymbols `json:"debug_symbols,omitempty"` // MaxRss holds the value of the "max_rss" field. MaxRss *int64 `json:"max_rss,omitempty"` // UTime holds the value of the "u_time" field. UTime *int64 `json:"u_time,omitempty"` // STime holds the value of the "s_time" field. STime *int64 `json:"s_time,omitempty"` // IoIn holds the value of the "io_in" field. IoIn *int64 `json:"io_in,omitempty"` // IoOut holds the value of the "io_out" field. IoOut *int64 `json:"io_out,omitempty"` // Srcinfo holds the value of the "srcinfo" field. Srcinfo *string `json:"srcinfo,omitempty"` // SrcinfoHash holds the value of the "srcinfo_hash" field. SrcinfoHash string `json:"srcinfo_hash,omitempty"` // Pkgbuild holds the value of the "pkgbuild" field. Pkgbuild string `json:"pkgbuild,omitempty"` // contains filtered or unexported fields }
DbPackage is the model entity for the DbPackage schema.
func (*DbPackage) Unwrap ¶
Unwrap unwraps the DbPackage entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*DbPackage) Update ¶
func (dp *DbPackage) Update() *DbPackageUpdateOne
Update returns a builder for updating this DbPackage. Note that you need to call DbPackage.Unwrap() before calling this method if this DbPackage was returned from a transaction, and the transaction was committed or rolled back.
type DbPackageClient ¶
type DbPackageClient struct {
// contains filtered or unexported fields
}
DbPackageClient is a client for the DbPackage schema.
func NewDbPackageClient ¶
func NewDbPackageClient(c config) *DbPackageClient
NewDbPackageClient returns a client for the DbPackage from the given config.
func (*DbPackageClient) Create ¶
func (c *DbPackageClient) Create() *DbPackageCreate
Create returns a builder for creating a DbPackage entity.
func (*DbPackageClient) CreateBulk ¶
func (c *DbPackageClient) CreateBulk(builders ...*DbPackageCreate) *DbPackageCreateBulk
CreateBulk returns a builder for creating a bulk of DbPackage entities.
func (*DbPackageClient) Delete ¶
func (c *DbPackageClient) Delete() *DbPackageDelete
Delete returns a delete builder for DbPackage.
func (*DbPackageClient) DeleteOne ¶
func (c *DbPackageClient) DeleteOne(dp *DbPackage) *DbPackageDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DbPackageClient) DeleteOneID ¶
func (c *DbPackageClient) DeleteOneID(id int) *DbPackageDeleteOne
DeleteOne returns a builder for deleting the given entity by its id.
func (*DbPackageClient) Get ¶
Get returns a DbPackage entity by its id.
func (*DbPackageClient) GetX ¶
func (c *DbPackageClient) GetX(ctx context.Context, id int) *DbPackage
GetX is like Get, but panics if an error occurs.
func (*DbPackageClient) Hooks ¶
func (c *DbPackageClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DbPackageClient) Query ¶
func (c *DbPackageClient) Query() *DbPackageQuery
Query returns a query builder for DbPackage.
func (*DbPackageClient) Update ¶
func (c *DbPackageClient) Update() *DbPackageUpdate
Update returns an update builder for DbPackage.
func (*DbPackageClient) UpdateOne ¶
func (c *DbPackageClient) UpdateOne(dp *DbPackage) *DbPackageUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DbPackageClient) UpdateOneID ¶
func (c *DbPackageClient) UpdateOneID(id int) *DbPackageUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DbPackageClient) Use ¶
func (c *DbPackageClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `dbpackage.Hooks(f(g(h())))`.
type DbPackageCreate ¶
type DbPackageCreate struct {
// contains filtered or unexported fields
}
DbPackageCreate is the builder for creating a DbPackage entity.
func (*DbPackageCreate) Exec ¶
func (dpc *DbPackageCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DbPackageCreate) ExecX ¶
func (dpc *DbPackageCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DbPackageCreate) Mutation ¶
func (dpc *DbPackageCreate) Mutation() *DbPackageMutation
Mutation returns the DbPackageMutation object of the builder.
func (*DbPackageCreate) Save ¶
func (dpc *DbPackageCreate) Save(ctx context.Context) (*DbPackage, error)
Save creates the DbPackage in the database.
func (*DbPackageCreate) SaveX ¶
func (dpc *DbPackageCreate) SaveX(ctx context.Context) *DbPackage
SaveX calls Save and panics if Save returns an error.
func (*DbPackageCreate) SetBuildTimeStart ¶
func (dpc *DbPackageCreate) SetBuildTimeStart(t time.Time) *DbPackageCreate
SetBuildTimeStart sets the "build_time_start" field.
func (*DbPackageCreate) SetDebugSymbols ¶
func (dpc *DbPackageCreate) SetDebugSymbols(ds dbpackage.DebugSymbols) *DbPackageCreate
SetDebugSymbols sets the "debug_symbols" field.
func (*DbPackageCreate) SetHash ¶
func (dpc *DbPackageCreate) SetHash(s string) *DbPackageCreate
SetHash sets the "hash" field.
func (*DbPackageCreate) SetIoIn ¶
func (dpc *DbPackageCreate) SetIoIn(i int64) *DbPackageCreate
SetIoIn sets the "io_in" field.
func (*DbPackageCreate) SetIoOut ¶
func (dpc *DbPackageCreate) SetIoOut(i int64) *DbPackageCreate
SetIoOut sets the "io_out" field.
func (*DbPackageCreate) SetLastVerified ¶
func (dpc *DbPackageCreate) SetLastVerified(t time.Time) *DbPackageCreate
SetLastVerified sets the "last_verified" field.
func (*DbPackageCreate) SetLastVersionBuild ¶
func (dpc *DbPackageCreate) SetLastVersionBuild(s string) *DbPackageCreate
SetLastVersionBuild sets the "last_version_build" field.
func (*DbPackageCreate) SetLto ¶
func (dpc *DbPackageCreate) SetLto(d dbpackage.Lto) *DbPackageCreate
SetLto sets the "lto" field.
func (*DbPackageCreate) SetMarch ¶
func (dpc *DbPackageCreate) SetMarch(s string) *DbPackageCreate
SetMarch sets the "march" field.
func (*DbPackageCreate) SetMaxRss ¶
func (dpc *DbPackageCreate) SetMaxRss(i int64) *DbPackageCreate
SetMaxRss sets the "max_rss" field.
func (*DbPackageCreate) SetNillableBuildTimeStart ¶
func (dpc *DbPackageCreate) SetNillableBuildTimeStart(t *time.Time) *DbPackageCreate
SetNillableBuildTimeStart sets the "build_time_start" field if the given value is not nil.
func (*DbPackageCreate) SetNillableDebugSymbols ¶
func (dpc *DbPackageCreate) SetNillableDebugSymbols(ds *dbpackage.DebugSymbols) *DbPackageCreate
SetNillableDebugSymbols sets the "debug_symbols" field if the given value is not nil.
func (*DbPackageCreate) SetNillableHash ¶
func (dpc *DbPackageCreate) SetNillableHash(s *string) *DbPackageCreate
SetNillableHash sets the "hash" field if the given value is not nil.
func (*DbPackageCreate) SetNillableIoIn ¶
func (dpc *DbPackageCreate) SetNillableIoIn(i *int64) *DbPackageCreate
SetNillableIoIn sets the "io_in" field if the given value is not nil.
func (*DbPackageCreate) SetNillableIoOut ¶
func (dpc *DbPackageCreate) SetNillableIoOut(i *int64) *DbPackageCreate
SetNillableIoOut sets the "io_out" field if the given value is not nil.
func (*DbPackageCreate) SetNillableLastVerified ¶
func (dpc *DbPackageCreate) SetNillableLastVerified(t *time.Time) *DbPackageCreate
SetNillableLastVerified sets the "last_verified" field if the given value is not nil.
func (*DbPackageCreate) SetNillableLastVersionBuild ¶
func (dpc *DbPackageCreate) SetNillableLastVersionBuild(s *string) *DbPackageCreate
SetNillableLastVersionBuild sets the "last_version_build" field if the given value is not nil.
func (*DbPackageCreate) SetNillableLto ¶
func (dpc *DbPackageCreate) SetNillableLto(d *dbpackage.Lto) *DbPackageCreate
SetNillableLto sets the "lto" field if the given value is not nil.
func (*DbPackageCreate) SetNillableMaxRss ¶
func (dpc *DbPackageCreate) SetNillableMaxRss(i *int64) *DbPackageCreate
SetNillableMaxRss sets the "max_rss" field if the given value is not nil.
func (*DbPackageCreate) SetNillablePkgbuild ¶
func (dpc *DbPackageCreate) SetNillablePkgbuild(s *string) *DbPackageCreate
SetNillablePkgbuild sets the "pkgbuild" field if the given value is not nil.
func (*DbPackageCreate) SetNillableRepoVersion ¶
func (dpc *DbPackageCreate) SetNillableRepoVersion(s *string) *DbPackageCreate
SetNillableRepoVersion sets the "repo_version" field if the given value is not nil.
func (*DbPackageCreate) SetNillableSTime ¶
func (dpc *DbPackageCreate) SetNillableSTime(i *int64) *DbPackageCreate
SetNillableSTime sets the "s_time" field if the given value is not nil.
func (*DbPackageCreate) SetNillableSkipReason ¶
func (dpc *DbPackageCreate) SetNillableSkipReason(s *string) *DbPackageCreate
SetNillableSkipReason sets the "skip_reason" field if the given value is not nil.
func (*DbPackageCreate) SetNillableSrcinfo ¶
func (dpc *DbPackageCreate) SetNillableSrcinfo(s *string) *DbPackageCreate
SetNillableSrcinfo sets the "srcinfo" field if the given value is not nil.
func (*DbPackageCreate) SetNillableSrcinfoHash ¶
func (dpc *DbPackageCreate) SetNillableSrcinfoHash(s *string) *DbPackageCreate
SetNillableSrcinfoHash sets the "srcinfo_hash" field if the given value is not nil.
func (*DbPackageCreate) SetNillableStatus ¶
func (dpc *DbPackageCreate) SetNillableStatus(d *dbpackage.Status) *DbPackageCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DbPackageCreate) SetNillableUTime ¶
func (dpc *DbPackageCreate) SetNillableUTime(i *int64) *DbPackageCreate
SetNillableUTime sets the "u_time" field if the given value is not nil.
func (*DbPackageCreate) SetNillableUpdated ¶
func (dpc *DbPackageCreate) SetNillableUpdated(t *time.Time) *DbPackageCreate
SetNillableUpdated sets the "updated" field if the given value is not nil.
func (*DbPackageCreate) SetNillableVersion ¶
func (dpc *DbPackageCreate) SetNillableVersion(s *string) *DbPackageCreate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*DbPackageCreate) SetPackages ¶
func (dpc *DbPackageCreate) SetPackages(s []string) *DbPackageCreate
SetPackages sets the "packages" field.
func (*DbPackageCreate) SetPkgbase ¶
func (dpc *DbPackageCreate) SetPkgbase(s string) *DbPackageCreate
SetPkgbase sets the "pkgbase" field.
func (*DbPackageCreate) SetPkgbuild ¶
func (dpc *DbPackageCreate) SetPkgbuild(s string) *DbPackageCreate
SetPkgbuild sets the "pkgbuild" field.
func (*DbPackageCreate) SetRepoVersion ¶
func (dpc *DbPackageCreate) SetRepoVersion(s string) *DbPackageCreate
SetRepoVersion sets the "repo_version" field.
func (*DbPackageCreate) SetRepository ¶
func (dpc *DbPackageCreate) SetRepository(d dbpackage.Repository) *DbPackageCreate
SetRepository sets the "repository" field.
func (*DbPackageCreate) SetSTime ¶
func (dpc *DbPackageCreate) SetSTime(i int64) *DbPackageCreate
SetSTime sets the "s_time" field.
func (*DbPackageCreate) SetSkipReason ¶
func (dpc *DbPackageCreate) SetSkipReason(s string) *DbPackageCreate
SetSkipReason sets the "skip_reason" field.
func (*DbPackageCreate) SetSrcinfo ¶
func (dpc *DbPackageCreate) SetSrcinfo(s string) *DbPackageCreate
SetSrcinfo sets the "srcinfo" field.
func (*DbPackageCreate) SetSrcinfoHash ¶
func (dpc *DbPackageCreate) SetSrcinfoHash(s string) *DbPackageCreate
SetSrcinfoHash sets the "srcinfo_hash" field.
func (*DbPackageCreate) SetStatus ¶
func (dpc *DbPackageCreate) SetStatus(d dbpackage.Status) *DbPackageCreate
SetStatus sets the "status" field.
func (*DbPackageCreate) SetUTime ¶
func (dpc *DbPackageCreate) SetUTime(i int64) *DbPackageCreate
SetUTime sets the "u_time" field.
func (*DbPackageCreate) SetUpdated ¶
func (dpc *DbPackageCreate) SetUpdated(t time.Time) *DbPackageCreate
SetUpdated sets the "updated" field.
func (*DbPackageCreate) SetVersion ¶
func (dpc *DbPackageCreate) SetVersion(s string) *DbPackageCreate
SetVersion sets the "version" field.
type DbPackageCreateBulk ¶
type DbPackageCreateBulk struct {
// contains filtered or unexported fields
}
DbPackageCreateBulk is the builder for creating many DbPackage entities in bulk.
func (*DbPackageCreateBulk) Exec ¶
func (dpcb *DbPackageCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DbPackageCreateBulk) ExecX ¶
func (dpcb *DbPackageCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DbPackageCreateBulk) Save ¶
func (dpcb *DbPackageCreateBulk) Save(ctx context.Context) ([]*DbPackage, error)
Save creates the DbPackage entities in the database.
func (*DbPackageCreateBulk) SaveX ¶
func (dpcb *DbPackageCreateBulk) SaveX(ctx context.Context) []*DbPackage
SaveX is like Save, but panics if an error occurs.
type DbPackageDelete ¶
type DbPackageDelete struct {
// contains filtered or unexported fields
}
DbPackageDelete is the builder for deleting a DbPackage entity.
func (*DbPackageDelete) Exec ¶
func (dpd *DbPackageDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DbPackageDelete) ExecX ¶
func (dpd *DbPackageDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DbPackageDelete) Where ¶
func (dpd *DbPackageDelete) Where(ps ...predicate.DbPackage) *DbPackageDelete
Where appends a list predicates to the DbPackageDelete builder.
type DbPackageDeleteOne ¶
type DbPackageDeleteOne struct {
// contains filtered or unexported fields
}
DbPackageDeleteOne is the builder for deleting a single DbPackage entity.
func (*DbPackageDeleteOne) Exec ¶
func (dpdo *DbPackageDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DbPackageDeleteOne) ExecX ¶
func (dpdo *DbPackageDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type DbPackageGroupBy ¶
type DbPackageGroupBy struct {
// contains filtered or unexported fields
}
DbPackageGroupBy is the group-by builder for DbPackage entities.
func (*DbPackageGroupBy) Aggregate ¶
func (dpgb *DbPackageGroupBy) Aggregate(fns ...AggregateFunc) *DbPackageGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DbPackageGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DbPackageGroupBy) BoolX ¶
BoolX is like Bool, but panics if an error occurs.
func (*DbPackageGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DbPackageGroupBy) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*DbPackageGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DbPackageGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DbPackageGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DbPackageGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DbPackageGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DbPackageGroupBy) IntX ¶
IntX is like Int, but panics if an error occurs.
func (*DbPackageGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DbPackageGroupBy) IntsX ¶
IntsX is like Ints, but panics if an error occurs.
func (*DbPackageGroupBy) Scan ¶
func (dpgb *DbPackageGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*DbPackageGroupBy) ScanX ¶
ScanX is like Scan, but panics if an error occurs.
func (*DbPackageGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DbPackageGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
func (*DbPackageGroupBy) Strings ¶
Strings returns list of strings from a selector. It is only allowed when selecting one field.
type DbPackageMutation ¶
type DbPackageMutation struct {
// contains filtered or unexported fields
}
DbPackageMutation represents an operation that mutates the DbPackage nodes in the graph.
func (*DbPackageMutation) AddField ¶
func (m *DbPackageMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*DbPackageMutation) AddIoIn ¶
func (m *DbPackageMutation) AddIoIn(i int64)
AddIoIn adds i to the "io_in" field.
func (*DbPackageMutation) AddIoOut ¶
func (m *DbPackageMutation) AddIoOut(i int64)
AddIoOut adds i to the "io_out" field.
func (*DbPackageMutation) AddMaxRss ¶
func (m *DbPackageMutation) AddMaxRss(i int64)
AddMaxRss adds i to the "max_rss" field.
func (*DbPackageMutation) AddSTime ¶
func (m *DbPackageMutation) AddSTime(i int64)
AddSTime adds i to the "s_time" field.
func (*DbPackageMutation) AddUTime ¶
func (m *DbPackageMutation) AddUTime(i int64)
AddUTime adds i to the "u_time" field.
func (*DbPackageMutation) AddedEdges ¶
func (m *DbPackageMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DbPackageMutation) AddedField ¶
func (m *DbPackageMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*DbPackageMutation) AddedFields ¶
func (m *DbPackageMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DbPackageMutation) AddedIDs ¶
func (m *DbPackageMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DbPackageMutation) AddedIoIn ¶
func (m *DbPackageMutation) AddedIoIn() (r int64, exists bool)
AddedIoIn returns the value that was added to the "io_in" field in this mutation.
func (*DbPackageMutation) AddedIoOut ¶
func (m *DbPackageMutation) AddedIoOut() (r int64, exists bool)
AddedIoOut returns the value that was added to the "io_out" field in this mutation.
func (*DbPackageMutation) AddedMaxRss ¶
func (m *DbPackageMutation) AddedMaxRss() (r int64, exists bool)
AddedMaxRss returns the value that was added to the "max_rss" field in this mutation.
func (*DbPackageMutation) AddedSTime ¶
func (m *DbPackageMutation) AddedSTime() (r int64, exists bool)
AddedSTime returns the value that was added to the "s_time" field in this mutation.
func (*DbPackageMutation) AddedUTime ¶
func (m *DbPackageMutation) AddedUTime() (r int64, exists bool)
AddedUTime returns the value that was added to the "u_time" field in this mutation.
func (*DbPackageMutation) BuildTimeStart ¶
func (m *DbPackageMutation) BuildTimeStart() (r time.Time, exists bool)
BuildTimeStart returns the value of the "build_time_start" field in the mutation.
func (*DbPackageMutation) BuildTimeStartCleared ¶
func (m *DbPackageMutation) BuildTimeStartCleared() bool
BuildTimeStartCleared returns if the "build_time_start" field was cleared in this mutation.
func (*DbPackageMutation) ClearBuildTimeStart ¶
func (m *DbPackageMutation) ClearBuildTimeStart()
ClearBuildTimeStart clears the value of the "build_time_start" field.
func (*DbPackageMutation) ClearDebugSymbols ¶
func (m *DbPackageMutation) ClearDebugSymbols()
ClearDebugSymbols clears the value of the "debug_symbols" field.
func (*DbPackageMutation) ClearEdge ¶
func (m *DbPackageMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*DbPackageMutation) ClearField ¶
func (m *DbPackageMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*DbPackageMutation) ClearHash ¶
func (m *DbPackageMutation) ClearHash()
ClearHash clears the value of the "hash" field.
func (*DbPackageMutation) ClearIoIn ¶
func (m *DbPackageMutation) ClearIoIn()
ClearIoIn clears the value of the "io_in" field.
func (*DbPackageMutation) ClearIoOut ¶
func (m *DbPackageMutation) ClearIoOut()
ClearIoOut clears the value of the "io_out" field.
func (*DbPackageMutation) ClearLastVerified ¶
func (m *DbPackageMutation) ClearLastVerified()
ClearLastVerified clears the value of the "last_verified" field.
func (*DbPackageMutation) ClearLastVersionBuild ¶
func (m *DbPackageMutation) ClearLastVersionBuild()
ClearLastVersionBuild clears the value of the "last_version_build" field.
func (*DbPackageMutation) ClearLto ¶
func (m *DbPackageMutation) ClearLto()
ClearLto clears the value of the "lto" field.
func (*DbPackageMutation) ClearMaxRss ¶
func (m *DbPackageMutation) ClearMaxRss()
ClearMaxRss clears the value of the "max_rss" field.
func (*DbPackageMutation) ClearPackages ¶
func (m *DbPackageMutation) ClearPackages()
ClearPackages clears the value of the "packages" field.
func (*DbPackageMutation) ClearPkgbuild ¶
func (m *DbPackageMutation) ClearPkgbuild()
ClearPkgbuild clears the value of the "pkgbuild" field.
func (*DbPackageMutation) ClearRepoVersion ¶
func (m *DbPackageMutation) ClearRepoVersion()
ClearRepoVersion clears the value of the "repo_version" field.
func (*DbPackageMutation) ClearSTime ¶
func (m *DbPackageMutation) ClearSTime()
ClearSTime clears the value of the "s_time" field.
func (*DbPackageMutation) ClearSkipReason ¶
func (m *DbPackageMutation) ClearSkipReason()
ClearSkipReason clears the value of the "skip_reason" field.
func (*DbPackageMutation) ClearSrcinfo ¶
func (m *DbPackageMutation) ClearSrcinfo()
ClearSrcinfo clears the value of the "srcinfo" field.
func (*DbPackageMutation) ClearSrcinfoHash ¶
func (m *DbPackageMutation) ClearSrcinfoHash()
ClearSrcinfoHash clears the value of the "srcinfo_hash" field.
func (*DbPackageMutation) ClearStatus ¶
func (m *DbPackageMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DbPackageMutation) ClearUTime ¶
func (m *DbPackageMutation) ClearUTime()
ClearUTime clears the value of the "u_time" field.
func (*DbPackageMutation) ClearUpdated ¶
func (m *DbPackageMutation) ClearUpdated()
ClearUpdated clears the value of the "updated" field.
func (*DbPackageMutation) ClearVersion ¶
func (m *DbPackageMutation) ClearVersion()
ClearVersion clears the value of the "version" field.
func (*DbPackageMutation) ClearedEdges ¶
func (m *DbPackageMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DbPackageMutation) ClearedFields ¶
func (m *DbPackageMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DbPackageMutation) Client ¶
func (m DbPackageMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*DbPackageMutation) DebugSymbols ¶
func (m *DbPackageMutation) DebugSymbols() (r dbpackage.DebugSymbols, exists bool)
DebugSymbols returns the value of the "debug_symbols" field in the mutation.
func (*DbPackageMutation) DebugSymbolsCleared ¶
func (m *DbPackageMutation) DebugSymbolsCleared() bool
DebugSymbolsCleared returns if the "debug_symbols" field was cleared in this mutation.
func (*DbPackageMutation) EdgeCleared ¶
func (m *DbPackageMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DbPackageMutation) Field ¶
func (m *DbPackageMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*DbPackageMutation) FieldCleared ¶
func (m *DbPackageMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DbPackageMutation) Fields ¶
func (m *DbPackageMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*DbPackageMutation) Hash ¶
func (m *DbPackageMutation) Hash() (r string, exists bool)
Hash returns the value of the "hash" field in the mutation.
func (*DbPackageMutation) HashCleared ¶
func (m *DbPackageMutation) HashCleared() bool
HashCleared returns if the "hash" field was cleared in this mutation.
func (*DbPackageMutation) ID ¶
func (m *DbPackageMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*DbPackageMutation) IDs ¶
func (m *DbPackageMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*DbPackageMutation) IoIn ¶
func (m *DbPackageMutation) IoIn() (r int64, exists bool)
IoIn returns the value of the "io_in" field in the mutation.
func (*DbPackageMutation) IoInCleared ¶
func (m *DbPackageMutation) IoInCleared() bool
IoInCleared returns if the "io_in" field was cleared in this mutation.
func (*DbPackageMutation) IoOut ¶
func (m *DbPackageMutation) IoOut() (r int64, exists bool)
IoOut returns the value of the "io_out" field in the mutation.
func (*DbPackageMutation) IoOutCleared ¶
func (m *DbPackageMutation) IoOutCleared() bool
IoOutCleared returns if the "io_out" field was cleared in this mutation.
func (*DbPackageMutation) LastVerified ¶
func (m *DbPackageMutation) LastVerified() (r time.Time, exists bool)
LastVerified returns the value of the "last_verified" field in the mutation.
func (*DbPackageMutation) LastVerifiedCleared ¶
func (m *DbPackageMutation) LastVerifiedCleared() bool
LastVerifiedCleared returns if the "last_verified" field was cleared in this mutation.
func (*DbPackageMutation) LastVersionBuild ¶
func (m *DbPackageMutation) LastVersionBuild() (r string, exists bool)
LastVersionBuild returns the value of the "last_version_build" field in the mutation.
func (*DbPackageMutation) LastVersionBuildCleared ¶
func (m *DbPackageMutation) LastVersionBuildCleared() bool
LastVersionBuildCleared returns if the "last_version_build" field was cleared in this mutation.
func (*DbPackageMutation) Lto ¶
func (m *DbPackageMutation) Lto() (r dbpackage.Lto, exists bool)
Lto returns the value of the "lto" field in the mutation.
func (*DbPackageMutation) LtoCleared ¶
func (m *DbPackageMutation) LtoCleared() bool
LtoCleared returns if the "lto" field was cleared in this mutation.
func (*DbPackageMutation) March ¶
func (m *DbPackageMutation) March() (r string, exists bool)
March returns the value of the "march" field in the mutation.
func (*DbPackageMutation) MaxRss ¶
func (m *DbPackageMutation) MaxRss() (r int64, exists bool)
MaxRss returns the value of the "max_rss" field in the mutation.
func (*DbPackageMutation) MaxRssCleared ¶
func (m *DbPackageMutation) MaxRssCleared() bool
MaxRssCleared returns if the "max_rss" field was cleared in this mutation.
func (*DbPackageMutation) OldBuildTimeStart ¶
OldBuildTimeStart returns the old "build_time_start" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldDebugSymbols ¶
func (m *DbPackageMutation) OldDebugSymbols(ctx context.Context) (v dbpackage.DebugSymbols, err error)
OldDebugSymbols returns the old "debug_symbols" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*DbPackageMutation) OldHash ¶
func (m *DbPackageMutation) OldHash(ctx context.Context) (v string, err error)
OldHash returns the old "hash" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldIoIn ¶
func (m *DbPackageMutation) OldIoIn(ctx context.Context) (v *int64, err error)
OldIoIn returns the old "io_in" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldIoOut ¶
func (m *DbPackageMutation) OldIoOut(ctx context.Context) (v *int64, err error)
OldIoOut returns the old "io_out" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldLastVerified ¶
OldLastVerified returns the old "last_verified" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldLastVersionBuild ¶
func (m *DbPackageMutation) OldLastVersionBuild(ctx context.Context) (v string, err error)
OldLastVersionBuild returns the old "last_version_build" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldLto ¶
OldLto returns the old "lto" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldMarch ¶
func (m *DbPackageMutation) OldMarch(ctx context.Context) (v string, err error)
OldMarch returns the old "march" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldMaxRss ¶
func (m *DbPackageMutation) OldMaxRss(ctx context.Context) (v *int64, err error)
OldMaxRss returns the old "max_rss" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldPackages ¶
func (m *DbPackageMutation) OldPackages(ctx context.Context) (v []string, err error)
OldPackages returns the old "packages" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldPkgbase ¶
func (m *DbPackageMutation) OldPkgbase(ctx context.Context) (v string, err error)
OldPkgbase returns the old "pkgbase" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldPkgbuild ¶
func (m *DbPackageMutation) OldPkgbuild(ctx context.Context) (v string, err error)
OldPkgbuild returns the old "pkgbuild" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldRepoVersion ¶
func (m *DbPackageMutation) OldRepoVersion(ctx context.Context) (v string, err error)
OldRepoVersion returns the old "repo_version" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldRepository ¶
func (m *DbPackageMutation) OldRepository(ctx context.Context) (v dbpackage.Repository, err error)
OldRepository returns the old "repository" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldSTime ¶
func (m *DbPackageMutation) OldSTime(ctx context.Context) (v *int64, err error)
OldSTime returns the old "s_time" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldSkipReason ¶
func (m *DbPackageMutation) OldSkipReason(ctx context.Context) (v string, err error)
OldSkipReason returns the old "skip_reason" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldSrcinfo ¶
func (m *DbPackageMutation) OldSrcinfo(ctx context.Context) (v *string, err error)
OldSrcinfo returns the old "srcinfo" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldSrcinfoHash ¶
func (m *DbPackageMutation) OldSrcinfoHash(ctx context.Context) (v string, err error)
OldSrcinfoHash returns the old "srcinfo_hash" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldStatus ¶
OldStatus returns the old "status" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldUTime ¶
func (m *DbPackageMutation) OldUTime(ctx context.Context) (v *int64, err error)
OldUTime returns the old "u_time" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldUpdated ¶
OldUpdated returns the old "updated" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) OldVersion ¶
func (m *DbPackageMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old "version" field's value of the DbPackage entity. If the DbPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DbPackageMutation) Packages ¶
func (m *DbPackageMutation) Packages() (r []string, exists bool)
Packages returns the value of the "packages" field in the mutation.
func (*DbPackageMutation) PackagesCleared ¶
func (m *DbPackageMutation) PackagesCleared() bool
PackagesCleared returns if the "packages" field was cleared in this mutation.
func (*DbPackageMutation) Pkgbase ¶
func (m *DbPackageMutation) Pkgbase() (r string, exists bool)
Pkgbase returns the value of the "pkgbase" field in the mutation.
func (*DbPackageMutation) Pkgbuild ¶
func (m *DbPackageMutation) Pkgbuild() (r string, exists bool)
Pkgbuild returns the value of the "pkgbuild" field in the mutation.
func (*DbPackageMutation) PkgbuildCleared ¶
func (m *DbPackageMutation) PkgbuildCleared() bool
PkgbuildCleared returns if the "pkgbuild" field was cleared in this mutation.
func (*DbPackageMutation) RemovedEdges ¶
func (m *DbPackageMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DbPackageMutation) RemovedIDs ¶
func (m *DbPackageMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*DbPackageMutation) RepoVersion ¶
func (m *DbPackageMutation) RepoVersion() (r string, exists bool)
RepoVersion returns the value of the "repo_version" field in the mutation.
func (*DbPackageMutation) RepoVersionCleared ¶
func (m *DbPackageMutation) RepoVersionCleared() bool
RepoVersionCleared returns if the "repo_version" field was cleared in this mutation.
func (*DbPackageMutation) Repository ¶
func (m *DbPackageMutation) Repository() (r dbpackage.Repository, exists bool)
Repository returns the value of the "repository" field in the mutation.
func (*DbPackageMutation) ResetBuildTimeStart ¶
func (m *DbPackageMutation) ResetBuildTimeStart()
ResetBuildTimeStart resets all changes to the "build_time_start" field.
func (*DbPackageMutation) ResetDebugSymbols ¶
func (m *DbPackageMutation) ResetDebugSymbols()
ResetDebugSymbols resets all changes to the "debug_symbols" field.
func (*DbPackageMutation) ResetEdge ¶
func (m *DbPackageMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*DbPackageMutation) ResetField ¶
func (m *DbPackageMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*DbPackageMutation) ResetHash ¶
func (m *DbPackageMutation) ResetHash()
ResetHash resets all changes to the "hash" field.
func (*DbPackageMutation) ResetIoIn ¶
func (m *DbPackageMutation) ResetIoIn()
ResetIoIn resets all changes to the "io_in" field.
func (*DbPackageMutation) ResetIoOut ¶
func (m *DbPackageMutation) ResetIoOut()
ResetIoOut resets all changes to the "io_out" field.
func (*DbPackageMutation) ResetLastVerified ¶
func (m *DbPackageMutation) ResetLastVerified()
ResetLastVerified resets all changes to the "last_verified" field.
func (*DbPackageMutation) ResetLastVersionBuild ¶
func (m *DbPackageMutation) ResetLastVersionBuild()
ResetLastVersionBuild resets all changes to the "last_version_build" field.
func (*DbPackageMutation) ResetLto ¶
func (m *DbPackageMutation) ResetLto()
ResetLto resets all changes to the "lto" field.
func (*DbPackageMutation) ResetMarch ¶
func (m *DbPackageMutation) ResetMarch()
ResetMarch resets all changes to the "march" field.
func (*DbPackageMutation) ResetMaxRss ¶
func (m *DbPackageMutation) ResetMaxRss()
ResetMaxRss resets all changes to the "max_rss" field.
func (*DbPackageMutation) ResetPackages ¶
func (m *DbPackageMutation) ResetPackages()
ResetPackages resets all changes to the "packages" field.
func (*DbPackageMutation) ResetPkgbase ¶
func (m *DbPackageMutation) ResetPkgbase()
ResetPkgbase resets all changes to the "pkgbase" field.
func (*DbPackageMutation) ResetPkgbuild ¶
func (m *DbPackageMutation) ResetPkgbuild()
ResetPkgbuild resets all changes to the "pkgbuild" field.
func (*DbPackageMutation) ResetRepoVersion ¶
func (m *DbPackageMutation) ResetRepoVersion()
ResetRepoVersion resets all changes to the "repo_version" field.
func (*DbPackageMutation) ResetRepository ¶
func (m *DbPackageMutation) ResetRepository()
ResetRepository resets all changes to the "repository" field.
func (*DbPackageMutation) ResetSTime ¶
func (m *DbPackageMutation) ResetSTime()
ResetSTime resets all changes to the "s_time" field.
func (*DbPackageMutation) ResetSkipReason ¶
func (m *DbPackageMutation) ResetSkipReason()
ResetSkipReason resets all changes to the "skip_reason" field.
func (*DbPackageMutation) ResetSrcinfo ¶
func (m *DbPackageMutation) ResetSrcinfo()
ResetSrcinfo resets all changes to the "srcinfo" field.
func (*DbPackageMutation) ResetSrcinfoHash ¶
func (m *DbPackageMutation) ResetSrcinfoHash()
ResetSrcinfoHash resets all changes to the "srcinfo_hash" field.
func (*DbPackageMutation) ResetStatus ¶
func (m *DbPackageMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DbPackageMutation) ResetUTime ¶
func (m *DbPackageMutation) ResetUTime()
ResetUTime resets all changes to the "u_time" field.
func (*DbPackageMutation) ResetUpdated ¶
func (m *DbPackageMutation) ResetUpdated()
ResetUpdated resets all changes to the "updated" field.
func (*DbPackageMutation) ResetVersion ¶
func (m *DbPackageMutation) ResetVersion()
ResetVersion resets all changes to the "version" field.
func (*DbPackageMutation) STime ¶
func (m *DbPackageMutation) STime() (r int64, exists bool)
STime returns the value of the "s_time" field in the mutation.
func (*DbPackageMutation) STimeCleared ¶
func (m *DbPackageMutation) STimeCleared() bool
STimeCleared returns if the "s_time" field was cleared in this mutation.
func (*DbPackageMutation) SetBuildTimeStart ¶
func (m *DbPackageMutation) SetBuildTimeStart(t time.Time)
SetBuildTimeStart sets the "build_time_start" field.
func (*DbPackageMutation) SetDebugSymbols ¶
func (m *DbPackageMutation) SetDebugSymbols(ds dbpackage.DebugSymbols)
SetDebugSymbols sets the "debug_symbols" field.
func (*DbPackageMutation) SetField ¶
func (m *DbPackageMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*DbPackageMutation) SetHash ¶
func (m *DbPackageMutation) SetHash(s string)
SetHash sets the "hash" field.
func (*DbPackageMutation) SetIoIn ¶
func (m *DbPackageMutation) SetIoIn(i int64)
SetIoIn sets the "io_in" field.
func (*DbPackageMutation) SetIoOut ¶
func (m *DbPackageMutation) SetIoOut(i int64)
SetIoOut sets the "io_out" field.
func (*DbPackageMutation) SetLastVerified ¶
func (m *DbPackageMutation) SetLastVerified(t time.Time)
SetLastVerified sets the "last_verified" field.
func (*DbPackageMutation) SetLastVersionBuild ¶
func (m *DbPackageMutation) SetLastVersionBuild(s string)
SetLastVersionBuild sets the "last_version_build" field.
func (*DbPackageMutation) SetLto ¶
func (m *DbPackageMutation) SetLto(d dbpackage.Lto)
SetLto sets the "lto" field.
func (*DbPackageMutation) SetMarch ¶
func (m *DbPackageMutation) SetMarch(s string)
SetMarch sets the "march" field.
func (*DbPackageMutation) SetMaxRss ¶
func (m *DbPackageMutation) SetMaxRss(i int64)
SetMaxRss sets the "max_rss" field.
func (*DbPackageMutation) SetPackages ¶
func (m *DbPackageMutation) SetPackages(s []string)
SetPackages sets the "packages" field.
func (*DbPackageMutation) SetPkgbase ¶
func (m *DbPackageMutation) SetPkgbase(s string)
SetPkgbase sets the "pkgbase" field.
func (*DbPackageMutation) SetPkgbuild ¶
func (m *DbPackageMutation) SetPkgbuild(s string)
SetPkgbuild sets the "pkgbuild" field.
func (*DbPackageMutation) SetRepoVersion ¶
func (m *DbPackageMutation) SetRepoVersion(s string)
SetRepoVersion sets the "repo_version" field.
func (*DbPackageMutation) SetRepository ¶
func (m *DbPackageMutation) SetRepository(d dbpackage.Repository)
SetRepository sets the "repository" field.
func (*DbPackageMutation) SetSTime ¶
func (m *DbPackageMutation) SetSTime(i int64)
SetSTime sets the "s_time" field.
func (*DbPackageMutation) SetSkipReason ¶
func (m *DbPackageMutation) SetSkipReason(s string)
SetSkipReason sets the "skip_reason" field.
func (*DbPackageMutation) SetSrcinfo ¶
func (m *DbPackageMutation) SetSrcinfo(s string)
SetSrcinfo sets the "srcinfo" field.
func (*DbPackageMutation) SetSrcinfoHash ¶
func (m *DbPackageMutation) SetSrcinfoHash(s string)
SetSrcinfoHash sets the "srcinfo_hash" field.
func (*DbPackageMutation) SetStatus ¶
func (m *DbPackageMutation) SetStatus(d dbpackage.Status)
SetStatus sets the "status" field.
func (*DbPackageMutation) SetUTime ¶
func (m *DbPackageMutation) SetUTime(i int64)
SetUTime sets the "u_time" field.
func (*DbPackageMutation) SetUpdated ¶
func (m *DbPackageMutation) SetUpdated(t time.Time)
SetUpdated sets the "updated" field.
func (*DbPackageMutation) SetVersion ¶
func (m *DbPackageMutation) SetVersion(s string)
SetVersion sets the "version" field.
func (*DbPackageMutation) SkipReason ¶
func (m *DbPackageMutation) SkipReason() (r string, exists bool)
SkipReason returns the value of the "skip_reason" field in the mutation.
func (*DbPackageMutation) SkipReasonCleared ¶
func (m *DbPackageMutation) SkipReasonCleared() bool
SkipReasonCleared returns if the "skip_reason" field was cleared in this mutation.
func (*DbPackageMutation) Srcinfo ¶
func (m *DbPackageMutation) Srcinfo() (r string, exists bool)
Srcinfo returns the value of the "srcinfo" field in the mutation.
func (*DbPackageMutation) SrcinfoCleared ¶
func (m *DbPackageMutation) SrcinfoCleared() bool
SrcinfoCleared returns if the "srcinfo" field was cleared in this mutation.
func (*DbPackageMutation) SrcinfoHash ¶
func (m *DbPackageMutation) SrcinfoHash() (r string, exists bool)
SrcinfoHash returns the value of the "srcinfo_hash" field in the mutation.
func (*DbPackageMutation) SrcinfoHashCleared ¶
func (m *DbPackageMutation) SrcinfoHashCleared() bool
SrcinfoHashCleared returns if the "srcinfo_hash" field was cleared in this mutation.
func (*DbPackageMutation) Status ¶
func (m *DbPackageMutation) Status() (r dbpackage.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DbPackageMutation) StatusCleared ¶
func (m *DbPackageMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (DbPackageMutation) Tx ¶
func (m DbPackageMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DbPackageMutation) Type ¶
func (m *DbPackageMutation) Type() string
Type returns the node type of this mutation (DbPackage).
func (*DbPackageMutation) UTime ¶
func (m *DbPackageMutation) UTime() (r int64, exists bool)
UTime returns the value of the "u_time" field in the mutation.
func (*DbPackageMutation) UTimeCleared ¶
func (m *DbPackageMutation) UTimeCleared() bool
UTimeCleared returns if the "u_time" field was cleared in this mutation.
func (*DbPackageMutation) Updated ¶
func (m *DbPackageMutation) Updated() (r time.Time, exists bool)
Updated returns the value of the "updated" field in the mutation.
func (*DbPackageMutation) UpdatedCleared ¶
func (m *DbPackageMutation) UpdatedCleared() bool
UpdatedCleared returns if the "updated" field was cleared in this mutation.
func (*DbPackageMutation) Version ¶
func (m *DbPackageMutation) Version() (r string, exists bool)
Version returns the value of the "version" field in the mutation.
func (*DbPackageMutation) VersionCleared ¶
func (m *DbPackageMutation) VersionCleared() bool
VersionCleared returns if the "version" field was cleared in this mutation.
func (*DbPackageMutation) Where ¶
func (m *DbPackageMutation) Where(ps ...predicate.DbPackage)
Where appends a list predicates to the DbPackageMutation builder.
type DbPackageQuery ¶
type DbPackageQuery struct {
// contains filtered or unexported fields
}
DbPackageQuery is the builder for querying DbPackage entities.
func (*DbPackageQuery) All ¶
func (dpq *DbPackageQuery) All(ctx context.Context) ([]*DbPackage, error)
All executes the query and returns a list of DbPackages.
func (*DbPackageQuery) AllX ¶
func (dpq *DbPackageQuery) AllX(ctx context.Context) []*DbPackage
AllX is like All, but panics if an error occurs.
func (*DbPackageQuery) Clone ¶
func (dpq *DbPackageQuery) Clone() *DbPackageQuery
Clone returns a duplicate of the DbPackageQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DbPackageQuery) Count ¶
func (dpq *DbPackageQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DbPackageQuery) CountX ¶
func (dpq *DbPackageQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DbPackageQuery) Exist ¶
func (dpq *DbPackageQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DbPackageQuery) ExistX ¶
func (dpq *DbPackageQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DbPackageQuery) First ¶
func (dpq *DbPackageQuery) First(ctx context.Context) (*DbPackage, error)
First returns the first DbPackage entity from the query. Returns a *NotFoundError when no DbPackage was found.
func (*DbPackageQuery) FirstID ¶
func (dpq *DbPackageQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first DbPackage ID from the query. Returns a *NotFoundError when no DbPackage ID was found.
func (*DbPackageQuery) FirstIDX ¶
func (dpq *DbPackageQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*DbPackageQuery) FirstX ¶
func (dpq *DbPackageQuery) FirstX(ctx context.Context) *DbPackage
FirstX is like First, but panics if an error occurs.
func (*DbPackageQuery) GroupBy ¶
func (dpq *DbPackageQuery) GroupBy(field string, fields ...string) *DbPackageGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Pkgbase string `json:"pkgbase,omitempty"` Count int `json:"count,omitempty"` } client.DbPackage.Query(). GroupBy(dbpackage.FieldPkgbase). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DbPackageQuery) IDs ¶
func (dpq *DbPackageQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of DbPackage IDs.
func (*DbPackageQuery) IDsX ¶
func (dpq *DbPackageQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*DbPackageQuery) Limit ¶
func (dpq *DbPackageQuery) Limit(limit int) *DbPackageQuery
Limit adds a limit step to the query.
func (*DbPackageQuery) Modify ¶
func (dpq *DbPackageQuery) Modify(modifiers ...func(s *sql.Selector)) *DbPackageSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DbPackageQuery) Offset ¶
func (dpq *DbPackageQuery) Offset(offset int) *DbPackageQuery
Offset adds an offset step to the query.
func (*DbPackageQuery) Only ¶
func (dpq *DbPackageQuery) Only(ctx context.Context) (*DbPackage, error)
Only returns a single DbPackage entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DbPackage entity is found. Returns a *NotFoundError when no DbPackage entities are found.
func (*DbPackageQuery) OnlyID ¶
func (dpq *DbPackageQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only DbPackage ID in the query. Returns a *NotSingularError when more than one DbPackage ID is found. Returns a *NotFoundError when no entities are found.
func (*DbPackageQuery) OnlyIDX ¶
func (dpq *DbPackageQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DbPackageQuery) OnlyX ¶
func (dpq *DbPackageQuery) OnlyX(ctx context.Context) *DbPackage
OnlyX is like Only, but panics if an error occurs.
func (*DbPackageQuery) Order ¶
func (dpq *DbPackageQuery) Order(o ...OrderFunc) *DbPackageQuery
Order adds an order step to the query.
func (*DbPackageQuery) Select ¶
func (dpq *DbPackageQuery) Select(fields ...string) *DbPackageSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Pkgbase string `json:"pkgbase,omitempty"` } client.DbPackage.Query(). Select(dbpackage.FieldPkgbase). Scan(ctx, &v)
func (*DbPackageQuery) Unique ¶
func (dpq *DbPackageQuery) Unique(unique bool) *DbPackageQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*DbPackageQuery) Where ¶
func (dpq *DbPackageQuery) Where(ps ...predicate.DbPackage) *DbPackageQuery
Where adds a new predicate for the DbPackageQuery builder.
type DbPackageSelect ¶
type DbPackageSelect struct { *DbPackageQuery // contains filtered or unexported fields }
DbPackageSelect is the builder for selecting fields of DbPackage entities.
func (*DbPackageSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DbPackageSelect) BoolX ¶
BoolX is like Bool, but panics if an error occurs.
func (*DbPackageSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DbPackageSelect) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*DbPackageSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DbPackageSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DbPackageSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DbPackageSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DbPackageSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DbPackageSelect) IntX ¶
IntX is like Int, but panics if an error occurs.
func (*DbPackageSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DbPackageSelect) IntsX ¶
IntsX is like Ints, but panics if an error occurs.
func (*DbPackageSelect) Modify ¶
func (dps *DbPackageSelect) Modify(modifiers ...func(s *sql.Selector)) *DbPackageSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DbPackageSelect) Scan ¶
func (dps *DbPackageSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*DbPackageSelect) ScanX ¶
ScanX is like Scan, but panics if an error occurs.
func (*DbPackageSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DbPackageSelect) StringX ¶
StringX is like String, but panics if an error occurs.
func (*DbPackageSelect) Strings ¶
Strings returns list of strings from a selector. It is only allowed when selecting one field.
type DbPackageUpdate ¶
type DbPackageUpdate struct {
// contains filtered or unexported fields
}
DbPackageUpdate is the builder for updating DbPackage entities.
func (*DbPackageUpdate) AddIoIn ¶
func (dpu *DbPackageUpdate) AddIoIn(i int64) *DbPackageUpdate
AddIoIn adds i to the "io_in" field.
func (*DbPackageUpdate) AddIoOut ¶
func (dpu *DbPackageUpdate) AddIoOut(i int64) *DbPackageUpdate
AddIoOut adds i to the "io_out" field.
func (*DbPackageUpdate) AddMaxRss ¶
func (dpu *DbPackageUpdate) AddMaxRss(i int64) *DbPackageUpdate
AddMaxRss adds i to the "max_rss" field.
func (*DbPackageUpdate) AddSTime ¶
func (dpu *DbPackageUpdate) AddSTime(i int64) *DbPackageUpdate
AddSTime adds i to the "s_time" field.
func (*DbPackageUpdate) AddUTime ¶
func (dpu *DbPackageUpdate) AddUTime(i int64) *DbPackageUpdate
AddUTime adds i to the "u_time" field.
func (*DbPackageUpdate) ClearBuildTimeStart ¶
func (dpu *DbPackageUpdate) ClearBuildTimeStart() *DbPackageUpdate
ClearBuildTimeStart clears the value of the "build_time_start" field.
func (*DbPackageUpdate) ClearDebugSymbols ¶
func (dpu *DbPackageUpdate) ClearDebugSymbols() *DbPackageUpdate
ClearDebugSymbols clears the value of the "debug_symbols" field.
func (*DbPackageUpdate) ClearHash ¶
func (dpu *DbPackageUpdate) ClearHash() *DbPackageUpdate
ClearHash clears the value of the "hash" field.
func (*DbPackageUpdate) ClearIoIn ¶
func (dpu *DbPackageUpdate) ClearIoIn() *DbPackageUpdate
ClearIoIn clears the value of the "io_in" field.
func (*DbPackageUpdate) ClearIoOut ¶
func (dpu *DbPackageUpdate) ClearIoOut() *DbPackageUpdate
ClearIoOut clears the value of the "io_out" field.
func (*DbPackageUpdate) ClearLastVerified ¶
func (dpu *DbPackageUpdate) ClearLastVerified() *DbPackageUpdate
ClearLastVerified clears the value of the "last_verified" field.
func (*DbPackageUpdate) ClearLastVersionBuild ¶
func (dpu *DbPackageUpdate) ClearLastVersionBuild() *DbPackageUpdate
ClearLastVersionBuild clears the value of the "last_version_build" field.
func (*DbPackageUpdate) ClearLto ¶
func (dpu *DbPackageUpdate) ClearLto() *DbPackageUpdate
ClearLto clears the value of the "lto" field.
func (*DbPackageUpdate) ClearMaxRss ¶
func (dpu *DbPackageUpdate) ClearMaxRss() *DbPackageUpdate
ClearMaxRss clears the value of the "max_rss" field.
func (*DbPackageUpdate) ClearPackages ¶
func (dpu *DbPackageUpdate) ClearPackages() *DbPackageUpdate
ClearPackages clears the value of the "packages" field.
func (*DbPackageUpdate) ClearPkgbuild ¶
func (dpu *DbPackageUpdate) ClearPkgbuild() *DbPackageUpdate
ClearPkgbuild clears the value of the "pkgbuild" field.
func (*DbPackageUpdate) ClearRepoVersion ¶
func (dpu *DbPackageUpdate) ClearRepoVersion() *DbPackageUpdate
ClearRepoVersion clears the value of the "repo_version" field.
func (*DbPackageUpdate) ClearSTime ¶
func (dpu *DbPackageUpdate) ClearSTime() *DbPackageUpdate
ClearSTime clears the value of the "s_time" field.
func (*DbPackageUpdate) ClearSkipReason ¶
func (dpu *DbPackageUpdate) ClearSkipReason() *DbPackageUpdate
ClearSkipReason clears the value of the "skip_reason" field.
func (*DbPackageUpdate) ClearSrcinfo ¶
func (dpu *DbPackageUpdate) ClearSrcinfo() *DbPackageUpdate
ClearSrcinfo clears the value of the "srcinfo" field.
func (*DbPackageUpdate) ClearSrcinfoHash ¶
func (dpu *DbPackageUpdate) ClearSrcinfoHash() *DbPackageUpdate
ClearSrcinfoHash clears the value of the "srcinfo_hash" field.
func (*DbPackageUpdate) ClearStatus ¶
func (dpu *DbPackageUpdate) ClearStatus() *DbPackageUpdate
ClearStatus clears the value of the "status" field.
func (*DbPackageUpdate) ClearUTime ¶
func (dpu *DbPackageUpdate) ClearUTime() *DbPackageUpdate
ClearUTime clears the value of the "u_time" field.
func (*DbPackageUpdate) ClearUpdated ¶
func (dpu *DbPackageUpdate) ClearUpdated() *DbPackageUpdate
ClearUpdated clears the value of the "updated" field.
func (*DbPackageUpdate) ClearVersion ¶
func (dpu *DbPackageUpdate) ClearVersion() *DbPackageUpdate
ClearVersion clears the value of the "version" field.
func (*DbPackageUpdate) Exec ¶
func (dpu *DbPackageUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DbPackageUpdate) ExecX ¶
func (dpu *DbPackageUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DbPackageUpdate) Modify ¶
func (dpu *DbPackageUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DbPackageUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DbPackageUpdate) Mutation ¶
func (dpu *DbPackageUpdate) Mutation() *DbPackageMutation
Mutation returns the DbPackageMutation object of the builder.
func (*DbPackageUpdate) Save ¶
func (dpu *DbPackageUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DbPackageUpdate) SaveX ¶
func (dpu *DbPackageUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DbPackageUpdate) SetBuildTimeStart ¶
func (dpu *DbPackageUpdate) SetBuildTimeStart(t time.Time) *DbPackageUpdate
SetBuildTimeStart sets the "build_time_start" field.
func (*DbPackageUpdate) SetDebugSymbols ¶
func (dpu *DbPackageUpdate) SetDebugSymbols(ds dbpackage.DebugSymbols) *DbPackageUpdate
SetDebugSymbols sets the "debug_symbols" field.
func (*DbPackageUpdate) SetHash ¶
func (dpu *DbPackageUpdate) SetHash(s string) *DbPackageUpdate
SetHash sets the "hash" field.
func (*DbPackageUpdate) SetIoIn ¶
func (dpu *DbPackageUpdate) SetIoIn(i int64) *DbPackageUpdate
SetIoIn sets the "io_in" field.
func (*DbPackageUpdate) SetIoOut ¶
func (dpu *DbPackageUpdate) SetIoOut(i int64) *DbPackageUpdate
SetIoOut sets the "io_out" field.
func (*DbPackageUpdate) SetLastVerified ¶
func (dpu *DbPackageUpdate) SetLastVerified(t time.Time) *DbPackageUpdate
SetLastVerified sets the "last_verified" field.
func (*DbPackageUpdate) SetLastVersionBuild ¶
func (dpu *DbPackageUpdate) SetLastVersionBuild(s string) *DbPackageUpdate
SetLastVersionBuild sets the "last_version_build" field.
func (*DbPackageUpdate) SetLto ¶
func (dpu *DbPackageUpdate) SetLto(d dbpackage.Lto) *DbPackageUpdate
SetLto sets the "lto" field.
func (*DbPackageUpdate) SetMaxRss ¶
func (dpu *DbPackageUpdate) SetMaxRss(i int64) *DbPackageUpdate
SetMaxRss sets the "max_rss" field.
func (*DbPackageUpdate) SetNillableBuildTimeStart ¶
func (dpu *DbPackageUpdate) SetNillableBuildTimeStart(t *time.Time) *DbPackageUpdate
SetNillableBuildTimeStart sets the "build_time_start" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableDebugSymbols ¶
func (dpu *DbPackageUpdate) SetNillableDebugSymbols(ds *dbpackage.DebugSymbols) *DbPackageUpdate
SetNillableDebugSymbols sets the "debug_symbols" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableHash ¶
func (dpu *DbPackageUpdate) SetNillableHash(s *string) *DbPackageUpdate
SetNillableHash sets the "hash" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableIoIn ¶
func (dpu *DbPackageUpdate) SetNillableIoIn(i *int64) *DbPackageUpdate
SetNillableIoIn sets the "io_in" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableIoOut ¶
func (dpu *DbPackageUpdate) SetNillableIoOut(i *int64) *DbPackageUpdate
SetNillableIoOut sets the "io_out" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableLastVerified ¶
func (dpu *DbPackageUpdate) SetNillableLastVerified(t *time.Time) *DbPackageUpdate
SetNillableLastVerified sets the "last_verified" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableLastVersionBuild ¶
func (dpu *DbPackageUpdate) SetNillableLastVersionBuild(s *string) *DbPackageUpdate
SetNillableLastVersionBuild sets the "last_version_build" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableLto ¶
func (dpu *DbPackageUpdate) SetNillableLto(d *dbpackage.Lto) *DbPackageUpdate
SetNillableLto sets the "lto" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableMaxRss ¶
func (dpu *DbPackageUpdate) SetNillableMaxRss(i *int64) *DbPackageUpdate
SetNillableMaxRss sets the "max_rss" field if the given value is not nil.
func (*DbPackageUpdate) SetNillablePkgbuild ¶
func (dpu *DbPackageUpdate) SetNillablePkgbuild(s *string) *DbPackageUpdate
SetNillablePkgbuild sets the "pkgbuild" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableRepoVersion ¶
func (dpu *DbPackageUpdate) SetNillableRepoVersion(s *string) *DbPackageUpdate
SetNillableRepoVersion sets the "repo_version" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableSTime ¶
func (dpu *DbPackageUpdate) SetNillableSTime(i *int64) *DbPackageUpdate
SetNillableSTime sets the "s_time" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableSkipReason ¶
func (dpu *DbPackageUpdate) SetNillableSkipReason(s *string) *DbPackageUpdate
SetNillableSkipReason sets the "skip_reason" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableSrcinfo ¶
func (dpu *DbPackageUpdate) SetNillableSrcinfo(s *string) *DbPackageUpdate
SetNillableSrcinfo sets the "srcinfo" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableSrcinfoHash ¶
func (dpu *DbPackageUpdate) SetNillableSrcinfoHash(s *string) *DbPackageUpdate
SetNillableSrcinfoHash sets the "srcinfo_hash" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableStatus ¶
func (dpu *DbPackageUpdate) SetNillableStatus(d *dbpackage.Status) *DbPackageUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableUTime ¶
func (dpu *DbPackageUpdate) SetNillableUTime(i *int64) *DbPackageUpdate
SetNillableUTime sets the "u_time" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableUpdated ¶
func (dpu *DbPackageUpdate) SetNillableUpdated(t *time.Time) *DbPackageUpdate
SetNillableUpdated sets the "updated" field if the given value is not nil.
func (*DbPackageUpdate) SetNillableVersion ¶
func (dpu *DbPackageUpdate) SetNillableVersion(s *string) *DbPackageUpdate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*DbPackageUpdate) SetPackages ¶
func (dpu *DbPackageUpdate) SetPackages(s []string) *DbPackageUpdate
SetPackages sets the "packages" field.
func (*DbPackageUpdate) SetPkgbuild ¶
func (dpu *DbPackageUpdate) SetPkgbuild(s string) *DbPackageUpdate
SetPkgbuild sets the "pkgbuild" field.
func (*DbPackageUpdate) SetRepoVersion ¶
func (dpu *DbPackageUpdate) SetRepoVersion(s string) *DbPackageUpdate
SetRepoVersion sets the "repo_version" field.
func (*DbPackageUpdate) SetRepository ¶
func (dpu *DbPackageUpdate) SetRepository(d dbpackage.Repository) *DbPackageUpdate
SetRepository sets the "repository" field.
func (*DbPackageUpdate) SetSTime ¶
func (dpu *DbPackageUpdate) SetSTime(i int64) *DbPackageUpdate
SetSTime sets the "s_time" field.
func (*DbPackageUpdate) SetSkipReason ¶
func (dpu *DbPackageUpdate) SetSkipReason(s string) *DbPackageUpdate
SetSkipReason sets the "skip_reason" field.
func (*DbPackageUpdate) SetSrcinfo ¶
func (dpu *DbPackageUpdate) SetSrcinfo(s string) *DbPackageUpdate
SetSrcinfo sets the "srcinfo" field.
func (*DbPackageUpdate) SetSrcinfoHash ¶
func (dpu *DbPackageUpdate) SetSrcinfoHash(s string) *DbPackageUpdate
SetSrcinfoHash sets the "srcinfo_hash" field.
func (*DbPackageUpdate) SetStatus ¶
func (dpu *DbPackageUpdate) SetStatus(d dbpackage.Status) *DbPackageUpdate
SetStatus sets the "status" field.
func (*DbPackageUpdate) SetUTime ¶
func (dpu *DbPackageUpdate) SetUTime(i int64) *DbPackageUpdate
SetUTime sets the "u_time" field.
func (*DbPackageUpdate) SetUpdated ¶
func (dpu *DbPackageUpdate) SetUpdated(t time.Time) *DbPackageUpdate
SetUpdated sets the "updated" field.
func (*DbPackageUpdate) SetVersion ¶
func (dpu *DbPackageUpdate) SetVersion(s string) *DbPackageUpdate
SetVersion sets the "version" field.
func (*DbPackageUpdate) Where ¶
func (dpu *DbPackageUpdate) Where(ps ...predicate.DbPackage) *DbPackageUpdate
Where appends a list predicates to the DbPackageUpdate builder.
type DbPackageUpdateOne ¶
type DbPackageUpdateOne struct {
// contains filtered or unexported fields
}
DbPackageUpdateOne is the builder for updating a single DbPackage entity.
func (*DbPackageUpdateOne) AddIoIn ¶
func (dpuo *DbPackageUpdateOne) AddIoIn(i int64) *DbPackageUpdateOne
AddIoIn adds i to the "io_in" field.
func (*DbPackageUpdateOne) AddIoOut ¶
func (dpuo *DbPackageUpdateOne) AddIoOut(i int64) *DbPackageUpdateOne
AddIoOut adds i to the "io_out" field.
func (*DbPackageUpdateOne) AddMaxRss ¶
func (dpuo *DbPackageUpdateOne) AddMaxRss(i int64) *DbPackageUpdateOne
AddMaxRss adds i to the "max_rss" field.
func (*DbPackageUpdateOne) AddSTime ¶
func (dpuo *DbPackageUpdateOne) AddSTime(i int64) *DbPackageUpdateOne
AddSTime adds i to the "s_time" field.
func (*DbPackageUpdateOne) AddUTime ¶
func (dpuo *DbPackageUpdateOne) AddUTime(i int64) *DbPackageUpdateOne
AddUTime adds i to the "u_time" field.
func (*DbPackageUpdateOne) ClearBuildTimeStart ¶
func (dpuo *DbPackageUpdateOne) ClearBuildTimeStart() *DbPackageUpdateOne
ClearBuildTimeStart clears the value of the "build_time_start" field.
func (*DbPackageUpdateOne) ClearDebugSymbols ¶
func (dpuo *DbPackageUpdateOne) ClearDebugSymbols() *DbPackageUpdateOne
ClearDebugSymbols clears the value of the "debug_symbols" field.
func (*DbPackageUpdateOne) ClearHash ¶
func (dpuo *DbPackageUpdateOne) ClearHash() *DbPackageUpdateOne
ClearHash clears the value of the "hash" field.
func (*DbPackageUpdateOne) ClearIoIn ¶
func (dpuo *DbPackageUpdateOne) ClearIoIn() *DbPackageUpdateOne
ClearIoIn clears the value of the "io_in" field.
func (*DbPackageUpdateOne) ClearIoOut ¶
func (dpuo *DbPackageUpdateOne) ClearIoOut() *DbPackageUpdateOne
ClearIoOut clears the value of the "io_out" field.
func (*DbPackageUpdateOne) ClearLastVerified ¶
func (dpuo *DbPackageUpdateOne) ClearLastVerified() *DbPackageUpdateOne
ClearLastVerified clears the value of the "last_verified" field.
func (*DbPackageUpdateOne) ClearLastVersionBuild ¶
func (dpuo *DbPackageUpdateOne) ClearLastVersionBuild() *DbPackageUpdateOne
ClearLastVersionBuild clears the value of the "last_version_build" field.
func (*DbPackageUpdateOne) ClearLto ¶
func (dpuo *DbPackageUpdateOne) ClearLto() *DbPackageUpdateOne
ClearLto clears the value of the "lto" field.
func (*DbPackageUpdateOne) ClearMaxRss ¶
func (dpuo *DbPackageUpdateOne) ClearMaxRss() *DbPackageUpdateOne
ClearMaxRss clears the value of the "max_rss" field.
func (*DbPackageUpdateOne) ClearPackages ¶
func (dpuo *DbPackageUpdateOne) ClearPackages() *DbPackageUpdateOne
ClearPackages clears the value of the "packages" field.
func (*DbPackageUpdateOne) ClearPkgbuild ¶
func (dpuo *DbPackageUpdateOne) ClearPkgbuild() *DbPackageUpdateOne
ClearPkgbuild clears the value of the "pkgbuild" field.
func (*DbPackageUpdateOne) ClearRepoVersion ¶
func (dpuo *DbPackageUpdateOne) ClearRepoVersion() *DbPackageUpdateOne
ClearRepoVersion clears the value of the "repo_version" field.
func (*DbPackageUpdateOne) ClearSTime ¶
func (dpuo *DbPackageUpdateOne) ClearSTime() *DbPackageUpdateOne
ClearSTime clears the value of the "s_time" field.
func (*DbPackageUpdateOne) ClearSkipReason ¶
func (dpuo *DbPackageUpdateOne) ClearSkipReason() *DbPackageUpdateOne
ClearSkipReason clears the value of the "skip_reason" field.
func (*DbPackageUpdateOne) ClearSrcinfo ¶
func (dpuo *DbPackageUpdateOne) ClearSrcinfo() *DbPackageUpdateOne
ClearSrcinfo clears the value of the "srcinfo" field.
func (*DbPackageUpdateOne) ClearSrcinfoHash ¶
func (dpuo *DbPackageUpdateOne) ClearSrcinfoHash() *DbPackageUpdateOne
ClearSrcinfoHash clears the value of the "srcinfo_hash" field.
func (*DbPackageUpdateOne) ClearStatus ¶
func (dpuo *DbPackageUpdateOne) ClearStatus() *DbPackageUpdateOne
ClearStatus clears the value of the "status" field.
func (*DbPackageUpdateOne) ClearUTime ¶
func (dpuo *DbPackageUpdateOne) ClearUTime() *DbPackageUpdateOne
ClearUTime clears the value of the "u_time" field.
func (*DbPackageUpdateOne) ClearUpdated ¶
func (dpuo *DbPackageUpdateOne) ClearUpdated() *DbPackageUpdateOne
ClearUpdated clears the value of the "updated" field.
func (*DbPackageUpdateOne) ClearVersion ¶
func (dpuo *DbPackageUpdateOne) ClearVersion() *DbPackageUpdateOne
ClearVersion clears the value of the "version" field.
func (*DbPackageUpdateOne) Exec ¶
func (dpuo *DbPackageUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DbPackageUpdateOne) ExecX ¶
func (dpuo *DbPackageUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DbPackageUpdateOne) Modify ¶
func (dpuo *DbPackageUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DbPackageUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DbPackageUpdateOne) Mutation ¶
func (dpuo *DbPackageUpdateOne) Mutation() *DbPackageMutation
Mutation returns the DbPackageMutation object of the builder.
func (*DbPackageUpdateOne) Save ¶
func (dpuo *DbPackageUpdateOne) Save(ctx context.Context) (*DbPackage, error)
Save executes the query and returns the updated DbPackage entity.
func (*DbPackageUpdateOne) SaveX ¶
func (dpuo *DbPackageUpdateOne) SaveX(ctx context.Context) *DbPackage
SaveX is like Save, but panics if an error occurs.
func (*DbPackageUpdateOne) Select ¶
func (dpuo *DbPackageUpdateOne) Select(field string, fields ...string) *DbPackageUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DbPackageUpdateOne) SetBuildTimeStart ¶
func (dpuo *DbPackageUpdateOne) SetBuildTimeStart(t time.Time) *DbPackageUpdateOne
SetBuildTimeStart sets the "build_time_start" field.
func (*DbPackageUpdateOne) SetDebugSymbols ¶
func (dpuo *DbPackageUpdateOne) SetDebugSymbols(ds dbpackage.DebugSymbols) *DbPackageUpdateOne
SetDebugSymbols sets the "debug_symbols" field.
func (*DbPackageUpdateOne) SetHash ¶
func (dpuo *DbPackageUpdateOne) SetHash(s string) *DbPackageUpdateOne
SetHash sets the "hash" field.
func (*DbPackageUpdateOne) SetIoIn ¶
func (dpuo *DbPackageUpdateOne) SetIoIn(i int64) *DbPackageUpdateOne
SetIoIn sets the "io_in" field.
func (*DbPackageUpdateOne) SetIoOut ¶
func (dpuo *DbPackageUpdateOne) SetIoOut(i int64) *DbPackageUpdateOne
SetIoOut sets the "io_out" field.
func (*DbPackageUpdateOne) SetLastVerified ¶
func (dpuo *DbPackageUpdateOne) SetLastVerified(t time.Time) *DbPackageUpdateOne
SetLastVerified sets the "last_verified" field.
func (*DbPackageUpdateOne) SetLastVersionBuild ¶
func (dpuo *DbPackageUpdateOne) SetLastVersionBuild(s string) *DbPackageUpdateOne
SetLastVersionBuild sets the "last_version_build" field.
func (*DbPackageUpdateOne) SetLto ¶
func (dpuo *DbPackageUpdateOne) SetLto(d dbpackage.Lto) *DbPackageUpdateOne
SetLto sets the "lto" field.
func (*DbPackageUpdateOne) SetMaxRss ¶
func (dpuo *DbPackageUpdateOne) SetMaxRss(i int64) *DbPackageUpdateOne
SetMaxRss sets the "max_rss" field.
func (*DbPackageUpdateOne) SetNillableBuildTimeStart ¶
func (dpuo *DbPackageUpdateOne) SetNillableBuildTimeStart(t *time.Time) *DbPackageUpdateOne
SetNillableBuildTimeStart sets the "build_time_start" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableDebugSymbols ¶
func (dpuo *DbPackageUpdateOne) SetNillableDebugSymbols(ds *dbpackage.DebugSymbols) *DbPackageUpdateOne
SetNillableDebugSymbols sets the "debug_symbols" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableHash ¶
func (dpuo *DbPackageUpdateOne) SetNillableHash(s *string) *DbPackageUpdateOne
SetNillableHash sets the "hash" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableIoIn ¶
func (dpuo *DbPackageUpdateOne) SetNillableIoIn(i *int64) *DbPackageUpdateOne
SetNillableIoIn sets the "io_in" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableIoOut ¶
func (dpuo *DbPackageUpdateOne) SetNillableIoOut(i *int64) *DbPackageUpdateOne
SetNillableIoOut sets the "io_out" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableLastVerified ¶
func (dpuo *DbPackageUpdateOne) SetNillableLastVerified(t *time.Time) *DbPackageUpdateOne
SetNillableLastVerified sets the "last_verified" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableLastVersionBuild ¶
func (dpuo *DbPackageUpdateOne) SetNillableLastVersionBuild(s *string) *DbPackageUpdateOne
SetNillableLastVersionBuild sets the "last_version_build" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableLto ¶
func (dpuo *DbPackageUpdateOne) SetNillableLto(d *dbpackage.Lto) *DbPackageUpdateOne
SetNillableLto sets the "lto" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableMaxRss ¶
func (dpuo *DbPackageUpdateOne) SetNillableMaxRss(i *int64) *DbPackageUpdateOne
SetNillableMaxRss sets the "max_rss" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillablePkgbuild ¶
func (dpuo *DbPackageUpdateOne) SetNillablePkgbuild(s *string) *DbPackageUpdateOne
SetNillablePkgbuild sets the "pkgbuild" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableRepoVersion ¶
func (dpuo *DbPackageUpdateOne) SetNillableRepoVersion(s *string) *DbPackageUpdateOne
SetNillableRepoVersion sets the "repo_version" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableSTime ¶
func (dpuo *DbPackageUpdateOne) SetNillableSTime(i *int64) *DbPackageUpdateOne
SetNillableSTime sets the "s_time" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableSkipReason ¶
func (dpuo *DbPackageUpdateOne) SetNillableSkipReason(s *string) *DbPackageUpdateOne
SetNillableSkipReason sets the "skip_reason" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableSrcinfo ¶
func (dpuo *DbPackageUpdateOne) SetNillableSrcinfo(s *string) *DbPackageUpdateOne
SetNillableSrcinfo sets the "srcinfo" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableSrcinfoHash ¶
func (dpuo *DbPackageUpdateOne) SetNillableSrcinfoHash(s *string) *DbPackageUpdateOne
SetNillableSrcinfoHash sets the "srcinfo_hash" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableStatus ¶
func (dpuo *DbPackageUpdateOne) SetNillableStatus(d *dbpackage.Status) *DbPackageUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableUTime ¶
func (dpuo *DbPackageUpdateOne) SetNillableUTime(i *int64) *DbPackageUpdateOne
SetNillableUTime sets the "u_time" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableUpdated ¶
func (dpuo *DbPackageUpdateOne) SetNillableUpdated(t *time.Time) *DbPackageUpdateOne
SetNillableUpdated sets the "updated" field if the given value is not nil.
func (*DbPackageUpdateOne) SetNillableVersion ¶
func (dpuo *DbPackageUpdateOne) SetNillableVersion(s *string) *DbPackageUpdateOne
SetNillableVersion sets the "version" field if the given value is not nil.
func (*DbPackageUpdateOne) SetPackages ¶
func (dpuo *DbPackageUpdateOne) SetPackages(s []string) *DbPackageUpdateOne
SetPackages sets the "packages" field.
func (*DbPackageUpdateOne) SetPkgbuild ¶
func (dpuo *DbPackageUpdateOne) SetPkgbuild(s string) *DbPackageUpdateOne
SetPkgbuild sets the "pkgbuild" field.
func (*DbPackageUpdateOne) SetRepoVersion ¶
func (dpuo *DbPackageUpdateOne) SetRepoVersion(s string) *DbPackageUpdateOne
SetRepoVersion sets the "repo_version" field.
func (*DbPackageUpdateOne) SetRepository ¶
func (dpuo *DbPackageUpdateOne) SetRepository(d dbpackage.Repository) *DbPackageUpdateOne
SetRepository sets the "repository" field.
func (*DbPackageUpdateOne) SetSTime ¶
func (dpuo *DbPackageUpdateOne) SetSTime(i int64) *DbPackageUpdateOne
SetSTime sets the "s_time" field.
func (*DbPackageUpdateOne) SetSkipReason ¶
func (dpuo *DbPackageUpdateOne) SetSkipReason(s string) *DbPackageUpdateOne
SetSkipReason sets the "skip_reason" field.
func (*DbPackageUpdateOne) SetSrcinfo ¶
func (dpuo *DbPackageUpdateOne) SetSrcinfo(s string) *DbPackageUpdateOne
SetSrcinfo sets the "srcinfo" field.
func (*DbPackageUpdateOne) SetSrcinfoHash ¶
func (dpuo *DbPackageUpdateOne) SetSrcinfoHash(s string) *DbPackageUpdateOne
SetSrcinfoHash sets the "srcinfo_hash" field.
func (*DbPackageUpdateOne) SetStatus ¶
func (dpuo *DbPackageUpdateOne) SetStatus(d dbpackage.Status) *DbPackageUpdateOne
SetStatus sets the "status" field.
func (*DbPackageUpdateOne) SetUTime ¶
func (dpuo *DbPackageUpdateOne) SetUTime(i int64) *DbPackageUpdateOne
SetUTime sets the "u_time" field.
func (*DbPackageUpdateOne) SetUpdated ¶
func (dpuo *DbPackageUpdateOne) SetUpdated(t time.Time) *DbPackageUpdateOne
SetUpdated sets the "updated" field.
func (*DbPackageUpdateOne) SetVersion ¶
func (dpuo *DbPackageUpdateOne) SetVersion(s string) *DbPackageUpdateOne
SetVersion sets the "version" field.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type Tx ¶
type Tx struct { // DbPackage is the client for interacting with the DbPackage builders. DbPackage *DbPackageClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) Client ¶
Client returns a Client that binds to current transaction.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.