TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New JSON query operators in SQLite 3.38.0

397 pointsby xtreak29about 3 years ago

10 comments

feguabout 3 years ago
I would love for sqlite to add import of JSON. They have great CSV import and export. If we could easily import, say, JSON arrays to a single column table, it would make JSON conversion to/from CSV easier. Especially since jq is slow and unmaintained.
评论 #30486819 未加载
评论 #30487987 未加载
评论 #30489643 未加载
评论 #30490285 未加载
评论 #30486802 未加载
slivelyabout 3 years ago
Well that’s exciting, congratulations to the SQLite team. The new type checking and json support makes SQLite a pretty amazing option for even more use cases.
simonwabout 3 years ago
I did some research recently to figure out exactly how the path syntax used by the various SQLite JSON functions and operators works: <a href="https:&#x2F;&#x2F;til.simonwillison.net&#x2F;sqlite&#x2F;json-extract-path" rel="nofollow">https:&#x2F;&#x2F;til.simonwillison.net&#x2F;sqlite&#x2F;json-extract-path</a>
评论 #30490155 未加载
josalhorabout 3 years ago
How efficient is this? Is JSON stored as a blob and parsed and filtered on each query?
评论 #30487246 未加载
评论 #30487245 未加载
jrochkind1about 3 years ago
These look like they match what postgres uses? Not sure if postgres invented it, or got it from somewhere else? Time for some specs&#x2F;standards for JSON operators in SQL?
评论 #30489488 未加载
评论 #30490547 未加载
NelsonMinarabout 3 years ago
This release of sqlite also has JSON support on by default, so JSON is much more likely in whatever sqlite build happens to be in the software you&#x27;re using.
throw_m239339about 3 years ago
Nice, I love using JSON query with SQLite, greatly simplifies object hydration.
评论 #30486685 未加载
gigatexalabout 3 years ago
Still one of the most useful things I’ve ever come across. Glad to see SQLite development continuing and being amazing.
dekhnabout 3 years ago
This is interesting; I didn&#x27;t real it carefully enough to know for sure, but one of the big challenges in moving from SQL to semistructed data like JSON is being able to do queries into deep fields (combined with repeating fields).
stonecharioteerabout 3 years ago
Brilliant article as always.
评论 #30487248 未加载