INNER CODE UNIT · JavaScript
stop
sensedeep/dynamodb-onetable · samples/overview/src/index.js:62
async function stop() {
// Stop the local test dynamodb instance
process.kill(dynamodb.pid)
}
async function test() {
/*
For this sample, create the table. Normally would be created separately.
*/
await table.createTable()
/*
Get OneTable entities. You can use these models for create/read/write etc. Or you can use table.*('Account').
*/
const Account = table.getModel('Account')
const Invoice = table.getModel('Invoice')
const Product = table.getModel('Product')
const User = table.getModel('User')