INNER CODE UNIT · JavaScript

start

sensedeep/dynamodb-onetable · samples/crud/src/index.js:66

async function start() {
    //  Start the dynamodb instance and then short wait for it to open a listening port.
    dynamodb = DynamoDbLocal.spawn({port: PORT})
    await delay(2000) // increase upon `ECONNREFUSED` error
}

async function stop() {
    process.kill(dynamodb.pid)
}

async function test() {
    await table.createTable()

    let user = await User.create(
        {
            name: 'Peter Smith',
        },
        {log: true}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…