3 ms·
In https://github.com/aodin/sol#sol https://github.com/aodin/sol#sol I separated the table schema, which is a function, from the destination / receiver structs.
by aodin 10y ago
In https://github.com/aodin/sol#sol 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.
- aacanakin 10y agoThere is a table api in qb much like yours. See https://github.com/aacanakin/qb/blob/master/table_test.go 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.