I am trying out FMDB and it looks like it will work perfectly for me IF I can get my FMResultSet turned into an NSMutableArray.
How would I accomplish this?
You could try this.
NSMutableArray *array = [NSMutableArray array];
FMDatabase *database = [FMDatabase databaseWithPath:databasePath];
[database open];
FMResultSet *results = [database executeQuery:@"SELECT * FROM Table"];
while ([results next]) {
[array addObject:[results resultDictionary]];
}
NSLog(@"%@", array);
[database close];
I am using this in project, and it's working just fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With