The simplest way to use IndexedDB in the browser.
JavaScript CoffeeScript CSS Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis
examples
logo
site
src
tasks
tests
.gitignore
.travis.yml
CONTRIBUTING.md
Gruntfile.coffee
LICENSE.md
README.md
bower.json
component.json
dexdis.js
dexdis.min.js
package.json

README.md

Dexdis

The simplest way to use IndexedDB in the browser.

[Build Status] (https://travis-ci.org/semfact/dexdis) [![Coverage Status] (https://coveralls.io/repos/semfact/dexdis/badge.png?branch=master)] (https://coveralls.io/r/semfact/dexdis?branch=master) [Dependency Status] (https://gemnasium.com/semfact/dexdis) [NPM version] (http://badge.fury.io/js/dexdis) Stories in Ready

Usage

var d = new Dexdis();

d.select(0);
d.set('foo', 42, function(err, res) {
	d.get('foo', function(err, res) {
		console.log(res); // 42
	});
});

d.select(1);
var trans = d.multi();
trans.set('foo', 42);
trans.set('bar', 23);
trans.get('bar');
trans.get('foo');
trans.exec(function(err, res) {
	console.log(res); // ['OK', 'OK', 23, 42]
});

Commands

For a list of available commands see the command list on the website.

Installation

Standalone

Download as standalone JavaScript file directly from the download page

Bower

$ bower install dexdis

Component

$ component install semfact/dexdis

Jam

$ jam install dexdis

Volo

$ volo add dexdis

NPM

$ npm install dexdis

License

Apache 2.0, see LICENSE.md file.