2.0.3 • Published 9 years ago

blend-state-dynamo v2.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
9 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

9 years ago

3.1.4

9 years ago

3.1.3

10 years ago

3.1.2

10 years ago

3.1.1

10 years ago

3.1.0

10 years ago

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago