more follow-up fixes for new build-queue

pull/109/head
Giovanni Harting 7 months ago
parent 65f3247d20
commit ed2a42318e
  1. 4
      config_dist.yaml
  2. 79
      ent/dbpackage.go
  3. 18
      ent/dbpackage/dbpackage.go
  4. 582
      ent/dbpackage/where.go
  5. 132
      ent/dbpackage_create.go
  6. 536
      ent/dbpackage_update.go
  7. 6
      ent/migrate/schema.go
  8. 615
      ent/mutation.go
  9. 6
      ent/schema/dbpackage.go
  10. 8
      go.mod
  11. 722
      go.sum
  12. 31
      main.go
  13. 54
      proto_package.go
  14. 4
      tpl/packages.html
  15. 9
      utils.go

@ -62,8 +62,8 @@ build:
worker: 4
makej: 8
checks: true
# builds over this threshold are considered slow (in minutes)
slow_queue_threshold: 60
# builds over this threshold are considered slow (in cpu-time-seconds)
slow_queue_threshold: 14400.0
logging:
level: INFO

@ -35,8 +35,6 @@ type DbPackage struct {
RepoVersion string `json:"repo_version,omitempty"`
// BuildTimeStart holds the value of the "build_time_start" field.
BuildTimeStart time.Time `json:"build_time_start,omitempty"`
// BuildTimeEnd holds the value of the "build_time_end" field.
BuildTimeEnd time.Time `json:"build_time_end,omitempty"`
// Updated holds the value of the "updated" field.
Updated time.Time `json:"updated,omitempty"`
// Hash holds the value of the "hash" field.
@ -49,6 +47,16 @@ type DbPackage struct {
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"`
}
// scanValues returns the types for scanning values from sql.Rows.
@ -58,11 +66,11 @@ func (*DbPackage) scanValues(columns []string) ([]interface{}, error) {
switch columns[i] {
case dbpackage.FieldPackages:
values[i] = new([]byte)
case dbpackage.FieldID:
case dbpackage.FieldID, dbpackage.FieldMaxRss, dbpackage.FieldUTime, dbpackage.FieldSTime, dbpackage.FieldIoIn, dbpackage.FieldIoOut:
values[i] = new(sql.NullInt64)
case dbpackage.FieldPkgbase, dbpackage.FieldStatus, dbpackage.FieldSkipReason, dbpackage.FieldRepository, dbpackage.FieldMarch, dbpackage.FieldVersion, dbpackage.FieldRepoVersion, dbpackage.FieldHash, dbpackage.FieldLto, dbpackage.FieldLastVersionBuild, dbpackage.FieldDebugSymbols:
values[i] = new(sql.NullString)
case dbpackage.FieldBuildTimeStart, dbpackage.FieldBuildTimeEnd, dbpackage.FieldUpdated, dbpackage.FieldLastVerified:
case dbpackage.FieldBuildTimeStart, dbpackage.FieldUpdated, dbpackage.FieldLastVerified:
values[i] = new(sql.NullTime)
default:
return nil, fmt.Errorf("unexpected column %q for type DbPackage", columns[i])
@ -141,12 +149,6 @@ func (dp *DbPackage) assignValues(columns []string, values []interface{}) error
} else if value.Valid {
dp.BuildTimeStart = value.Time
}
case dbpackage.FieldBuildTimeEnd:
if value, ok := values[i].(*sql.NullTime); !ok {
return fmt.Errorf("unexpected type %T for field build_time_end", values[i])
} else if value.Valid {
dp.BuildTimeEnd = value.Time
}
case dbpackage.FieldUpdated:
if value, ok := values[i].(*sql.NullTime); !ok {
return fmt.Errorf("unexpected type %T for field updated", values[i])
@ -183,6 +185,41 @@ func (dp *DbPackage) assignValues(columns []string, values []interface{}) error
} else if value.Valid {
dp.DebugSymbols = dbpackage.DebugSymbols(value.String)
}
case dbpackage.FieldMaxRss:
if value, ok := values[i].(*sql.NullInt64); !ok {
return fmt.Errorf("unexpected type %T for field max_rss", values[i])
} else if value.Valid {
dp.MaxRss = new(int64)
*dp.MaxRss = value.Int64
}
case dbpackage.FieldUTime:
if value, ok := values[i].(*sql.NullInt64); !ok {
return fmt.Errorf("unexpected type %T for field u_time", values[i])
} else if value.Valid {
dp.UTime = new(int64)
*dp.UTime = value.Int64
}
case dbpackage.FieldSTime:
if value, ok := values[i].(*sql.NullInt64); !ok {
return fmt.Errorf("unexpected type %T for field s_time", values[i])
} else if value.Valid {
dp.STime = new(int64)
*dp.STime = value.Int64
}
case dbpackage.FieldIoIn:
if value, ok := values[i].(*sql.NullInt64); !ok {
return fmt.Errorf("unexpected type %T for field io_in", values[i])
} else if value.Valid {
dp.IoIn = new(int64)
*dp.IoIn = value.Int64
}
case dbpackage.FieldIoOut:
if value, ok := values[i].(*sql.NullInt64); !ok {
return fmt.Errorf("unexpected type %T for field io_out", values[i])
} else if value.Valid {
dp.IoOut = new(int64)
*dp.IoOut = value.Int64
}
}
}
return nil
@ -229,8 +266,6 @@ func (dp *DbPackage) String() string {
builder.WriteString(dp.RepoVersion)
builder.WriteString(", build_time_start=")
builder.WriteString(dp.BuildTimeStart.Format(time.ANSIC))
builder.WriteString(", build_time_end=")
builder.WriteString(dp.BuildTimeEnd.Format(time.ANSIC))
builder.WriteString(", updated=")
builder.WriteString(dp.Updated.Format(time.ANSIC))
builder.WriteString(", hash=")
@ -243,6 +278,26 @@ func (dp *DbPackage) String() string {
builder.WriteString(dp.LastVerified.Format(time.ANSIC))
builder.WriteString(", debug_symbols=")
builder.WriteString(fmt.Sprintf("%v", dp.DebugSymbols))
if v := dp.MaxRss; v != nil {
builder.WriteString(", max_rss=")
builder.WriteString(fmt.Sprintf("%v", *v))
}
if v := dp.UTime; v != nil {
builder.WriteString(", u_time=")
builder.WriteString(fmt.Sprintf("%v", *v))
}
if v := dp.STime; v != nil {
builder.WriteString(", s_time=")
builder.WriteString(fmt.Sprintf("%v", *v))
}
if v := dp.IoIn; v != nil {
builder.WriteString(", io_in=")
builder.WriteString(fmt.Sprintf("%v", *v))
}
if v := dp.IoOut; v != nil {
builder.WriteString(", io_out=")
builder.WriteString(fmt.Sprintf("%v", *v))
}
builder.WriteByte(')')
return builder.String()
}

@ -29,8 +29,6 @@ const (
FieldRepoVersion = "repo_version"
// FieldBuildTimeStart holds the string denoting the build_time_start field in the database.
FieldBuildTimeStart = "build_time_start"
// FieldBuildTimeEnd holds the string denoting the build_time_end field in the database.
FieldBuildTimeEnd = "build_time_end"
// FieldUpdated holds the string denoting the updated field in the database.
FieldUpdated = "updated"
// FieldHash holds the string denoting the hash field in the database.
@ -43,6 +41,16 @@ const (
FieldLastVerified = "last_verified"
// FieldDebugSymbols holds the string denoting the debug_symbols field in the database.
FieldDebugSymbols = "debug_symbols"
// FieldMaxRss holds the string denoting the max_rss field in the database.
FieldMaxRss = "max_rss"
// FieldUTime holds the string denoting the u_time field in the database.
FieldUTime = "u_time"
// FieldSTime holds the string denoting the s_time field in the database.
FieldSTime = "s_time"
// FieldIoIn holds the string denoting the io_in field in the database.
FieldIoIn = "io_in"
// FieldIoOut holds the string denoting the io_out field in the database.
FieldIoOut = "io_out"
// Table holds the table name of the dbpackage in the database.
Table = "db_packages"
)
@ -59,13 +67,17 @@ var Columns = []string{
FieldVersion,
FieldRepoVersion,
FieldBuildTimeStart,
FieldBuildTimeEnd,
FieldUpdated,
FieldHash,
FieldLto,
FieldLastVersionBuild,
FieldLastVerified,
FieldDebugSymbols,
FieldMaxRss,
FieldUTime,
FieldSTime,
FieldIoIn,
FieldIoOut,
}
// ValidColumn reports if the column name is valid (part of the table columns).

@ -134,13 +134,6 @@ func BuildTimeStart(v time.Time) predicate.DbPackage {
})
}
// BuildTimeEnd applies equality check predicate on the "build_time_end" field. It's identical to BuildTimeEndEQ.
func BuildTimeEnd(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldBuildTimeEnd), v))
})
}
// Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.
func Updated(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
@ -169,6 +162,41 @@ func LastVerified(v time.Time) predicate.DbPackage {
})
}
// MaxRss applies equality check predicate on the "max_rss" field. It's identical to MaxRssEQ.
func MaxRss(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldMaxRss), v))
})
}
// UTime applies equality check predicate on the "u_time" field. It's identical to UTimeEQ.
func UTime(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldUTime), v))
})
}
// STime applies equality check predicate on the "s_time" field. It's identical to STimeEQ.
func STime(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldSTime), v))
})
}
// IoIn applies equality check predicate on the "io_in" field. It's identical to IoInEQ.
func IoIn(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldIoIn), v))
})
}
// IoOut applies equality check predicate on the "io_out" field. It's identical to IoOutEQ.
func IoOut(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldIoOut), v))
})
}
// PkgbaseEQ applies the EQ predicate on the "pkgbase" field.
func PkgbaseEQ(v string) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
@ -980,96 +1008,6 @@ func BuildTimeStartNotNil() predicate.DbPackage {
})
}
// BuildTimeEndEQ applies the EQ predicate on the "build_time_end" field.
func BuildTimeEndEQ(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldBuildTimeEnd), v))
})
}
// BuildTimeEndNEQ applies the NEQ predicate on the "build_time_end" field.
func BuildTimeEndNEQ(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldBuildTimeEnd), v))
})
}
// BuildTimeEndIn applies the In predicate on the "build_time_end" field.
func BuildTimeEndIn(vs ...time.Time) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldBuildTimeEnd), v...))
})
}
// BuildTimeEndNotIn applies the NotIn predicate on the "build_time_end" field.
func BuildTimeEndNotIn(vs ...time.Time) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldBuildTimeEnd), v...))
})
}
// BuildTimeEndGT applies the GT predicate on the "build_time_end" field.
func BuildTimeEndGT(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldBuildTimeEnd), v))
})
}
// BuildTimeEndGTE applies the GTE predicate on the "build_time_end" field.
func BuildTimeEndGTE(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldBuildTimeEnd), v))
})
}
// BuildTimeEndLT applies the LT predicate on the "build_time_end" field.
func BuildTimeEndLT(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldBuildTimeEnd), v))
})
}
// BuildTimeEndLTE applies the LTE predicate on the "build_time_end" field.
func BuildTimeEndLTE(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldBuildTimeEnd), v))
})
}
// BuildTimeEndIsNil applies the IsNil predicate on the "build_time_end" field.
func BuildTimeEndIsNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldBuildTimeEnd)))
})
}
// BuildTimeEndNotNil applies the NotNil predicate on the "build_time_end" field.
func BuildTimeEndNotNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldBuildTimeEnd)))
})
}
// UpdatedEQ applies the EQ predicate on the "updated" field.
func UpdatedEQ(v time.Time) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
@ -1624,6 +1562,456 @@ func DebugSymbolsNotNil() predicate.DbPackage {
})
}
// MaxRssEQ applies the EQ predicate on the "max_rss" field.
func MaxRssEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldMaxRss), v))
})
}
// MaxRssNEQ applies the NEQ predicate on the "max_rss" field.
func MaxRssNEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldMaxRss), v))
})
}
// MaxRssIn applies the In predicate on the "max_rss" field.
func MaxRssIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldMaxRss), v...))
})
}
// MaxRssNotIn applies the NotIn predicate on the "max_rss" field.
func MaxRssNotIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldMaxRss), v...))
})
}
// MaxRssGT applies the GT predicate on the "max_rss" field.
func MaxRssGT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldMaxRss), v))
})
}
// MaxRssGTE applies the GTE predicate on the "max_rss" field.
func MaxRssGTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldMaxRss), v))
})
}
// MaxRssLT applies the LT predicate on the "max_rss" field.
func MaxRssLT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldMaxRss), v))
})
}
// MaxRssLTE applies the LTE predicate on the "max_rss" field.
func MaxRssLTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldMaxRss), v))
})
}
// MaxRssIsNil applies the IsNil predicate on the "max_rss" field.
func MaxRssIsNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldMaxRss)))
})
}
// MaxRssNotNil applies the NotNil predicate on the "max_rss" field.
func MaxRssNotNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldMaxRss)))
})
}
// UTimeEQ applies the EQ predicate on the "u_time" field.
func UTimeEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldUTime), v))
})
}
// UTimeNEQ applies the NEQ predicate on the "u_time" field.
func UTimeNEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldUTime), v))
})
}
// UTimeIn applies the In predicate on the "u_time" field.
func UTimeIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldUTime), v...))
})
}
// UTimeNotIn applies the NotIn predicate on the "u_time" field.
func UTimeNotIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldUTime), v...))
})
}
// UTimeGT applies the GT predicate on the "u_time" field.
func UTimeGT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldUTime), v))
})
}
// UTimeGTE applies the GTE predicate on the "u_time" field.
func UTimeGTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldUTime), v))
})
}
// UTimeLT applies the LT predicate on the "u_time" field.
func UTimeLT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldUTime), v))
})
}
// UTimeLTE applies the LTE predicate on the "u_time" field.
func UTimeLTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldUTime), v))
})
}
// UTimeIsNil applies the IsNil predicate on the "u_time" field.
func UTimeIsNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldUTime)))
})
}
// UTimeNotNil applies the NotNil predicate on the "u_time" field.
func UTimeNotNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldUTime)))
})
}
// STimeEQ applies the EQ predicate on the "s_time" field.
func STimeEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldSTime), v))
})
}
// STimeNEQ applies the NEQ predicate on the "s_time" field.
func STimeNEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldSTime), v))
})
}
// STimeIn applies the In predicate on the "s_time" field.
func STimeIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldSTime), v...))
})
}
// STimeNotIn applies the NotIn predicate on the "s_time" field.
func STimeNotIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldSTime), v...))
})
}
// STimeGT applies the GT predicate on the "s_time" field.
func STimeGT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldSTime), v))
})
}
// STimeGTE applies the GTE predicate on the "s_time" field.
func STimeGTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldSTime), v))
})
}
// STimeLT applies the LT predicate on the "s_time" field.
func STimeLT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldSTime), v))
})
}
// STimeLTE applies the LTE predicate on the "s_time" field.
func STimeLTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldSTime), v))
})
}
// STimeIsNil applies the IsNil predicate on the "s_time" field.
func STimeIsNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldSTime)))
})
}
// STimeNotNil applies the NotNil predicate on the "s_time" field.
func STimeNotNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldSTime)))
})
}
// IoInEQ applies the EQ predicate on the "io_in" field.
func IoInEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldIoIn), v))
})
}
// IoInNEQ applies the NEQ predicate on the "io_in" field.
func IoInNEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldIoIn), v))
})
}
// IoInIn applies the In predicate on the "io_in" field.
func IoInIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldIoIn), v...))
})
}
// IoInNotIn applies the NotIn predicate on the "io_in" field.
func IoInNotIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldIoIn), v...))
})
}
// IoInGT applies the GT predicate on the "io_in" field.
func IoInGT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldIoIn), v))
})
}
// IoInGTE applies the GTE predicate on the "io_in" field.
func IoInGTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldIoIn), v))
})
}
// IoInLT applies the LT predicate on the "io_in" field.
func IoInLT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldIoIn), v))
})
}
// IoInLTE applies the LTE predicate on the "io_in" field.
func IoInLTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldIoIn), v))
})
}
// IoInIsNil applies the IsNil predicate on the "io_in" field.
func IoInIsNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldIoIn)))
})
}
// IoInNotNil applies the NotNil predicate on the "io_in" field.
func IoInNotNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldIoIn)))
})
}
// IoOutEQ applies the EQ predicate on the "io_out" field.
func IoOutEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldIoOut), v))
})
}
// IoOutNEQ applies the NEQ predicate on the "io_out" field.
func IoOutNEQ(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldIoOut), v))
})
}
// IoOutIn applies the In predicate on the "io_out" field.
func IoOutIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldIoOut), v...))
})
}
// IoOutNotIn applies the NotIn predicate on the "io_out" field.
func IoOutNotIn(vs ...int64) predicate.DbPackage {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.DbPackage(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldIoOut), v...))
})
}
// IoOutGT applies the GT predicate on the "io_out" field.
func IoOutGT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldIoOut), v))
})
}
// IoOutGTE applies the GTE predicate on the "io_out" field.
func IoOutGTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldIoOut), v))
})
}
// IoOutLT applies the LT predicate on the "io_out" field.
func IoOutLT(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldIoOut), v))
})
}
// IoOutLTE applies the LTE predicate on the "io_out" field.
func IoOutLTE(v int64) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldIoOut), v))
})
}
// IoOutIsNil applies the IsNil predicate on the "io_out" field.
func IoOutIsNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldIoOut)))
})
}
// IoOutNotNil applies the NotNil predicate on the "io_out" field.
func IoOutNotNil() predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldIoOut)))
})
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.DbPackage) predicate.DbPackage {
return predicate.DbPackage(func(s *sql.Selector) {

@ -114,20 +114,6 @@ func (dpc *DbPackageCreate) SetNillableBuildTimeStart(t *time.Time) *DbPackageCr
return dpc
}
// SetBuildTimeEnd sets the "build_time_end" field.
func (dpc *DbPackageCreate) SetBuildTimeEnd(t time.Time) *DbPackageCreate {
dpc.mutation.SetBuildTimeEnd(t)
return dpc
}
// SetNillableBuildTimeEnd sets the "build_time_end" field if the given value is not nil.
func (dpc *DbPackageCreate) SetNillableBuildTimeEnd(t *time.Time) *DbPackageCreate {
if t != nil {
dpc.SetBuildTimeEnd(*t)
}
return dpc
}
// SetUpdated sets the "updated" field.
func (dpc *DbPackageCreate) SetUpdated(t time.Time) *DbPackageCreate {
dpc.mutation.SetUpdated(t)
@ -212,6 +198,76 @@ func (dpc *DbPackageCreate) SetNillableDebugSymbols(ds *dbpackage.DebugSymbols)
return dpc
}
// SetMaxRss sets the "max_rss" field.
func (dpc *DbPackageCreate) SetMaxRss(i int64) *DbPackageCreate {
dpc.mutation.SetMaxRss(i)
return dpc
}
// SetNillableMaxRss sets the "max_rss" field if the given value is not nil.
func (dpc *DbPackageCreate) SetNillableMaxRss(i *int64) *DbPackageCreate {
if i != nil {
dpc.SetMaxRss(*i)
}
return dpc
}
// SetUTime sets the "u_time" field.
func (dpc *DbPackageCreate) SetUTime(i int64) *DbPackageCreate {
dpc.mutation.SetUTime(i)
return dpc
}
// SetNillableUTime sets the "u_time" field if the given value is not nil.
func (dpc *DbPackageCreate) SetNillableUTime(i *int64) *DbPackageCreate {
if i != nil {
dpc.SetUTime(*i)
}
return dpc
}
// SetSTime sets the "s_time" field.
func (dpc *DbPackageCreate) SetSTime(i int64) *DbPackageCreate {
dpc.mutation.SetSTime(i)
return dpc
}
// SetNillableSTime sets the "s_time" field if the given value is not nil.
func (dpc *DbPackageCreate) SetNillableSTime(i *int64) *DbPackageCreate {
if i != nil {
dpc.SetSTime(*i)
}
return dpc
}
// SetIoIn sets the "io_in" field.
func (dpc *DbPackageCreate) SetIoIn(i int64) *DbPackageCreate {
dpc.mutation.SetIoIn(i)
return dpc
}
// SetNillableIoIn sets the "io_in" field if the given value is not nil.
func (dpc *DbPackageCreate) SetNillableIoIn(i *int64) *DbPackageCreate {
if i != nil {
dpc.SetIoIn(*i)
}
return dpc
}
// SetIoOut sets the "io_out" field.
func (dpc *DbPackageCreate) SetIoOut(i int64) *DbPackageCreate {
dpc.mutation.SetIoOut(i)
return dpc
}
// SetNillableIoOut sets the "io_out" field if the given value is not nil.
func (dpc *DbPackageCreate) SetNillableIoOut(i *int64) *DbPackageCreate {
if i != nil {
dpc.SetIoOut(*i)
}
return dpc
}
// Mutation returns the DbPackageMutation object of the builder.
func (dpc *DbPackageCreate) Mutation() *DbPackageMutation {
return dpc.mutation
@ -437,14 +493,6 @@ func (dpc *DbPackageCreate) createSpec() (*DbPackage, *sqlgraph.CreateSpec) {
})
_node.BuildTimeStart = value
}
if value, ok := dpc.mutation.BuildTimeEnd(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeTime,
Value: value,
Column: dbpackage.FieldBuildTimeEnd,
})
_node.BuildTimeEnd = value
}
if value, ok := dpc.mutation.Updated(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeTime,
@ -493,6 +541,46 @@ func (dpc *DbPackageCreate) createSpec() (*DbPackage, *sqlgraph.CreateSpec) {
})
_node.DebugSymbols = value
}
if value, ok := dpc.mutation.MaxRss(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldMaxRss,
})
_node.MaxRss = &value
}
if value, ok := dpc.mutation.UTime(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldUTime,
})
_node.UTime = &value
}
if value, ok := dpc.mutation.STime(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldSTime,
})
_node.STime = &value
}
if value, ok := dpc.mutation.IoIn(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldIoIn,
})
_node.IoIn = &value
}
if value, ok := dpc.mutation.IoOut(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldIoOut,
})
_node.IoOut = &value
}
return _node, _spec
}

@ -146,26 +146,6 @@ func (dpu *DbPackageUpdate) ClearBuildTimeStart() *DbPackageUpdate {
return dpu
}
// SetBuildTimeEnd sets the "build_time_end" field.
func (dpu *DbPackageUpdate) SetBuildTimeEnd(t time.Time) *DbPackageUpdate {
dpu.mutation.SetBuildTimeEnd(t)
return dpu
}
// SetNillableBuildTimeEnd sets the "build_time_end" field if the given value is not nil.
func (dpu *DbPackageUpdate) SetNillableBuildTimeEnd(t *time.Time) *DbPackageUpdate {
if t != nil {
dpu.SetBuildTimeEnd(*t)
}
return dpu
}
// ClearBuildTimeEnd clears the value of the "build_time_end" field.
func (dpu *DbPackageUpdate) ClearBuildTimeEnd() *DbPackageUpdate {
dpu.mutation.ClearBuildTimeEnd()
return dpu
}
// SetUpdated sets the "updated" field.
func (dpu *DbPackageUpdate) SetUpdated(t time.Time) *DbPackageUpdate {
dpu.mutation.SetUpdated(t)
@ -286,6 +266,141 @@ func (dpu *DbPackageUpdate) ClearDebugSymbols() *DbPackageUpdate {
return dpu
}
// SetMaxRss sets the "max_rss" field.
func (dpu *DbPackageUpdate) SetMaxRss(i int64) *DbPackageUpdate {
dpu.mutation.ResetMaxRss()
dpu.mutation.SetMaxRss(i)
return dpu
}
// SetNillableMaxRss sets the "max_rss" field if the given value is not nil.
func (dpu *DbPackageUpdate) SetNillableMaxRss(i *int64) *DbPackageUpdate {
if i != nil {
dpu.SetMaxRss(*i)
}
return dpu
}
// AddMaxRss adds i to the "max_rss" field.
func (dpu *DbPackageUpdate) AddMaxRss(i int64) *DbPackageUpdate {
dpu.mutation.AddMaxRss(i)
return dpu
}
// ClearMaxRss clears the value of the "max_rss" field.
func (dpu *DbPackageUpdate) ClearMaxRss() *DbPackageUpdate {
dpu.mutation.ClearMaxRss()
return dpu
}
// SetUTime sets the "u_time" field.
func (dpu *DbPackageUpdate) SetUTime(i int64) *DbPackageUpdate {
dpu.mutation.ResetUTime()
dpu.mutation.SetUTime(i)
return dpu
}
// SetNillableUTime sets the "u_time" field if the given value is not nil.
func (dpu *DbPackageUpdate) SetNillableUTime(i *int64) *DbPackageUpdate {
if i != nil {
dpu.SetUTime(*i)
}
return dpu
}
// AddUTime adds i to the "u_time" field.
func (dpu *DbPackageUpdate) AddUTime(i int64) *DbPackageUpdate {
dpu.mutation.AddUTime(i)
return dpu
}
// ClearUTime clears the value of the "u_time" field.
func (dpu *DbPackageUpdate) ClearUTime() *DbPackageUpdate {
dpu.mutation.ClearUTime()
return dpu
}
// SetSTime sets the "s_time" field.
func (dpu *DbPackageUpdate) SetSTime(i int64) *DbPackageUpdate {
dpu.mutation.ResetSTime()
dpu.mutation.SetSTime(i)
return dpu
}
// SetNillableSTime sets the "s_time" field if the given value is not nil.
func (dpu *DbPackageUpdate) SetNillableSTime(i *int64) *DbPackageUpdate {
if i != nil {
dpu.SetSTime(*i)
}
return dpu
}
// AddSTime adds i to the "s_time" field.
func (dpu *DbPackageUpdate) AddSTime(i int64) *DbPackageUpdate {
dpu.mutation.AddSTime(i)
return dpu
}
// ClearSTime clears the value of the "s_time" field.
func (dpu *DbPackageUpdate) ClearSTime() *DbPackageUpdate {
dpu.mutation.ClearSTime()
return dpu
}
// SetIoIn sets the "io_in" field.
func (dpu *DbPackageUpdate) SetIoIn(i int64) *DbPackageUpdate {
dpu.mutation.ResetIoIn()
dpu.mutation.SetIoIn(i)
return dpu
}
// SetNillableIoIn sets the "io_in" field if the given value is not nil.
func (dpu *DbPackageUpdate) SetNillableIoIn(i *int64) *DbPackageUpdate {
if i != nil {
dpu.SetIoIn(*i)
}
return dpu
}
// AddIoIn adds i to the "io_in" field.
func (dpu *DbPackageUpdate) AddIoIn(i int64) *DbPackageUpdate {
dpu.mutation.AddIoIn(i)
return dpu
}
// ClearIoIn clears the value of the "io_in" field.
func (dpu *DbPackageUpdate) ClearIoIn() *DbPackageUpdate {
dpu.mutation.ClearIoIn()
return dpu
}
// SetIoOut sets the "io_out" field.
func (dpu *DbPackageUpdate) SetIoOut(i int64) *DbPackageUpdate {
dpu.mutation.ResetIoOut()
dpu.mutation.SetIoOut(i)
return dpu
}
// SetNillableIoOut sets the "io_out" field if the given value is not nil.
func (dpu *DbPackageUpdate) SetNillableIoOut(i *int64) *DbPackageUpdate {
if i != nil {
dpu.SetIoOut(*i)
}
return dpu
}
// AddIoOut adds i to the "io_out" field.
func (dpu *DbPackageUpdate) AddIoOut(i int64) *DbPackageUpdate {
dpu.mutation.AddIoOut(i)
return dpu
}
// ClearIoOut clears the value of the "io_out" field.
func (dpu *DbPackageUpdate) ClearIoOut() *DbPackageUpdate {
dpu.mutation.ClearIoOut()
return dpu
}
// Mutation returns the DbPackageMutation object of the builder.
func (dpu *DbPackageUpdate) Mutation() *DbPackageMutation {
return dpu.mutation
@ -479,19 +594,6 @@ func (dpu *DbPackageUpdate) sqlSave(ctx context.Context) (n int, err error) {
Column: dbpackage.FieldBuildTimeStart,
})
}
if value, ok := dpu.mutation.BuildTimeEnd(); ok {
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
Type: field.TypeTime,
Value: value,
Column: dbpackage.FieldBuildTimeEnd,
})
}
if dpu.mutation.BuildTimeEndCleared() {
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
Type: field.TypeTime,
Column: dbpackage.FieldBuildTimeEnd,
})
}
if value, ok := dpu.mutation.Updated(); ok {
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
Type: field.TypeTime,
@ -570,6 +672,106 @@ func (dpu *DbPackageUpdate) sqlSave(ctx context.Context) (n int, err error) {
Column: dbpackage.FieldDebugSymbols,
})
}
if value, ok := dpu.mutation.MaxRss(); ok {
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldMaxRss,
})
}
if value, ok := dpu.mutation.AddedMaxRss(); ok {
_spec.Fields.Add = append(_spec.Fields.Add, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldMaxRss,
})
}
if dpu.mutation.MaxRssCleared() {
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Column: dbpackage.FieldMaxRss,
})
}
if value, ok := dpu.mutation.UTime(); ok {
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldUTime,
})
}
if value, ok := dpu.mutation.AddedUTime(); ok {
_spec.Fields.Add = append(_spec.Fields.Add, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldUTime,
})
}
if dpu.mutation.UTimeCleared() {
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Column: dbpackage.FieldUTime,
})
}
if value, ok := dpu.mutation.STime(); ok {
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldSTime,
})
}
if value, ok := dpu.mutation.AddedSTime(); ok {
_spec.Fields.Add = append(_spec.Fields.Add, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldSTime,
})
}
if dpu.mutation.STimeCleared() {
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Column: dbpackage.FieldSTime,
})
}
if value, ok := dpu.mutation.IoIn(); ok {
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldIoIn,
})
}
if value, ok := dpu.mutation.AddedIoIn(); ok {
_spec.Fields.Add = append(_spec.Fields.Add, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldIoIn,
})
}
if dpu.mutation.IoInCleared() {
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Column: dbpackage.FieldIoIn,
})
}
if value, ok := dpu.mutation.IoOut(); ok {
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldIoOut,
})
}
if value, ok := dpu.mutation.AddedIoOut(); ok {
_spec.Fields.Add = append(_spec.Fields.Add, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Value: value,
Column: dbpackage.FieldIoOut,
})
}
if dpu.mutation.IoOutCleared() {
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
Type: field.TypeInt64,
Column: dbpackage.FieldIoOut,
})
}
if n, err = sqlgraph.UpdateNodes(ctx, dpu.driver, _spec); err != nil {
if _, ok := err.(*sqlgraph.NotFoundError); ok {
err = &NotFoundError{dbpackage.Label}
@ -707,26 +909,6 @@ func (dpuo *DbPackageUpdateOne) ClearBuildTimeStart() *DbPackageUpdateOne {
return dpuo
}
// SetBuildTimeEnd sets the "build_time_end" field.
func (dpuo *DbPackageUpdateOne) SetBuildTimeEnd(t time.Time) *DbPackageUpdateOne {
dpuo.mutation.SetBuildTimeEnd(t)
return dpuo
}
// SetNillableBuildTimeEnd sets the "build_time_end" field if the given value is not nil.
func (dpuo *DbPackageUpdateOne) SetNillableBuildTimeEnd(t *time.Time) *DbPackageUpdateOne {
if t != nil {
dpuo.SetBuildTimeEnd(*t)
}
return dpuo
}
// ClearBuildTimeEnd clears the value of the "build_time_end" field.
func (dpuo *DbPackageUpdateOne) ClearBuildTimeEnd() *DbPackageUpdateOne {
dpuo.mutation.ClearBuildTimeEnd()
return dpuo
}
// SetUpdated sets the "updated" field.
func (dpuo *DbPackageUpdateOne) SetUpdated(t time.Time) *DbPackageUpdateOne {
dpuo.mutation.SetUpdated(t)
@ -847,6 +1029,141 @@ func (dpuo *DbPackageUpdateOne) ClearDebugSymbols() *DbPackageUpdateOne {
return dpuo
}
// SetMaxRss sets the "max_rss" field.
func (dpuo *DbPackageUpdateOne) SetMaxRss(i int64) *DbPackageUpdateOne {
dpuo.mutation.ResetMaxRss()
dpuo.mutation.SetMaxRss(i)
return dpuo
}
// SetNillableMaxRss sets the "max_rss" field if the given value is not nil.
func (dpuo *DbPackageUpdateOne) SetNillableMaxRss(i *int64) *DbPackageUpdateOne {
if i != nil {
dpuo.SetMaxRss(*i)
}
return dpuo
}
// AddMaxRss adds i to the "max_rss" field.
func (dpuo *DbPackageUpdateOne) AddMaxRss(i int64) *DbPackageUpdateOne {
dpuo.mutation.AddMaxRss(i)
return dpuo
}
// ClearMaxRss clears the value of the "max_rss" field.
func (dpuo *DbPackageUpdateOne) ClearMaxRss() *DbPackageUpdateOne {
dpuo.mutation.ClearMaxRss()
return dpuo
}
// SetUTime sets the "u_time" field.
func (dpuo *DbPackageUpdateOne) SetUTime(i int64) *DbPackageUpdateOne {