Grokking Node.js
0% completed
Working with PostgreSQL and MySQL in Node.js
What changes when the users live in a relational database instead of MongoDB? The four operations stay the same, but there is no schema library in between. Your code writes SQL statements, sends them through a driver, and receives rows back. This lesson stores the same users in PostgreSQL with the pg package, and in MySQL with the mysql2 package.
PostgreSQL and MySQL are both open-source relational databases, and both are widely used with Node.js. PostgreSQL follows the SQL standard closely and has many advanced features, such as JSON columns and its own extensions
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%