Skip to content
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

Is there a sync api? #96

Open
TangMonk opened this issue Mar 17, 2020 · 1 comment
Open

Is there a sync api? #96

TangMonk opened this issue Mar 17, 2020 · 1 comment

Comments

@TangMonk
Copy link

I do not like the callback style

@kilnerm
Copy link
Contributor

kilnerm commented Mar 17, 2020

There is not a synchronous API available. If you look at the connectSync function it shows you how to create a synchronous wrapper the the async functions: https://github.com/IBM-Swift/Swift-Kuery-PostgreSQL/blob/511db44db0305d3ba0d06260d407cc269074ec3e/Sources/SwiftKueryPostgreSQL/PostgreSQLConnection.swift#L195

I always wondered if we could create a generic wrapper but never got around to trying it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants