0.1.16 • Published 9 years ago
dynamodb-wrap v0.1.16
AWS-SDK Wrapper
Wrapper for the aws-sdk package. Makes using the package easier.
Installation
$ npm install dynamodb-wrap
Be sure to have your AWS credentials in the ~/.aws/credentials file
Usage
var aws = require('dynamodb-wrap');
aws.initialize({region: 'us-west-2'});
var params = {
table: 'my-table-name'
};
aws.scan(params, function(err, data){
if(err){
return console.log("Error found: " + err);
}
console.log(data);
});
Features
- Automated pagination. Scan implements full scan which will pull all table data. (Up to table throughput limits).
- If throughput is exceeded, the response will include a flag "maxReached" to indicate that not all items were retrieved.
- A sleep can be passed in to slow it down and possibly prevent exceeding the throughput. (ie. {sleep: 2000})
- Parameter keys are changed to a friendly lower case version (i.e ExpressionAttributeValues vs values)
- Data responses have the keys removed
{
"myInteger": 1,
"myString": "steve leon"
}
vs
{
"myInteger": {
"N": 1
},
"myString: {
"S": "steve leon"
}
}
- Key removal can be turned off by passing {raw: true} into the parameters.
API Documentation
GitHub
0.1.16
9 years ago
0.1.15
9 years ago
0.1.14
9 years ago
0.1.13
9 years ago
0.1.12
10 years ago
0.1.11
10 years ago
0.1.10
10 years ago
0.1.9
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.13
10 years ago
0.0.12
10 years ago
0.0.11
10 years ago
0.0.10
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago