Skip to content

Instantly share code, notes, and snippets.

@lholmquist
Last active December 16, 2015 21:21
Show Gist options
  • Save lholmquist/5499275 to your computer and use it in GitHub Desktop.
Save lholmquist/5499275 to your computer and use it in GitHub Desktop.

indexedDB Thoughts

current DataManager api

create a new datamanager with a default memory adapter

var dm = AeroGear.DataManager( "simple" );

read



save




remove




filter

1 data store creates 1 objectstore and database. if another obect store is needed, need to create a new database with 1 object store in it

DataManager === DataBase stores === objectStores

Modify the api a little to accomodate indexDB and webSQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment