FMDB resultset into dictionary FMDB resultset into dictionary sqlite sqlite

FMDB resultset into dictionary


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.