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!