Is there an easy way to get the FMDB results of an executeQuery:SELECT * ...
easily into a dictionary?
FMResultSet *appointmentResults = [[DataClass
Yep:
NSMutableArray *results = [NSMutableArray array];
FMResultSet *appointmentResults = [[DataClass getDB] executeQuery:@"SELECT * FROM Appointments WHERE date = ?",currDateString];
while ([appointmentResults next]) {
[results addObject:[appointmentResults resultDictionary]];
}
-resultDictionary
is a built-in method on FMResultSet
that will turn the current tuple into an NSDictionary, keyed by column name.