YuraDev / idbi

IndexedDB Promised

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

idbi - IndexedDB ideal

IndexedDB Promised

Installation

npm install idbi --save
// or
yarn add idbi

Open

let {Books, User} = idbi.open({
  name: 'muse',
  stores: {
    Books: {
      author: {},
      dataFactory: [
        { author: 1, title: 'First book' }
      ]
    },
    User: {
      email: {}
    }
  }
})
Books.add({ title: 'The second book' })
  .then(id => console.log(id))

About

IndexedDB Promised


Languages

Language:JavaScript 64.4%Language:CSS 23.0%Language:HTML 12.7%