In <a href="https:&#x2F;&#x2F;github.com&#x2F;aodin&#x2F;sol#sol" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aodin&#x2F;sol#sol</a> I separated the table schema, which is a function, from the destination &#x2F; 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.