Chapter 7: Working with Databases
Many applications require data access and storage, and in many cases, a traditional relational database suits the application's requirements. In a relational database, the data will likely have a defined relationship, organized into tables.
However, more recently there has been the emergence of non-relational databases, often falling under the term NoSQL databases. NoSQL databases suit data where there isn't an easily predefined structure, or where flexibility in the data structure is required.
In this chapter, we will look at how we can persist data to both SQL and NoSQL databases with Node.js.
This chapter will cover the following recipes:
- Connecting and persisting to a MySQL database
- Connecting and persisting ...
Get Node Cookbook - Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.