Skip to content

Instantly share code, notes, and snippets.

@jensarps
Created November 24, 2011 14:13
Show Gist options
  • Save jensarps/1391434 to your computer and use it in GitHub Desktop.
Save jensarps/1391434 to your computer and use it in GitHub Desktop.
IDBWrapper tutorial, step 1
<!DOCTYPE html>
<html>
<head>
<title>IDBWrapper Tutorial, Step 1</title>
</head>
<body>
<script type="text/javascript" src="IDBStore.js"></script>
<script type="text/javascript" src="tutorial.js"></script>
</body>
</html>
var customers = new IDBStore({
dbVersion: 1,
storeName: 'customer',
keyPath: 'id',
autoIncrement: true,
onStoreReady: function(){
console.log('Store ready!');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment