mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-27 12:50:28 +00:00
chores/general-cleanup-release-prep (#31)
* do ent generation * update edges * fix redirect
This commit is contained in:
parent
8a43fc953d
commit
1ca430af21
47 changed files with 785 additions and 765 deletions
|
@ -65,8 +65,8 @@ func (e ItemFieldEdges) ItemOrErr() (*Item, error) {
|
|||
}
|
||||
|
||||
// scanValues returns the types for scanning values from sql.Rows.
|
||||
func (*ItemField) scanValues(columns []string) ([]interface{}, error) {
|
||||
values := make([]interface{}, len(columns))
|
||||
func (*ItemField) scanValues(columns []string) ([]any, error) {
|
||||
values := make([]any, len(columns))
|
||||
for i := range columns {
|
||||
switch columns[i] {
|
||||
case itemfield.FieldBooleanValue:
|
||||
|
@ -90,7 +90,7 @@ func (*ItemField) scanValues(columns []string) ([]interface{}, error) {
|
|||
|
||||
// assignValues assigns the values that were returned from sql.Rows (after scanning)
|
||||
// to the ItemField fields.
|
||||
func (_if *ItemField) assignValues(columns []string, values []interface{}) error {
|
||||
func (_if *ItemField) assignValues(columns []string, values []any) error {
|
||||
if m, n := len(values), len(columns); m < n {
|
||||
return fmt.Errorf("mismatch number of scan values: %d != %d", m, n)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue