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

Asynchronous operation #312

Open
krlmlr opened this issue Oct 28, 2019 · 1 comment
Open

Asynchronous operation #312

krlmlr opened this issue Oct 28, 2019 · 1 comment
Labels

Comments

@krlmlr
Copy link
Member

@krlmlr krlmlr commented Oct 28, 2019

It would be great to be able to interrupt a query that takes a long time to run and return records. For this it seems we need to look into asynchronous execution with polling: https://docs.microsoft.com/en-us/sql/odbc/reference/develop-app/asynchronous-execution-polling-method?redirectedfrom=MSDN&view=sql-server-ver15 .

A first glance into nanodbc suggests that some form of callback is supported. For drivers that support this, we could then execute asynchronously and poll for completion and also call checkUserInterrupt().

@krlmlr

This comment has been minimized.

Copy link
Member Author

@krlmlr krlmlr commented Dec 17, 2019

r-dbi/RPostgres#193 contains an implementation for libpq, we could model after this, including the argument name.

@jimhester jimhester added the feature label Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.