3 ms·
I like SQLite (qualifying not for you, simonw, but for others). But I hate that I can't be lazy by using arrays in SQLite... because they don't exist. group_con
by eatonphil 4y ago
I like SQLite (qualifying not for you, simonw, but for others). But I hate that I can't be lazy by using arrays in SQLite... because they don't exist. group_concat is a poor approximation.
Also, I genuinely dislike how loose SQLite is with allowed syntax. Probably it's preference. But even interactively I prefer to know immediately that I messed up a query. SQLite is so forgiving I've often wasted time trying to understand why my results are nonsense (because I typoed in the query and SQLite didn't fail the query).
But I also strongly dislike Python for that reason and I know where you stand there. Maybe SQLite/PostgreSQL is similar to the dynamic/static language preference divide.
- simonw 4y agoI'm increasingly finding myself using SQLite's JSON features for array stuff - they're surprisingly convenient once you get into the habit of using them. A couple of recent examples: - https://til.simonwillison.net/sqlite/sort-by-number-of-json-intersections https://til.simonwillison.net/sqlite/sort-by-number-of-json-... - https://til.simonwillison.net/sqlite/function-list#user-content-a-better-solution-using-json_group_array-and-json_each https://til.simonwillison.net/sqlite/function-list#user-cont...