2.2.4 • Published 7 years ago

vogels-promisified v2.2.4

Weekly downloads
250
License
MIT
Repository
github
Last release
7 years ago

vogels-promisified

DynamoDB library Vogels promisified for use with Bluebird

A drop-in replacement that extends Vogels with Async methods.

Usage

const vogels = require("vogels-promisified");

Example

var User = module.exports = vogels.define("User", {
  hashKey : "email",

  timestamps : true,

  schema : {
    _id : vogels.types.uuid(),
    email : Joi.string().email(),
  },
});

User
  .getAsync(email)
  .then(function(user){
    // ...
  })
  .catch(function(err){
    // ...
  });

User
  .scan()
  .where("_id").equals(userId)
  .execAsync()
  .then(function(user){
    // ...
  })
  .catch(function(err){
    // ...
  });
2.2.4

7 years ago

2.2.3

8 years ago

2.2.2

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago