Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Android SQlite Problem

$
0
0

You probably are missing the third parameter

db = $cordovaSQLite.openDB({name : "my.db"});
var query = "CREATE TABLE IF NOT EXISTS people (id integer primary key, firstname text)

$cordovaSQLite.execute(db, query, []).then(function(res) {
   console.log(res);
}, function (err) {
   console.error(err);
});

If you want to test it also in your browser check this out: https://gist.github.com/ilgianfra/9b3c4f1492745d818618
Let me know if it hepls!


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>