basic-ddb-client

1.0.2 • Public • Published

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);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i basic-ddb-client

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • gafo