DB-Library’s Limited Asynchronous Support

On all platforms DB-Library provides limited support for “non-blocking reads,” using the calls dbrpcsend, dbsqlsend, dbpoll, and dbsqlok. Following is the typical calling sequence:

With DB-Library, only the initial read of the command’s results is asynchronous. The application must poll for the arrival of the initial results—if the initial results are not available when dbsqlok is called, dbsqlok blocks. After dbsqlok, subsequent calls to dbresults and dbnextrow are synchronous.