0

I am about to start working on a metro app using JavaScript/HTML which will store data locally, when no internet connection is there and also planning to port the same on other platform's later.

What would be the right choice for database - SQLite or Indexed db ?

Hemant Bhatt
  • 475
  • 1
  • 6
  • 24

1 Answers1

1

I would have to say that IndexedDB is a much better option than SQLite for Windows 8 applications because:

  • It's built into the browser, so the code you're writing has skill portability to web applications
  • There are several good libraries out there to simplify working with it (pouchdb, db.js, jQuery IndexedDB, and many more)
  • The API is designed to work with JavaScript objects, particularly when it comes to querying, unlike SQLite which you (generally speaking) will have to create SQL statements as strings
Aaron Powell
  • 24,927
  • 18
  • 98
  • 150