Closed stihl-sicher closed 7 years ago
May be, I was just blind ;) Just saw "Issue #4"... ahh, there must be at least three issues before... Took a look at them... I will give the solution mentioned in #2 a try :)
okay, using an existing empty database does the trick.
Just let me note my experience which might help some others... 1) I tried opening the database placed in the www directory. This did not change any behaviour. So I did 2) Copy the database file to the data directory (I selected externalApplicationStorageDirectory for my try) and tried to use the copied version. This works. So, according to the File-API documentation I suppose I missed write permission in the applications base directory...
@stihl-sicher Thank you for taking the time to post your solution, very nice of you! 👍
Hi,
up to now, I am using litehelpers/Cordova-sqlite-storage in my project but I would like to take advantage of the spatial functionality. I was very glad to find a "spatial fork" of the plugin I am using and tried just replacing the sqlite plugin by the spatialite plugin.
Unfortunately this did not the trick :( When running "_db.executeSQL(..)" there is no reaction at all: Neither a positive response nor an error thrown. using the transaction function I get the error "Invalid database handle". _db is received as result of window.sqlitePlugin.openDatabase({name: "tgmapper2.db", location: 1, androidDatabaseImplementation: 2}); Might be, there is some very small error in thinking? Could anyone help me?
Best regards and thanks in advance stihl-sicher
Hello,
I am using cordova-spatialite-storage version 2.0.0, and the way I use the database is like this:
try {
var query = 'SELECT Geometry From
Hi,
up to now, I am using litehelpers/Cordova-sqlite-storage in my project but I would like to take advantage of the spatial functionality. I was very glad to find a "spatial fork" of the plugin I am using and tried just replacing the sqlite plugin by the spatialite plugin.
Unfortunately this did not the trick :( When running "_db.executeSQL(..)" there is no reaction at all: Neither a positive response nor an error thrown. using the transaction function I get the error "Invalid database handle".
_db is received as result of window.sqlitePlugin.openDatabase({name: "tgmapper2.db", location: 1, androidDatabaseImplementation: 2}); Might be, there is some very small error in thinking? Could anyone help me?
Best regards and thanks in advance stihl-sicher