4 ms·
Use an ORM for CRUD, and use a SQL library (like Jooq or QueryDSL for Java) for custom querying
by elchief 10y ago
Use an ORM for CRUD, and use a SQL library (like Jooq or QueryDSL for Java) for custom querying
- tomschlick 10y agoExactly. Everyone wants a perfect solution for multiple use cases and that simply doesn't exist. Use what works for the task at hand. For example, Laravel's Eloquent database layer is awesome for the 95% use case. When stuff gets complicated I can drop down to the query builder or raw SQL if things get real hairy.
- craigvn 9y agoThat's pretty much what I do.