1.0.2 • Published 7 years ago

basic-ddb-client v1.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

Basic DynamoDB Node client

Very basic, pared-down DynamoDB client.

Installation

npm install basic-ddb-client

Usage

var config = {
  region: "",
  accessKeyId: "",
  secretAccessKey: ""
};

var ddb = require('basic-ddb-client')(config);

Put item

ddb.putItem(tableName, {primaryKey: '', sortKey: ''}, function(err) {
  console.log(err);
});

Get item

ddb.getItem(tableName, {primaryKey: '', sortKey: ''}, function(err, item) {
  console.log(err, item);
});

Update item

ddb.updateItem(tableName, {primaryKey: '', sortKey: ''}, "set whatever = :val", {":val": false}, function(err, item) {
  console.log(err,updateValues);
});

Remove item

ddb.removeItem(tableName, {primaryKey: '', sortKey: ''}, function(err) {
  console.log(err);
});
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago