Great Scott
Postgres data source library
API
Optional properties
model
- A Immutable Data Record (see https://www.npmjs.com/package/immutable).connectionString
- A Postgres connection string.tableName
- (required for insert/update helpers) the name of the table to extract data fromidAttribute
- (optional) the primary key attribute
Example Usage
;; var UserModel = Avery; { super tableName : 'users' model : UserModel connectionString : processenvPOSTGRES_URL ; } // object to model with camel case keys { return _; } // model to object with snake case keys { var row = model; return _; } { var query = thisbuilder ; return this; } { return this; } UserDataSource; UserDataSource;