eloquent-db
v1.0.1
Published
`eloquent-db` is a simple and lightweight query builder for JavaScript, based on the syntax of Laravel's *Eloquent ORM*.
Downloads
4
Readme
eloquent-db
eloquent-db
is a simple and lightweight query builder for JavaScript, based on the syntax of Laravel's Eloquent ORM.
One can build a query like so:
import { Builder } from 'eloquent-db';
const builder = new Builder();
const users = builder.table('chocoate')
.select('name', 'calories', 'sugar_content')
.where('calories', '>', '150')
.orderBy('name', 'asc')
.limit(3)
.get();