1.0.36 • Published 5 years ago

@freakyfriday/that-simple-dynamo v1.0.36

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

That Simple Dynamo

CircleCI

Overview

A DynamoDB implementation of an IObjectStore

This allows the persistance if IModels into DynamoDB

See the following projects for more information:-

Example

    // 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)
	
1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago