skipper-postgreql adapter
Streaming Uploads/Downloads using Sails.js and PostgreSQL.
Install
$ npm install skipper-postgresql --save
Usage
config/skipper.js
moduleexportsskipper = adapter: connection: host: 'localhost' user: 'postgres' password: 'postgres' /** * OR * connection: 'postgres://postgres:postgres@localhost:5432/postgres' */ /** * table to store files in */ fileTable: 'file'
api/controllers/FileController.js
moduleexports = { req } { var SkipperAdapter = sailsconfigskipperadapter; }
License
MIT