1.0.11 • Published 5 years ago

knex-dynamodb-dialect v1.0.11

Weekly downloads
26
License
MIT
Repository
github
Last release
5 years ago

knex-dynamodb-dialect

This is a very early preview version of a knex dynamodb dialect

Suggestions and pull request are very welcome!

Installation

npm install knex-dynamodb-dialect

Example:

import { DynamoDBDialect } from "knex-dynamodb-dialect";

Knex({
    debug: true,
    client: DynamoDBDialect
    connection: {
        prefix: "db_",
        region: isLocal ? "localhost" : null, // put null into region and ednpoint when you're inside a aws environment. For example lambda
        endpoint: isLocal ? "http://localhost:8000" : null,
        provisionedThroughput: {
            ReadCapacityUnits: 1,
            WriteCapacityUnits: 1
        }
    } as any,
    pool: {
        min: 1,
        max: 1
    },
    migrations: {
        tableName: "knex_migrations"
    }
});
1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago