JSPM

  • Created
  • Published
  • Downloads 5266
  • Score
    100M100P100Q146806F
  • License MIT

Use the power of typescript to define your object mapping when using dynamoDB. This library also provides a fluent api for easy interaction with dynamoDB.

Package Exports

  • @shiftcoders/dynamo-easy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@shiftcoders/dynamo-easy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Dynamo-Easy

Travis semantic-release latest-release Coverage Status styled with prettier All Contributors

A dynamoDB client which provides an easy to use fluent api to execute requests. It supports typescript decorators, to define the necessary metadata for your models. You don't need to care about the mapping of javascript types to their dynamo types any more. We got you covered.

Built with ❤️ by shiftcode.

Show me some code

import { Model, PartitionKey, DynamoStore } from '@shiftcoders/dynamo-easy'

@Model()
export class Person {
  @PartitionKey()
  id: string
  name: string
  yearOfBirth: number
}

const personStore = new DynamoStore(Person)

personStore
  .scan()
  .whereAttribute('yearOfBirth').equals(1958)
  .exec()
  .then(res => console.log('ALL items with yearOfBirth == 1958', res))

Ressources

Credits

  • typescript-library-starter - Starter project which helps creating a TypeScript library project
  • vogels - To get an idea on how to build the fluent api
  • typestore - Inspiration on how to implement the model decorators

Contributors

Made with ❤️ by @michaelwittwer and all these wonderful contributors (emoji key):

Michael Wittwer
Michael Wittwer

🤔 💻 ⚠️ 📖
Simon Mumenthaler
Simon Mumenthaler

🤔 💻 ⚠️ 📖
Michael Lieberherr
Michael Lieberherr

💻 📖 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!