Описание тега bookshelf.js

Bookshelf is a promise based ORM for Node.js, built on Knex query builder. It extends the Model & Collection foundations of Backbone.js, providing transaction support, eager/nested-eager relation loading, polymorphic associations, and support for one-to-one, one-to-many, and many-to-many relations.

Bookshelf is a promise based ORM for Node.js, built on Knex query builder. It extends the Model & Collection foundations of Backbone.js, providing transaction support, eager/nested-eager relation loading, polymorphic associations, and support for one-to-one, one-to-many, and many-to-many relations.

It is designed to work well with PostgreSQL, MySQL, and SQLite3.

Bookshelf aims to provide a simple library for common tasks when querying relational databases in javascript, and forming relations between these objects, using ideas from DataMapper and Active Record. At ~1000 lines of well documented code, Bookshelf is simple to read, understand, and extend. It doesn't force you to use any specific validation scheme, and provides flexible and efficient relation/nested-relation loading, and first class transaction support.

Bookshelf extends the excellent foundation provided by Backbone.js Models and Collections, using similar patterns, naming conventions, and philosophies to build a lightweight, easy to navigate ORM. If you know how to use Backbone, you probably already know how to use Bookshelf.

Source: http://bookshelfjs.org/