Is integration with MySQL impossible due to lack of file descriptors? #4781
Unanswered
HallofFamer
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
No file descriptors means it's not compatible with libuv. There are other libraries out there that implement the mysql wire protocol and expose a file descriptor-based API (e.g. the mysql node.js package, althoug that's javascript.) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks to the help of the community I managed to integrate libuv with curl in my application. I am trying to do something similar with database engines such as MySQL and Postgres, but it seems much more difficult. I read from MySQLβs bug report and it seems that they do not expose file descriptors.
https://bugs.mysql.com/bug.php?id=99805
However, it seems that for uv_poll to work with library, file descriptors are necessary:
Does this mean that if a library does not provide file descriptors, it cannot be integrate with libuv? If so, integration with MySQL and other similar databases is impossible. Or is there another way to integrate libuv with MySQL different from how integration worked with curl? The C API does have a few non blocking functions but I ainβt sure if these are compatible with libuv.
https://dev.mysql.com/doc/c-api/8.4/en/c-api-asynchronous-interface.html
Beta Was this translation helpful? Give feedback.
All reactions