Thu Jun 12 10:01:06 EDT 2014

Encoding structure in databases

It's hard to encode data structures into a data base once there is
some hierarchy involved.  There's the field of ORM which I don't know
much about and frankly find a bit smelly, and then there's the idea
that database tables are actually just finite functions.

This approach seems to work well:

  1. Encode the structure as a composition of pure functions

  2. Implement functions using tables with primary keys