0.6.8 • Published 3 years ago

@ocap/indexdb-dynamodb v0.6.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

@ocap/indexdb-dynamodb

styled with prettier

OCAP indexdb adapter that stores data in dynamodb

Install

npm install @ocap/indexdb-dynamodb
// or
yarn add @ocap/indexdb-dynamodb

Usage

const DynamoIndexDB = require('@ocap/indexdb-dynamodb');

const indexdb = new DynamoIndexDB({
  clientOptions: {
    region: 'us-west-2',
    endpoint: 'http://localhost:8000',
    credentials: {
      accessKeyId: 'xxx',
      secretAccessKey: 'yyy',
    },
  },
});

Examples

./examples 是一些列子, 默认使用的是本地实例,可以修改 ./examples/.env 中的配置, 运行方法:

node transactions.js insert # 插入数据
node transactions.js read # 读取一条数据
node transactions.js read [id] # 读取一条数据
# ...
0.6.7

3 years ago

0.6.6

3 years ago

0.6.8

3 years ago

0.6.5

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.4

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago