Need advice about which tool to choose?Ask the StackShare community!

Bookshelf.js

6
18
+ 1
2
Objection.js

35
58
+ 1
0
Add tool

Objection.js vs Bookshelf.js: What are the differences?

What is Objection.js? It is an ORM for Node.js. It aims to stay out of your way and make it as easy as possible to use the full power of SQL and the underlying database engine while still making the common stuff easy and enjoyable.

What is Bookshelf.js? Aims to provide a simple library for common tasks when querying databases in JavaScript. It stems from the Knex.js, which is a flexible query builder that works with PostgreSQL, MySQL and SQLite3. Bookshelf.js builds on top of this by providing functionality for creating data models, forming relations between these models, and other common tasks needed when querying a database.

Objection.js and Bookshelf.js can be categorized as "Object Relational Mapper (ORM)" tools.

Some of the features offered by Objection.js are:

  • A declarative way of defining models and relationships between them
  • Simple and fun way to fetch, insert, update and delete objects using the full power of SQL
  • Powerful mechanisms for eager loading, inserting and upserting object graphs

On the other hand, Bookshelf.js provides the following key features:

  • Table creation
  • Manipulation
  • Promise-based and traditional callback interfaces

Objection.js is an open source tool with 4.33K GitHub stars and 349 GitHub forks. Here's a link to Objection.js's open source repository on GitHub.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Bookshelf.js
Pros of Objection.js
  • 2
    Uses both promises and callback methods
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    - No public GitHub repository available -

    What is Bookshelf.js?

    It stems from the Knex.js, which is a flexible query builder that works with PostgreSQL, MySQL and SQLite3. Bookshelf.js builds on top of this by providing functionality for creating data models, forming relations between these models, and other common tasks needed when querying a database.

    What is Objection.js?

    It aims to stay out of your way and make it as easy as possible to use the full power of SQL and the underlying database engine while still making the common stuff easy and enjoyable.

    Need advice about which tool to choose?Ask the StackShare community!

    Jobs that mention Bookshelf.js and Objection.js as a desired skillset
    CBRE
    United States of America Massachusetts Boston
    What companies use Bookshelf.js?
    What companies use Objection.js?
    See which teams inside your own company are using Bookshelf.js or Objection.js.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Bookshelf.js?
    What tools integrate with Objection.js?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Bookshelf.js and Objection.js?
    Hibernate
    Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.
    Entity Framework
    It is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually need to write.
    SQLAlchemy
    SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
    Sequelize
    Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
    Dapper
    It is an object-relational mapping product for the Microsoft.NET platform: it provides a framework for mapping an object-oriented domain model to a traditional relational database.
    See all alternatives