I’m using the alpha version (8.3.94.2017) and when building iOS everything works fine except:
Sugar.Data.SQLiteQueryResult
The Result doesn’t have column names, it returns an empty string for each column.
var result: Sugar.Data.SQLiteQueryResult! = StorageUtils.readAll(connection: self.connection!, tableName: tableName, whereClause: whereClause)
while result != nil && result.MoveNext() {
// The key value pairs to add the columnName + value to
var keyValuePairs = Sugar.Collections.Dictionary()
for index in 0...(result.ColumnCount - 1){
let columnName = result.ColumnName[index as! Int]
let value = result.GetString(result.ColumnIndex[columnName])
NSLog("key: \(columnName) with value: \(value) for index \(index)")
}
}
I need these keyvalue pairs this way to parse it to the right model
Is this related to the iOS Simulator or related to the beta?
Thanks in advance!