Database integration
Adding the capability to connect databases to Express apps is just a matter of loading an appropriate Node.js driver for the database in your app. This document briefly explains how to add and use some of the most popular Node.js modules for database systems in your Express app:
- Cassandra
- Couchbase
- CouchDB
- LevelDB
- MySQL
- MongoDB
- Neo4j
- Oracle
- PostgreSQL
- Redis
- SQL Server
- SQLite
- Elasticsearch
Cassandra
Module: cassandra-driver
Installation
Example
Couchbase
Module: couchnode
Installation
Example
CouchDB
Module: nano
Installation
Example
LevelDB
Module: levelup
Installation
Example
MySQL
Module: mysql
Installation
Example
MongoDB
Module: mongodb
Installation
Example (v2.*)
Example (v3.*)
If you want an object model driver for MongoDB, look at Mongoose.
Neo4j
Module: neo4j-driver
Installation
Example
Oracle
Module: oracledb
Installation
NOTE: See installation prerequisites.
Example
PostgreSQL
Module: pg-promise
Installation
Example
Redis
Module: redis
Installation
Example
SQL Server
Module: tedious
Installation
Example
SQLite
Module: sqlite3
Installation
Example
Elasticsearch
Module: elasticsearch