MCPcopy Create free account
hub / github.com/an0nfunc/ALHP / sqlSave

Method sqlSave

ent/dbpackage_update.go:1105–1273  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1103func (_u *DBPackageUpdateOne) SetSTime(v int64) *DBPackageUpdateOne {
1104 _u.mutation.ResetSTime()
1105 _u.mutation.SetSTime(v)
1106 return _u
1107}
1108
1109// SetNillableSTime sets the "s_time" field if the given value is not nil.
1110func (_u *DBPackageUpdateOne) SetNillableSTime(v *int64) *DBPackageUpdateOne {
1111 if v != nil {
1112 _u.SetSTime(*v)
1113 }
1114 return _u
1115}
1116
1117// AddSTime adds value to the "s_time" field.
1118func (_u *DBPackageUpdateOne) AddSTime(v int64) *DBPackageUpdateOne {
1119 _u.mutation.AddSTime(v)
1120 return _u
1121}
1122
1123// ClearSTime clears the value of the "s_time" field.
1124func (_u *DBPackageUpdateOne) ClearSTime() *DBPackageUpdateOne {
1125 _u.mutation.ClearSTime()
1126 return _u
1127}
1128
1129// SetIoIn sets the "io_in" field.
1130func (_u *DBPackageUpdateOne) SetIoIn(v int64) *DBPackageUpdateOne {
1131 _u.mutation.ResetIoIn()
1132 _u.mutation.SetIoIn(v)
1133 return _u
1134}
1135
1136// SetNillableIoIn sets the "io_in" field if the given value is not nil.
1137func (_u *DBPackageUpdateOne) SetNillableIoIn(v *int64) *DBPackageUpdateOne {
1138 if v != nil {
1139 _u.SetIoIn(*v)
1140 }
1141 return _u
1142}
1143
1144// AddIoIn adds value to the "io_in" field.
1145func (_u *DBPackageUpdateOne) AddIoIn(v int64) *DBPackageUpdateOne {
1146 _u.mutation.AddIoIn(v)
1147 return _u
1148}
1149
1150// ClearIoIn clears the value of the "io_in" field.
1151func (_u *DBPackageUpdateOne) ClearIoIn() *DBPackageUpdateOne {
1152 _u.mutation.ClearIoIn()
1153 return _u
1154}
1155
1156// SetIoOut sets the "io_out" field.
1157func (_u *DBPackageUpdateOne) SetIoOut(v int64) *DBPackageUpdateOne {
1158 _u.mutation.ResetIoOut()
1159 _u.mutation.SetIoOut(v)
1160 return _u
1161}
1162

Callers

nothing calls this directly

Calls 15

checkMethod · 0.95
ValidColumnFunction · 0.92
IDMethod · 0.80
PackagesMethod · 0.80
SetFieldMethod · 0.80
AppendedPackagesMethod · 0.80
AppendMethod · 0.80
PackagesClearedMethod · 0.80
ClearFieldMethod · 0.80
StatusMethod · 0.80
StatusClearedMethod · 0.80
SkipReasonMethod · 0.80

Tested by

no test coverage detected