Missy MongoDB driver
PostgreSQL database driver for Missy.
Usage
Creating a Schema
Simple form:
var missy = ; var schema = 'postgres://localhost/test';
Full form with manual driver initialization:
var missy = pg = ; // Drivervar driver = { // Custom connecter function // A promise for a client var client = 'postgres://user:pass@host/database'; return { return Q ; ); // -> client}); // Schemavar schema = driver;
Type Handlers
The driver redefines the following standard types:
'object'
: is always JSON-encoded
Tests
In order to run the tests, you need to define the 'MISSY_POSTGRES` environment variable. The tests will work on the provided DB and clean-up the created tables afterwards:
$ MISSY_POSTGRES="postgres://user:pass@localhost/test" npm test