Skip to content

LevelDB (levelup) compatible API for the browser, backed by IndexedDB

Notifications You must be signed in to change notification settings

ricardobeat/indexedup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

LevelDB (levelup) compatible API for the browser, backed by IndexedDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published