title: Using SQLite with Phonegap Desktop
body: <p>I am opening a SQLite database in phonegap.
  This is my javascript code :</p>
  
  <pre><code>      var myDB = null;
  
        function onDeviceReady()
        {            
  
          myDB = window.openDatabase("test", "1.0", "Test DB", 1000000);
          //myDB = window.sqlitePlugin.openDatabase({name: 'test.db', location: 'default'});
  
  
          alert("yal");
  
  
          myDB.transaction(PopulateDatabase,errorDB,successDB);
          myDB.transaction(queryDB, errorCB, querySuccess);
  
       }
  
        function PopulateDatabase(tx)
        {
          tx.executeSql('DROP TABLE IF EXISTS DEMO');
          tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
          tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
          tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
        }
  
        function errorDB(error)
        {
          alert("Error on Database creation : " + error);
        }
  
        function successDB()
        {
          alert("Database is created successfully");
        } 
  
        function queryDB(tx) {
          tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
        }
  
        function querySuccess(tx, results) {
           var len = results.rows.length;
           alert("DEMO table: " + len + " rows found.");
           for (var i=0; i&lt;len; i++){
           alert("Row = " + i + " ID = " + results.rows.item(i).id + " Data =  " + results.rows.item(i).data);
  }
          alert("success");
        }
  
        function errorCB(err) {
          alert("Error processing SQL: "+err.code);
        }
  </code></pre>
  
  <p>This is work and I can get data from my database.
  My problem is that I can't found my database on my computer.
  Could someone tell me where can I found it ?</p>
  
  <p>I tried this but it doesn't work for me.</p>
  
  <pre><code>myDB = window.sqlitePlugin.openDatabase({name: 'test.db', location: 'default'});
  </code></pre>
  
  <p>I am using cordova-sqlite-storage plugin.</p>
  
  <p>This is my config.xml file of the project :</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="com.phonegap.helloworld" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"&gt;
  &lt;name&gt;yal&lt;/name&gt;
  &lt;description&gt;
      A blank PhoneGap app.
  &lt;/description&gt;
  &lt;author email="support@phonegap.com" href="http://phonegap.com"&gt;
      PhoneGap Team
  &lt;/author&gt;
  &lt;content src="index.html" /&gt;
  &lt;access origin="*" /&gt;
  &lt;plugin name="cordova-sqlite-ext" spec="~0.10.2" /&gt;
  </code></pre>
  
  <p></p>