0.0.4 • Published 5 years ago

dynamodb-crud v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

DynamoDB CRUD client CircleCI

An opinionated CRUD client for AWS DynamoDB based on AWS DynamoDb with Axios

This library is for generating composite key-based queries. See AWS re:Invent 2018: Amazon DynamoDB Deep Dive: Advanced Design Patterns for DynamoDB (DAT401) for a primer on this approach to NoSQL database design.

Usage

For now see test suite for usage

API

Queries

Provided query builders emit queries that can be executed by the operation helpers. You can create your own query builders and/or higher order builders by manipulating existing builder results.

get()
post()
patch()
delete()
put()
query()
count()

Client

Configure

dynamodb(obj)

Operations

In addition to the actions-based API provided by DynamoDb with Axios helpers are added for invoking queries generated with the provided query helpers.

invoke(obj|arr)
batchGet(arr)
batchWrite(arr)
transactGet(obj|arr)
transactWrite(obj|arr)

Interceptors

Axios inspired interceptors are provided for injecting behavior into database interactions.

dynamodb.interceptors.request.use(fn) => (query)
dynamodb.interceptors.response.use(fn) => (response, query))
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago