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 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.