dao-s3
v0.5.0
Published
AWS S3 adapter for daoi
Downloads
6
Readme
dao-s3
AWS S3 adapter for daoi
Sample code
var dao = require('daoi');
var s3DaoAdapter = require('s3DaoAdapter');
s3DaoAdapter.config({ storage: 'mybucket/users.json' })
dao
.use(s3DaoAdapter)
.on('create', function(model){
// persisted model
})
.on('error', function(err){
// error handler
})
.create({ name: 'joe', email: '[email protected]' });
Installation
npm install dao-s3 --save
Make sure AWS_ACCESS_KEY
and AWS_SECRET_KEY
env vars are set. AWS Help.
Implementation
dao-s3 is a v0-compliant daoi adapter meaning that it only implements CRUD (create, read, update, delete) operations.
To Do
Get to compliance level v2. Compliance levels are described here.