Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (34 sloc) 2.233 kB

IndexedUp

IndexedUp is a port of node-levelup (LevelDB driver) for the browser, backed by IndexedDB. The API should be 100% compatible with node-levelup's, allowing you to share database code between the server and client.

Usage

var indexedup = require('indexedup')

indexedup('./mydb', function(err, db){
    db.put('key', 'some value', function(err){
        if (err) throw err
        db.get('key', function(err, value){
            console.log(value)
        })
    })
})

Implemented API

Tests

Passes levelup's test/simple-test.js (http://ricardobeat.github.com/indexedup/test/levelup/) with a few changes.

The basic test suite (test/spec.coffee) is 100% interchangeable with either node-levelup (run mocha) or indexedup in the browser.

Missing features / TODO

  • deal with options.encoding
  • buffering / sync constructor
  • events
Jump to Line
Something went wrong with that request. Please try again.