2 ms·
> every app is totally different in the kinds of queries it needs There is more to SQL than queries. Every app need insert, updat, and delete, and a basic sel
by gnaritas 14y ago
> every app is totally different in the kinds of queries it needs
There is more to SQL than queries. Every app need insert, updat, and delete, and a basic select 1 and select many matching a predicate. Those can all be automated; that's what ORM's do, they automate the repetitive simple stuff.
More complex queries that strain the ORM's abilities can be done in SQL in a view, and then mapped in by querying the view with the ORM. Or you can just drop into raw SQL when necessary. Every app is not different, they are largely all very similar.