3 ms·
> NEVER use sqlite for any production > RDBMSs are there to enforce constraints on data. If you did not ask SQLite to enforce type constraints on relations (w
by ElectricalUnion 4y ago
> NEVER use sqlite for any production
> RDBMSs are there to enforce constraints on data.
If you did not ask SQLite to enforce type constraints on relations (with STRICT), it will work in the relaxed, backwards-compatible expected behavior of previous versions of SQLite.
That being said, if you want actual validation, you probably need more complex CHECK expressions anyways with your business rules, and those work by default on any database.
https://www.sqlite.org/stricttables.html https://www.sqlite.org/stricttables.html
* unless you're a madman that runs things with "PRAGMA ignore_check_constraints = false;" enabled or equivalent; in that case, no DB can help you.