Games now have a page and everything works on multiple size screens, but I need to do a serious refactoring to normalize all data to be Go style.
This commit is contained in:
parent
31b224c6e8
commit
931c493928
9 changed files with 123 additions and 26 deletions
|
|
@ -127,13 +127,14 @@ func Update(table string, value reflect.Value) error {
|
|||
// skip update of id to avoid replacing it
|
||||
if tag == "id" { continue }
|
||||
|
||||
fmt.Println(">>>>>>>>>>>>>>>>> field", tag, "=", field.Interface())
|
||||
builder = builder.Set(tag, field.Interface())
|
||||
}
|
||||
|
||||
builder = builder.Where(sq.Eq{"id": value.FieldByName("Id").Interface()})
|
||||
sql_query, args, err := builder.ToSql()
|
||||
|
||||
fmt.Println("UPDATE QUERY", sql_query, args)
|
||||
fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!UPDATE QUERY", sql_query, args)
|
||||
if err != nil { return err}
|
||||
|
||||
_, err = data.DB.Exec(sql_query, args...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue