MySQL Forums
Forum List  »  Connector/Node.js

Is there any npm library available for mysql which is synchronous?
Posted by: Prithwiraj Bose
Date: September 18, 2022 05:09PM

I am using MySQL for years but recently started working on NodeJS. I have seem several MySQL libraries available on npm repository. However almost all of the working ones are using async connection and query functions. Is there any library available which doesn't work asynchronously and can return query results in a sync flow? Something like this:

const mysqllib = require('mysqllib);
$conn = mysqllib.connect(...);
$res = mysqllib.query($conn, ...);

Thanks in advance for your responses.

Regards,
Prithwiraj Bose
https://sribasu.com

Options: ReplyQuote


Subject
Written By
Posted
Is there any npm library available for mysql which is synchronous?
September 18, 2022 05:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.