1.0.0 • Published 4 years ago

@capaj/objection v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Build Status Coverage Status Join the chat at https://gitter.im/Vincit/objection.js

Objection.js

Objection.js is an ORM for Node.js that 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 keeping magic to a minimum.

Objection.js is built on an SQL query builder called knex. All databases supported by knex are supported by objection.js. SQLite3, Postgres and MySQL are thoroughly tested.

What objection.js gives you:

What objection.js doesn't give you:

  • A custom query DSL. SQL is used as a query language. This doesn't mean you have to write SQL strings though. A query builder based on knex is used to build the SQL. However, if the query builder fails you for some reason, raw SQL strings can be easily written using the raw helper function.
  • Automatic database schema creation and migration from model definitions. For simple things it is useful that the database schema is automatically generated from the model definitions, but usually just gets in your way when doing anything non-trivial. Objection.js leaves the schema related things to you. knex has a great migration tool that we recommend for this job. Check out the example project.

Objection.js uses Promises and coding practices that make it ready for the future. We use Well known OOP techniques and ES2015 classes and inheritance in the codebase. You can use things like async/await using node ">=7.6.0" or alternatively with a transpiler such as Babel. Check out our ES2015 and ESNext example projects.

Shortcuts:

2.1.2

4 years ago

1.6.14

4 years ago

1.6.13

5 years ago

1.6.12

5 years ago

1.6.11

5 years ago

1.6.10

5 years ago

1.6.9

5 years ago

1.6.8

5 years ago

1.6.7

5 years ago

1.6.6

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.5.1

5 years ago

1.4.0

5 years ago

1.3.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago