What is the best relational database for node.js? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

What is the best relational database for node.js?

I do not see a lot of conversation about node.js and relational databases. what am I missing?? thank you.

30th Apr 2018, 2:24 AM
Lisa F
Lisa F - avatar
8 Answers
+ 6
I have seen several projects with SQLite, MySQL and SQL Server. Basically you're not missing anything, you just have to find a driver for your database, make the connections and start working. In the same way I have not seen that there is a database that can be considered standard. The choice is always made by the developer based on the requirements of the application
30th Apr 2018, 2:43 AM
Mickel
Mickel - avatar
+ 6
Node.js is best to handle with NoSql database connection eg. Mongodb. Their syntax is similar, one use Javascript and the other uses Json.
9th Jul 2018, 12:47 PM
Calviղ
Calviղ - avatar
+ 6
thanks Calvin. But that's what I'm afraid of. I'm an old relational-database person. I eat sleep and dream in relational database. I want to know which relational database works best with node.js. I do not want to have to convert my data to Json first. But I'm willing to do that if that is the best/ most popular way. but I'm definitely going to store my data in a relational database permanently even if I have to convert it to Json before it goes to a web page. That is a core value of mine. thoughts?
11th Jul 2018, 1:53 AM
Lisa F
Lisa F - avatar
+ 4
can anyone speak specifically to relational databases and node.js? thanks.
2nd May 2018, 1:50 AM
Lisa F
Lisa F - avatar
+ 4
Hi Lisa F did you found YOUR RDB pick for Nodejs, I am curious as well? I think we will have to decide based on 2 factors. # js friendliness Sqllite, plain JSON file (i wrote basic validation and CRUD for using plain JSON it was a cool experiment) #speed, performance Redis, mariadb Postgre is getting popular as well, I got to know it by working on heroku(plug and play paas cloud platform) they offer free Postgre dbs for testing. I personally love mongodb right now, people say its bloated and slow. But i love that its more application centric and not data centric so very easy to model unlike in Sql, so really awesome when we start and datasets are not completely known , we can always move to other db later. If indexing and setup is done right i think it ll beat many Sql s ( it would be a cool experiment)
21st Jul 2018, 12:58 PM
Morpheus
Morpheus - avatar
+ 4
Hi Lisa F and Morpheus You could integrate a SQL database through Sequelize.js Check out the getting started tutorial here: http://docs.sequelizejs.com/manual/installation/getting-started
22nd Jul 2018, 1:22 AM
Calviղ
Calviղ - avatar
+ 3
morpheus unfortunately no. Although node.js is so tempting, until I can connect it to a relational database with the same ease that I can use php and sql/mysql I'm sticking with the tried and true. Properly structured relational databases have been at the heart of all of my application successes and poorly designed databases have been at the heart of all of my failures. So I have to start there...
21st Jul 2018, 2:13 PM
Lisa F
Lisa F - avatar
- 3
Best is a word that rarely applies to different languages in programming because they all have pros and cons depending on what you are trying to do. Language A may be best for Project 1 but for Project 2 you find Languange B is best. Same with databases. They all do essentially the same thing. Some are a little harder to learn than others. Some have some requirements others don't. It's up to you to pick which is best for you and the project.
30th Apr 2018, 3:45 AM
Adam
Adam - avatar