Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
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