Node Database Drivers

Sep 06, 2021nodelibslists

A database driver is a computer program that implements a protocol (ODBC or JDBC) for a database connection. The driver works like an adaptor which connects a generic interface to a specific database vendor implementation. Following libraries are official native drivers implemented in Node.js.

  • node-postgres - A collection of node.js modules for interfacing with your PostgreSQL database. It has support for callbacks, promises, async/await, connection pooling, prepared statements, cursors, streaming results, C/C++ bindings, rich type parsing, and more.
  • ioredis - A robust, performance-focused and full-featured Redis client for Node. It supports Cluster, Sentinel, Streams, Pipelining and of course Lua scripting & Pub/Sub.
  • mysql - A pure Node JavaScript Client implementing the MySQL protocol, fully supported features and very popular.
  • node-mongodb-native - The official MongoDB driver for Node. Provides a high-level API on top of mongodb-core that is meant for end users.
  • couchnode - The SDK library allows you to connect to a Couchbase cluster from Node. It is a native Node module and uses the very fast libcouchbase library to handle communicating to the cluster over the Couchbase binary protocol.