Open imarennow opened 5 years ago
Sure thing! A few notes, enumerated:
-execute:completion:
, which leaves the contained type of the completion parameter unspecified. If it were specified as - (void)execute:(nonnull NSString*)sql completion:(nullable void(^)(NSArray<NSArray<NSDictionary<NSString*, __kindof NSObject*>*>*>* results))completion;
, then it would be imported into Swift as func execute(_ sql: String, completion: @escaping (Array<Array<Dictionary<String, AnyObject>>>)->Void)
, which makes accessing the results a bit easier.Sorry for the delay.
I have been using this since about a year and everything seems to be working fine. This pull request can be merged.
Thanks very much! Can you provide me with instructions on how to properly test this? Also do you have any suggestions on making the code more Swift-friendly? Thanks!