mirror of
https://github.com/hay-kot/homebox.git
synced 2025-06-27 06:08:36 +00:00
chore: upgrade deps + code-gen (#249)
This commit is contained in:
parent
3d295b5132
commit
6ed1f3695a
42 changed files with 664 additions and 563 deletions
|
@ -69,6 +69,12 @@ type MaintenanceEntryDeleteOne struct {
|
|||
med *MaintenanceEntryDelete
|
||||
}
|
||||
|
||||
// Where appends a list predicates to the MaintenanceEntryDelete builder.
|
||||
func (medo *MaintenanceEntryDeleteOne) Where(ps ...predicate.MaintenanceEntry) *MaintenanceEntryDeleteOne {
|
||||
medo.med.mutation.Where(ps...)
|
||||
return medo
|
||||
}
|
||||
|
||||
// Exec executes the deletion query.
|
||||
func (medo *MaintenanceEntryDeleteOne) Exec(ctx context.Context) error {
|
||||
n, err := medo.med.Exec(ctx)
|
||||
|
@ -84,5 +90,7 @@ func (medo *MaintenanceEntryDeleteOne) Exec(ctx context.Context) error {
|
|||
|
||||
// ExecX is like Exec, but panics if an error occurs.
|
||||
func (medo *MaintenanceEntryDeleteOne) ExecX(ctx context.Context) {
|
||||
medo.med.ExecX(ctx)
|
||||
if err := medo.Exec(ctx); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue