News for hackers. Stuff that matters.
Re:Qb: Database toolkit for Go by aodin on Saturday May 14, 2016 @12:43PM (#11696896)
In https://github.com/aodin/sol#sol I separated the table schema, which is a function, from the destination / receiver structs. This approach allows you to build tables programmatically and do condensed selections, such as all IDs into a []int. However, this process still has to match database columns to struct field names for most selections.
Re:Qb: Database toolkit for Go by aacanakin on Saturday May 14, 2016 @01:44PM (#11697223)
There is a table api in qb much like yours. See https://github.com/aacanakin/qb/blob/master/table_test.go. The session api converts tags into table object. I really like the column definitions. Maybe I can convert the definition implementation like you.