You can use the PDO or Mysqli with Swoole\Runtime::enableCoroutine to enable the coroutine support for the MySQL Client.
PDO
Mysqli
The API are the same as PDO and Mysqli.
Join 1,000+ others and never miss out on new tips, tutorials, and more.