I want the gosql wrapper to provide struct-backed CRUD methods on both database handles and transactions…
I want the gosql wrapper to provide struct-backed CRUD methods on both database handles and transactions…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). For example, with type User struct { ID int idx:"primary" ; Name string } , calling db.Insert(&User{Name…
The task
For example, with `type User struct { ID int `idx:"primary"`; Name string }`, calling `db.Insert(&User{Name: "Gopher"})` should execute `insert into user (name) values (?)` with the single argument `"Gopher"`, omitting the zero-valued primary key so the database can generate it. Calling `db.Insert(&User{ID: 5, Name:…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.