I've heard much good about nodejs and writting client-server application with it. But I can't get, for example, when developing IM client-server application, how nodejs server script is supposed to talk to database server to actually store it's data? Or may be I miss something and nodejs server scripts are not supposed to do that? If so, please, push me to correct direction.
I've noticed DBSLayer http://code.nytimes.com/projects/dbslayer/wiki, but it looks like it's still in beta.
Node. js can be used in database applications. One of the most popular databases is MySQL.
You can connect to a SQL Database using Node. js on Windows, Linux, or macOS.
To access the database from Node. js, you first need to install drivers for the database you want to use. The following table lists important relational databases and respective drivers. The following table lists important NoSQL databases and respective drives .
You need to grab a module that handles the communication to the database you want. See here for a list of modules for node.js. Popular databases that work well with node.js are MongoDB, CouchDB and Redis.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With