feat: update generated storage files

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar
2022-03-07 10:15:01 +01:00
parent 07a43f2d66
commit 20b03b3f6d
36 changed files with 747 additions and 437 deletions

View File

@@ -4,6 +4,7 @@ package db
import (
"context"
"errors"
"fmt"
"time"
@@ -280,7 +281,7 @@ func (kuo *KeysUpdateOne) sqlSave(ctx context.Context) (_node *Keys, err error)
}
id, ok := kuo.mutation.ID()
if !ok {
return nil, &ValidationError{Name: "ID", err: fmt.Errorf("missing Keys.ID for update")}
return nil, &ValidationError{Name: "id", err: errors.New(`db: missing "Keys.id" for update`)}
}
_spec.Node.ID.Value = id
if fields := kuo.fields; len(fields) > 0 {