[Solved] Where does openDatabaseSync() come from?
-
[quote author="DevPB" date="1286735460"]In the QML example : sqllocalstorage , the function openDatabaseSync() does it come from the Qt 4.7 library or is it inbuilt?
[/quote]It appears in Qt docs "here":http://doc.trolltech.com/4.7-snapshot/qdeclarativeglobalobject.html#offline-storage-api. I'm not a javascript specialist but a quick search showed this method is part of "this w3c spec":http://www.w3.org/TR/WebSimpleDB/.
-
And FWIW the actual SQlite databases are stored here on (my) linux system...
@~ ll ~/.local/share/data/QML/OfflineStorage/Databases/
total 16
-rw-r--r-- 1 markc users 115 Dec 1 22:51 038c3b88c047f6e02ebfea279fa295a7.ini
-rw-r--r-- 1 markc users 3072 Dec 1 23:28 038c3b88c047f6e02ebfea279fa295a7.sqlite
-rw-r--r-- 1 markc users 109 Dec 9 17:29 bb64fbd38becdb6dea4cad4c4ed3ae31.ini
-rw-r--r-- 1 markc users 2048 Dec 9 17:33 bb64fbd38becdb6dea4cad4c4ed3ae31.sqlite
@