title: Javascript and Sqlite
body: <p>I am creating an app using HTML5 and Javascript. This app will be compatible with Windows and iOS 6 (iPad). I need a local database access using javascript. This is a pure offline ap with no server side involved.</p>
  
  <p>My dilemma is -</p>
  
  <ol>
  <li><p>WebSQL is not supported anymore by W3C.</p></li>
  <li><p>IndexedDB works with Firefox but not with iOS6.</p></li>
  <li><p>Most importantly, I want to avoid HTML5 Local database storage as it cleans data whenever history is cleared.</p></li>
  </ol>
  
  <p>I would like to have a durable database locally for the app, something like SQLite. Is it possible to access SQLite using pure javascript, so that it will work with Firefox on Windows and also on iPad.</p>
  
  <p>EDIT: The app will not be run from the browser in iPad (iOS6). Rather the app will be packaged into ipa file and installed in the iPad device.</p>