Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
1–10 of 16 posts
Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#2Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#3Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#4Looks awesome! Nice work.
Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#5Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#6[0] https://twitter.com/laravelphp/status/333971780886728705
Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#7This is a port of Eloquent from Laravel [0], which is brilliant. I haven't used this, but if it's a faithful port it'll be awesome. [0] https://twitter.com/laravelphp/status/333971780886728705
I owe a lot of thanks to Taylor for writing Eloquent, he has been really helpful with any questions I've had in putting this together.
Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#8Is there any effort to modularize Backbone itself, so that Bookshelf can only depend on the model and collection pieces?
Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#9This looks really great! One thing really bothers me however: a dependency on all of Backbone. Pulling in a bunch a view-related code for an ORM has a certain code smell. Is there any effort to modularize Backbone itself, so that Bookshelf can only depend on the model and collection pieces?
It's definitely something I'll begin to look into a bit, possibly splitting up the Backbone components into a separate library specifically for Bookshelf, similar to lodash's custom build process. If you have any ideas for a good way to go about this, feel free to open a ticket.
Re: Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
#10This is a port of Eloquent from Laravel [0], which is brilliant. I haven't used this, but if it's a faithful port it'll be awesome. [0] https://twitter.com/laravelphp/status/333971780886728705
The underlying query builder - http://knexjs.org - is much more of a 1-to-1 port. Bookshelf shares a number of similar features with eloquent, such as the process of defining relations, and handling eager/nested eager loading, but it also draws a lot of inspiration (and code) from the Model & Collection patterns of Backbone.js. I owe a lot of thanks to Taylor for writing Eloquent, he has been really helpful with any…
Nice work!