nolanlawson / cordova-plugin-sqlite-2

Native SQLite database API for Cordova/PhoneGap/Ionic, modeled after WebSQL (UNMAINTAINED)
https://nolanlawson.com/2016/04/10/introducing-the-cordova-sqlite-plugin-2/
Apache License 2.0
168 stars 28 forks source link

sqlitePlugin.echoTest is not a function, db.executeSql is not a function #57

Closed GuilhermeLessa closed 6 years ago

GuilhermeLessa commented 6 years ago

The functions return as undeclared. db.executeSql, batch, echoTest, all... I'm having the same problem with the plugin litehelpers/Cordova-sqlite-storage

  1. OpenDataBase is ok! Or not? (see console.log image)
  2. I need to include a sqlLitePlugin.js tag script in the index? Or just have the plugin installed via npm?

CONSOLE LOG IMAGE: https://ibb.co/bKsYKS

db = sqlitePlugin.openDatabase({ name: 'tiCorporativoMobile.db', version: '1.0', location: 'default' }); console.log(db);

db.executeSql('DELETE FROM configuracoes', [], function(rs) {

}, function(error) { //+ error.message

});

help-me please!

GuilhermeLessa commented 6 years ago

I need to create file tiCorporativoMobile.db into root project?

GuilhermeLessa commented 6 years ago

MY CONFIG XML

`<?xml version='1.0' encoding='utf-8'?>

TI Corporativo (dev) en

`

GuilhermeLessa commented 6 years ago

SOLUTIONS: https://github.com/litehelpers/Cordova-sqlite-storage/issues/784

nolanlawson commented 6 years ago

seems this is an issue with installing both cordova-plugin-sqlite-2 and cordova-plugin-sqlite at the same time? in that case, closing