Modern SQLite: Features You Didn't Know It Had

https://slicker.me/sqlite/features.htm

SQLite Features You Didn’t Know It Had: JSON, text search, CTE, STRICT, generated columns, WAL

SQLite Features You Didn’t Know It Had: JSON, text search, CTE, STRICT, generated columns, WAL

STRICT tables are something I appreciate very much, even though I cannot recall running into a problem that would have prevented by its presence in the before-time. But it's good to have all the same.

I don't think I've ever done much with SQLite's JSON functions, but I have on one or two occasions used a constraint to enforce a TEXT column contains valid JSON, which would have been very tedious to do otherwise.

> even though I cannot recall running into a problem that would have prevented by its presence in the before-time

I very, very much did. I was using a Python package that used a lot of NumPy internally, and sometimes its return values would be Python integers, and sometimes they'd be NumPy integers.

The Python integers would get written to SQLite as SQLite integers. The NumPy integers would get written to SQLite as SQLite binary blobs. Preventing you from doing simple things like even comparing for equal values.

Setting to STRICT caused an error whenever that happened, so I knew where in the code I needed to explicitly convert the values to Python integers when necessary.