Below, you will find a list of Node.js plugins and tools designed to connect the platform with various databases divided into several categories. There are drivers, ODR/ORM tools, Query builder, and other solutions described in this Node.js database digest.
Table of contents
- 1 Node.js Database: Drivers
- 2 Node.js Database: ODM/ORM
- 3 Node.js Database: Query builder
- 4 Knex
- 5 Node.js Database: Embedded datastore
- 6 NeDB
Node.js Database: Drivers
LevelUP is designed to connect your Node.js with LevelDB – a simple key/value data store. Consequently, you will get exposed LevelDB features optimized for Node.js.
If you are looking for a reliable PostgreSQL client for Node.js development, then pay attention to this driver. This Node.js database solution offers a pure JS as well as native libpq bindings.
This Node.js tool is a MongoDB driver designed to streamline your development with the database in Node.js. The driver is aimed at end users.
Last but not least, is a Redis client. It is a robust full-featured software solution designed for Node.js that will help you achieve incredible performance. It supports a lot of useful features.
Node.js Database: ODM/ORM
If you are going to improve your Node.js development with MySQL, SQLite3, or PostgreSQL ORM, then give Bookshelf.js a try. This Node.js database solution is designed in the style of Backbone.js.
This Node.js database solution is a multi-dialect ORM. It also supports MySQL, SQLite, and PostgreSQL.
Enhance your Node.js coding opportunities with MongoDB object modeling introduced in Mongoose. Writing MongoDB validation has never been so simple!
Waterline is a datastore-agnostic adapter-based ORM for Node.js that dramatically simplifies interaction with MySQL, Mongodb, Redis, and other databases
If you are looking for something similar to ActiveRecord, then try OpenRecord. It is a reliable ORM for Node.js that works not only with MySQL, SQLite3, and PostgreSQL, but also with RESTful datastores.
Iridium is another Node.js database solution designed for MongoDB. Being a high performance ORM? this one offers such features as promises, preprocessing, validation, and distributed caching as well as supports plugins.
Firenze is an adapter-based ORM aimed not only at Node.js, but also at io.js and the browser. This database tool provides the ability to use MySQL, Redis, Memory, localStorage, and other solutions in your Node.js projects.
For those developers looking for a more complex Node.js database solution, we recommend ORM2, since the tool supports PostgreSQL, MySQL, MariaDB, Amazon Redshift, MongoDB, and SQLite.
Node.js Database: Query builder
Unfortunately, there is only one query builder introduced in this section of our Node.js Database post, but it is a quite reliable solution. Being flexible and portable, Knex targets MySQL, SQLite3, and PostgreSQL.
Node.js Database: Embedded datastore