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

Bookshelf.js

6
21
+ 1
3
Objection.js

39
67
+ 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.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Bookshelf.js
Pros of Objection.js
  • 3
    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!

    What companies use Bookshelf.js?
    What companies use Objection.js?
    Manage your open source components, licenses, and vulnerabilities
    Learn 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?
    MySQL
    The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
    PostgreSQL
    PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions.
    MongoDB
    MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
    Redis
    Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.
    Amazon S3
    Amazon Simple Storage Service provides a fully redundant data storage infrastructure for storing and retrieving any amount of data, at any time, from anywhere on the web
    See all alternatives