News for hackers. Stuff that matters.
Re:Database mocks are just not worth it by chrisandchris on Monday December 30, 2024 @04:02PM (#42553479)
I don't know...

How if you rely e.g. on CASCADE and foreign keys, which are not on by default kn SQLite? I think then things start getting complicated and testing that layer gets difficult.

Re:Database mocks are just not worth it by btilly on Monday December 30, 2024 @06:22PM (#42554753)
Django allows for the common use cases for that to be abstracted out. So the SQLite version will do things manually, while PostgreSQL can use the database feature.

That's the reason to use an ORM. It abstracts away things like that.