02-25-2012 03:25 PM - edited 02-25-2012 03:41 PM
default value for offlineStoragePath is
"/accounts/1000/appdata/com.example.appName/data/.
while some sqlite db stored in "/accounts/1000/appdata/com.example.appName/db"
upd:
changing of OfflineStoragePath works well for me: now it's look like "/accounts/1000/appdata/com.example.appName/data"
02-25-2012 03:45 PM
02-25-2012 04:08 PM
Ok, I've managed to set offline storage path to /accounts/1000/appdata/com.tester.Fiszki.testDev_s
In line:
tx.executeSql('CREATE TABLE IF NOT EXISTS Greeting(salutation TEXT, salutee TEXT)');
my findGreetings() function is stopped.
I have no more ideas what is wrong...
02-25-2012 04:24 PM
Not knowing QtQuick well yet, I can't say exactly what's wrong but can only provide suggestions.
I notice the example code in the docs (on which you've obviously based this) does not include the empty array argument in the CREATE TABLE call.
In the same docs, it notes that an INI file should be created by the openDatabaseSync() call, with some metadata written to it. Can you check in the ./data folder to see whether that's been created? You'd need to know how to SSH in, or use some other technique. See http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeg
If you don't see the INI file anywhere, I would assume the database is not really open...
02-25-2012 10:23 PM
INI file I see, but I can't fount .sqlite / .db file.
openDatabaseSync create *.ini file and empty dir "Databases".
I think that I must go sleep
Thanks for your help. Goodnight.
02-25-2012 10:25 PM
02-25-2012 11:01 PM - edited 02-25-2012 11:03 PM
This folder is empty (or I can't open correctly) . I will attempt to open the ini file at the morning. I'm going to sleep, because is 5a.m. in Europe already
p
02-26-2012 08:29 AM
Hi,
I've managed to open the ini file.
It includes data who I set in my qml:
[General]
Description=Fiszki
Driver=QSQLITE
EstimatedSize=1000000
Name=Base
Version=1.0
In the Databases folder I've found the same ini file like in. /data (the same name, and the same content)
Still I can't find database file.
02-26-2012 08:53 AM
02-26-2012 09:00 AM