Get the latest tech news

Instant SQL for results as you type in DuckDB UI


Type, see, tweak, repeat! Instant SQL is now in Preview in MotherDuck and the DuckDB Local UI. Bend reality with SQL superpowers to get real-time query results as you type. | Reading time: 8 min read

DuckDB’s local-first design, along with principled performance optimizations and friendly SQL, made it possible to use your computer to parse queries, cache dependencies, and rewrite & run them. A few years ago, DuckDB hid a piece of magic in the JSON extension: a way to get an abstract syntax tree (or AST) from any SELECT statement via a SQL scalar function. So we built some simple tools that pair DuckDB’s parser with its tokenizer to enrich the parse tree, which we then use to pinpoint the start and end of all nodes, clauses, and select statements.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of results

results

Photo of SQL

SQL

Photo of DuckDB UI

DuckDB UI

Related news:

News photo

Everyone knows your location, Part 2: try it yourself and share the results

News photo

CEO Explains How He Faked Results in $300 Million Meltdown

News photo

What’s next for Google Cloud databases? AI inside SQL and more