Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
/ ingoose Public archive

Simple IdnexedDB driver for browser application, with Mongoose like API.

License

Notifications You must be signed in to change notification settings

otiai10/ingoose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ingoose

Simple IdnexedDB driver for browser application, with mongoose like API.

Demo

http://otiai10.github.io/ingoose/demo.html

Sample

ingoose.connect('database_name');

var User = ingoose.model('user', {keyPath: 'id'});

var otiai = new User({name: 'otiai10', age: 28, id: 1234});
otiai.save().error(function(err) {
    // error
}).success(function() {
    // succeeded
});

User.find({only: 1234}).success(function(users) {
    console.log(user);
});

User.find({min:0, max:2000}).success(function(users) {
    console.log(users);
});

Intall

<script type="text/javascript" src="https://raw.githubusercontent.com/otiai10/ingoose/dest/ingoose.min.js"></script>

About

Simple IdnexedDB driver for browser application, with Mongoose like API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published