title: What database does PhoneGap use and what is the size limit?
body: <p>I wrote an HTML5 database that abstracts localStorage, indexedDB, and WebSQL. Using straight HTML5 my database options look like this:</p>
  
  <ul>
  <li><strong>IE10</strong> - indexedDB - 1GB max</li>
  <li><strong>FireFox</strong> - indexedDB - unlimited </li>
  <li><strong>Safari</strong> - WebSQL - 50MB max</li>
  <li><strong>Chrome</strong> - IndexedDB (or Web SQL) - unlimited (with the HTML5 Quota API <a href="https://developers.google.com/chrome/whitepapers/storage" rel="nofollow noreferrer">ref1</a>, <a href="http://updates.html5rocks.com/2011/11/Quota-Management-API-Fast-Facts" rel="nofollow noreferrer">ref2</a>)</li>
  <li><strong>Opera</strong> - WebSQL (until they switch to webkit?) - unlimited</li>
  </ul>
  
  <p>I would like to expand the maximum database size using PhoneGap or the Quota API. From PhoneGap's documentation it looks like the current <a href="http://docs.phonegap.com/en/1.2.0/phonegap_storage_storage.md.html" rel="nofollow noreferrer">PhoneGap database ecosphere</a> is:</p>
  
  <ul>
  <li><strong>WebSQL</strong> - Android, Blackberry, iPhone, and webOS</li>
  <li><strong>localStorage</strong> - Windows Phone 7</li>
  <li><strong>indexedDB</strong> - <a href="https://stackoverflow.com/questions/14624482/phonegap-sqlite-or-indexed-db">Windows Phone 8</a> and, i am guessing, everywhere indexedDB is available but WebSQL isn't.</li>
  </ul>
  
  <p>There are also the PhoneGap SqlLite plugins. <a href="https://github.com/brodyspark/PhoneGap-sqlitePlugin-iOS" rel="nofollow noreferrer">iOS</a>, <a href="https://github.com/brodyspark/PhoneGap-SQLitePlugin-Android" rel="nofollow noreferrer">Android</a>, <a href="https://github.com/marcucio/Cordova-WP-SqlitePlugin" rel="nofollow noreferrer">Windows Phone 8+</a></p>
  
  <hr>
  
  <p><strong>QUESTION 1</strong> - Is my understanding of what database PhoneGap will use accurate?</p>
  
  <p><strong>QUESTION 2</strong> - Is there any solid documentation about how much data a PhoneGap database of a given type will store? *If it is a PhoneGap database and not the browsers database implementation.</p>
  
  <p><strong>QUESTION 3</strong> - Does PhoneGap have plans to adhere to the the <a href="http://www.w3.org/TR/webstorage/" rel="nofollow noreferrer">Web Storage standards</a> thereby dropping WebSQL in favor of indexedDB? If so, will I still be able to use my existing WebSQL code (via a built in PhoneGap-polyfill) once the switch to indexedDB is made?</p>
  
  <p><strong>QUESTION 4</strong> - In situations where database size is limited and cannot be expanded by either PhoneGap or the Quota API, but access to the file system is available, is it reasonable to assume that "extra" data could be stored on the device's file system or on a SD card?</p>