basic-ddb-client
v1.0.2
Published
Very basic, pared-down DynamoDB client for Node.js.
Downloads
4
Readme
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);
});