News for hackers. Stuff that matters.
Re:Generating JSON Directly from Postgres by bob1029 on Thursday July 15, 2021 @07:45PM (#27851443)
> But as things get more complicated, where does the business logic live? Maybe in the database as stored procedures? It's less crazy than it sounds.

We do this today with SQLite, but we don't use stored procedures. Assuming you load all required facts into appropriate tables, there is no logical condition or projection of information that you cannot determine with SQL.

We also leverage user/application defined functions to further enhance our abilities throughout. It's pretty amazing how much damage you can do with SQLite when you bind things as basic as .NET's DateTime ToString() or TryParse() into it. There's also no reason you cannot bind application methods that have side effects if you want to start mutating the outside world with SQL.

There are no comments on this comment yet.