vlucas/spot2 — pull request #6 by vlucas (2014-07-30 15:23:59+00:00)
Title: Fix #5 - Add checks for primary and autoincrement

* Return provided value for primary key if given on insert
* Check to ensure autoincrement is defined before returning
'lastInsertId' or equivalent from `insert` method
* Allow custom 'sequence_name' for PostgreSQL autoincrement
* Validate primary key as required if primary but not autoincrement