Stacker
Stacker

Reputation: 8237

How to use indexed Database with Metrostyle Javascript

I'm writing Web-App for Windows 8 using Java-script, i was looking for a database solution, i found Indexed Database Part of Internet Explorer 10 which is ok as Metro Style App using IE10 to host HTML, However i couldn't find any example on how to use Indexed Database for Metro-style App in JavaScript, Any one can provide a very sample example on how to do that ?

Upvotes: 1

Views: 350

Answers (3)

axemclion
axemclion

Reputation: 61

IF you would need a greater level of abstraction, you could try using LINQ2IndexedDB - a LINQ like option for IndexedDB

http://linq2indexeddb.codeplex.com

Upvotes: 2

Dominic Hopton
Dominic Hopton

Reputation: 7292

Mleroys link looks great for building a nice data adapter for the listview/flipview.

For a nice wrapper, take a look at:

https://github.com/grork/db.js

Which is a WinJS port of dB.js from Aaron Powell. It gives you chaining and what not.

Upvotes: 1

siger
siger

Reputation: 3162

It would be the same as for IE10. See the MSDN doc: http://msdn.microsoft.com/en-us/library/ie/hh920759(v=vs.85).aspx

For an example of how to implement a custom data source with IndexedDB, see: http://stephenwalther.com/archive/2012/07/10/creating-an-indexeddbdatasource-for-winjs.aspx

Upvotes: 0

Related Questions