-
Notifications
You must be signed in to change notification settings - Fork 256
async_api
Georg Richter edited this page Sep 17, 2018
·
5 revisions
The MariaDB Connector/C non-blocking client API is modelled after the normal blocking library calls. This makes it easy to learn and remember. It makes it easier to translate code from using the blocking API to using the non-blocking API (or vice versa). And it also makes it simple to mix blocking and non-blocking calls in the same code path.
For every api function that may block on socket I/O, two additional non-blocking functions are introduced which are suffixed by _start
and _cont
.
For example for the api function int mysql_real_query(MYSQL, query, query_length)
, two additional non-blocking calls are introduced:
int mysql_real_query_start(&status, MYSQL, query, query_length)
int mysql_real_query_cont(&status, MYSQL, wait_status)
For a complete overview please refer to the list of blocking api functions.
MariaDB Connector/C Reference