# @freakyfriday/that-simple-dynamo

> A dynamo objectstore for That Simple Model

Latest version **1.0.36** (published 2019-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @freakyfriday/that-simple-dynamo
pnpm add @freakyfriday/that-simple-dynamo
yarn add @freakyfriday/that-simple-dynamo
bun add @freakyfriday/that-simple-dynamo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.36 |
| Published | 2019-03-21 |
| First published | 2019-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 81.8 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | freakyfriday |

## Links

- npm: https://www.npmjs.com/package/@freakyfriday/that-simple-dynamo
- Repository: https://github.com/freakyfriday/that-simple-dynamo
- npm.io page: https://npm.io/package/@freakyfriday/that-simple-dynamo

## Dependencies (6)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.360.0
- [that-koa-error](https://npm.io/package/that-koa-error.md) ^1.0.1
- [class-transformer](https://npm.io/package/class-transformer.md) ^0.2.0
- [that-simple-model](https://npm.io/package/that-simple-model.md) ^1.0.2
- [@freakyfriday/that-simple-objectstore](https://npm.io/package/@freakyfriday/that-simple-objectstore.md) 1.1.2

## Recent versions

- 1.0.36 (latest) — 2019-03-21
- 1.0.35 — 2019-03-21
- 1.0.34 — 2019-03-21
- 1.0.33 — 2019-03-21
- 1.0.31 — 2019-03-21
- 1.0.30 — 2019-03-21
- 1.0.28 — 2019-03-21
- 1.0.27 — 2019-03-21
- 1.0.25 — 2019-03-21
- 1.0.24 — 2019-03-21
- 1.0.23 — 2019-03-21
- 1.0.22 — 2019-03-21
- 1.0.21 — 2019-03-21
- 1.0.20 — 2019-03-21
- 1.0.19 — 2019-03-21
- … 2 more at https://npm.io/package/@freakyfriday/that-simple-dynamo/versions

## README

# That Simple Dynamo
[![CircleCI](https://circleci.com/gh/ThatDevCompany/that-simple-dynamo.svg?style=svg)](https://circleci.com/gh/ThatDevCompany/that-simple-dynamo)

##  Overview
A DynamoDB implementation of an IObjectStore

This allows the persistance if IModels into DynamoDB

See the following projects for more information:-

* [that-simple-model](https://github.com/ThatDevCompany/that-simple-model)
* [that-simple-objectstore](https://github.com/ThatDevCompany/that-simple-objectstore)

### Example

```$typescript

    // Initialise the datastore
    let theObjectStore = new DynamoObjectStore({
        region: process.env.AWS_DEFAULT_REGION,
        accessKeyId: process.env.AWS_ACCESS_KEY_ID,
        secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
        endpoint: process.env.AWS_ENDPOINT
    })
    
    // Create a new item
    let item = new MyModel()
    item.id = '1234'
    theObjectStore.put(item)
    
    // Read an item	
    item = theObjectStore.get(MyModel, '1234')
    
    // Query all Items
    let items = theObjectStore.query()
	
    // Delete an Item
    theObjectStore.remove(item)
	
```

---
_Source: https://npm.io/package/@freakyfriday/that-simple-dynamo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
