Finds the single row associated with a foreign key in base.
Gets all the children of that type. Specifically, it looks in T for a ForeignKey referencing B and queries on that.
It will return an aggregate row with a member of type of each table in the join.
Returns a given struct populated from the database. Assumes types known to this module.
generates get functions for a one-to-many relationship with the form T2 get_<t2>(T1 row, Database db) and TabResultSet!T1 get_<t1>(T2 row, Database db)
Helper functions for generating database stuff.
Note: this is heavily biased toward Postgres