2.0.3 • Published 7 years ago

blend-state-dynamo v2.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

blend-state-dynamo

dynamo - db integration for vigour-hub

Build Status js-standard-style npm version Coverage Status

state.set({
  inject: require('blend-state-dynamo')
  db: {
    id: AMAZON_ID,
    secret: AMAZON_SECRET,
    table: testTable
  },
  on: {
    error (err) {
      console.log(err)
    }
  }
})

state.db.hasTable.is(true).then(() => {
  console.log('got a table!')
})

Loading data

state.set({
  inject: require('blend-state-dynamo'),
  db: {
    id: AMAZON_ID,
    secret: AMAZON_SECRET,
    table: testTable
  }
})

state.db.load() // loads all data without context
state.db.load('somecontextid') // loads all data with somecontextid
state.db.load('*') //loads all data -- warn maybe very heavy
2.0.3

7 years ago

3.1.4

7 years ago

3.1.3

7 years ago

3.1.2

8 years ago

3.1.1

8 years ago

3.1.0

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago