This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Low level API
jed edited this page Apr 27, 2012
·
4 revisions
If you'd like more control over how you interact with DynamoDB, all 13 original DynamoDB operations are available as camelCased methods on database instances return by dynamo.createClient()
. These methods require the original object format expected by Amazon.
batchGetItem
batchWriteItem
createTable
deleteItem
deleteTable
describeTable
getItem
listTables
putItem
query
scan
updateItem
updateTable
These allow you to skip dynamo's API sugar and use only its account, session, and authentication logic, for code such as the following for createTable
:
var dynamo = require("dynamo")
, client = dynamo.createClient()
, db = client.get("us-east-1")
db.createTable({
TableName: "DYNAMO_TEST_TABLE_1",
ProvisionedThroughput: {
ReadCapacityUnits: 5,
WriteCapacityUnits: 5
},
KeySchema: {
HashKeyElement: {
AttributeName: "hash",
AttributeType: "S"
}
}
}, function(err, data){ ... })