|
há 6 anos atrás | |
---|---|---|
.. | ||
lib | há 6 anos atrás | |
typings | há 6 anos atrás | |
LICENSE | há 6 anos atrás | |
README.md | há 6 anos atrás | |
package.json | há 6 anos atrás |
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:
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.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: