@stefanleever wrote:
I've recently started developing an app using Ionic 2 because of it's out-of-the-box support of SqlStorage.
The SqlStorage implementation works great for Ionic Serve and the Android Emulator but not on iOS.
The SqlStorage implementation on iOS works to the point where you can create the tables and insert some data but I can't seem to retrieve any data with a simple SELECT statement such as:
storage.query('SELECT * FROM box WHERE boxHidden = ?', [0]).then((resp) => { console.log(JSON.stringify(resp)); });
From this query I am only getting back the following resultset:
{ "tx": { "db": { "openargs": { "name":"__ionicstorage", "location":2, "createFromLocation":0, "backupFlag":2, "existingDatabase":false, "dblocation":"nosync" }, "dbname":"__ionicstorage" }, "txlock":true, "readOnly":false, "executes":[], "finalized":true }, "res": { "rows": { "length":3 }, "rowsAffected":0 } }
As opposed to Android where I am getting a resultset with an arraly of data with 3 objects and the length element.
Has anybody got a similar experience and knows how to approach/solve this?
Thank you very much in advance.
Best regards,
Posts: 1
Participants: 1