aykroyd 0.1.0

An opinionated micro-ORM for PostgreSQL.
Documentation

An opinionated micro-ORM for PostgreSQL.

All database queries are represented by a plain Rust struct that implements Statement and possibly one of Query or QueryOne. The Statement implementation logically binds the SQL text to the types of the inputs, and the Query or QueryOne implementation does the same for the output rows. This lets the struct act as an event-sourcing layer between your application and the database.

The binding is not magic; there is no compile-time verification against a live database. It is instead an assertion by the developer, one that you would be wise to verify. To do so, you'll need to connect to a live database. It is recommended to do so in a suite of automated tests which can be run against any database environment to verify that particular tier.