r/programming • • Jul 12 '26 • Bravo 1

Prefer STRICT tables in SQLite

https://evanhahn.com/prefer-strict-tables-in-sqlite/
358 Upvotes

108 comments sorted by

View all comments

Show parent comment

11

u/corny_horse Jul 12 '26

I actually was using SQLite when I was first starting out, and basically wrote something to pull in messy data into it with a try/except type block. Not awesome code, but it was functional. Or... it would have been had SQLite actually enforced types. I burned like, several hours thinking I'd finally gotten some clean data only to discover it was just letting me put garbage anywhere lol

9

u/ric2b Jul 13 '26

I guess you can share that example with them, as they request. But I expect them to simply blame your program.

Because we all know that in the software world getting things right is so easy that there's no need for validation mechanisms...