I'm looking for a quick way to debug my SQLite queries in an iOS app. I have something like this:
NSString *sql = [NSString stringWithString: @"SELECT * FROM table WHERE foo = ? AND bar = ?"];
NSArray *params = [NSArray arrayWithObjects: @"baz", @"bat", nil];
NSLog(@"%@ %@", sql, params);
I'd like to know if there is a one or two-liner to replace the question marks with the params to make the output more readable. I'm not looking for something that outputs valid sql but rather something easier to read than my current NSLog.