Skip to content

jimczj/Dexie.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dexie.js

NPM Version

What is Dexie.js?

Dexie.js is a wrapper library for indexedDB.

Why is Dexie.js needed?

Dexie solves three main issues with the native IndexedDB API:

  1. [Ambivalent error handling](The Three Main Limitations of IndexedDB)
  2. [Poor queries](The Three Main Limitations of IndexedDB)
  3. [Code complexity](The Three Main Limitations of IndexedDB)

Dexie.js solves these limitations and provides a neat database API. Dexie.js aims to be the first-hand choice of a IDB Wrapper Library due to its well thought-through API design, robust error handling, [extendability](Building Addons), change tracking awareness and its extended KeyRange support (case insensitive search, set matches and or operations).

Please Show me a Hello World Example

//
// Declare Database
//
var db = new Dexie("FriendDatabase");
db.version(1).stores({ friends: "++id,name,age" });
db.open();

//
// Manipulate and Query Database
//
db.friends.add({name: "Josephine", age: 21}).then(function() {
    return db.friends.where("age").below(25).toArray();
}).then(function (youngFriends) {
    console.log("My young friends: " + JSON.stringify(youngFriends));
});

Documentation

https://github.com/dfahlander/Dexie.js/wiki/Dexie.js

Samples

https://github.com/dfahlander/Dexie.js/wiki/Samples

Forum

https://groups.google.com/forum/#!forum/dexiejs

Website

http://www.dexie.org

Download

https://raw.githubusercontent.com/dfahlander/Dexie.js/master/dist/latest/Dexie.js https://raw.githubusercontent.com/dfahlander/Dexie.js/master/dist/latest/Dexie.min.js

About

A Minimalistic Wrapper for IndexedDB

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 70.7%
  • TypeScript 27.8%
  • Other 1.5%