-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Connection API to be synchronous #61
Comments
@shmuelk mentioned you were thinking about making Kuery functions throw instead of returning QueryResult.error(). IMO, that would be better. (I just saw that you also mentioned this a possibility above) Also, if we were to do that, I think it would be worth considering moving
What do you think? |
OK, we can do this. @shmuelk proposed to use |
@irar2 Hello :), |
Hi @irar2, Having the syncronous API will be great! |
@irar2 I was reading at the implementation of the MySQL plugin and I didn't find asynchronous call to the database, so actually I was wondering why do you decide to use completion handler instead of simple return and catch ? |
@shmuelk Would be amazing to have a synchronous API |
This item will be addressed by PR #152 |
We no longer plan on addressing this via the changes related to PR #152. We will however look at providing a utility function to wrap the asynchronous API which will allow synchronous usage of the SwiftKuery API. |
The execute query functions will look like this:
Transaction related functions will be changed in the same way:
We can also throw errors instead of returning them inside QueryResult.
ResultFetcher will be synchronous only, i.e.
will be removed.
The text was updated successfully, but these errors were encountered: