Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@articulate/dynapro
Advanced tools
A thin promised-based wrapper around Amazon's AWS DynamoDB SDK
Dynapro is a thin promised-based wrapper around Amazon's AWS DynamoDB SDK. This is currently being actively developed and contributions are welcome. NPM package located at https://www.npmjs.com/package/dynapro.
$ npm install dynapro
var Dynapro = require('dynapro')
var options = {
region: 'xxx',
accessKeyId: 'xxx',
secretAccessKey: 'xxx'
}
var dynapro = new Dynapro(options)
dynapro.describe('table name')
.then(function(data) {
console.log(data.Table.TableStatus)
}).catch(function(err) {
console.log('Table does not exist', err)
})
// key types [string | stringSet | number | numberSet | binary | binarySet
var params: {
keySchema: {
hash: ['author', 'string'],
range: ['id', 'string']
},
// Optional secondary index
localSecondaryIndexes: [{
indexName: 'orderIndex',
keySchema: {
hash: ['author', 'string'],
range: ['order', 'number']
},
projectionType: 'ALL'
}]
}
dynapro.create('table name', params)
.then(successFunction)
.catch(console.log)
var params = {
courseId: "123",
author: "Mike"
}
dynapro.find('table name', params)
.then(function(data) {
console.log('result', data)
}).catch(console.log)
var params = {
courseId: "123",
author: "Mike"
}
dynapro.insert('table name', params)
.then(function(data) {
console.log('Successfully inserted item')
}).catch(console.log)
var params = {
keyConditions: [{
column: 'author',
value: 'Mike'
}],
indexName: 'orderIndex' // optional (query an index)
}
dynapro.where('table name', params)
.then(function(results) {
console.log('results', results)
}).catch(console.log)
This software is provided under the the MIT license.
FAQs
A thin promised-based wrapper around Amazon's AWS DynamoDB SDK
We found that @articulate/dynapro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.