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-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: "Gopher"})…
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 openmodelai/MiMo-V2.6-Code.