TypeScript scripts as DuckDB Table Functions - tobilg.com
tobilg.com·13h
🗄️libSQL
Preview
Report Post

What if you could query any REST API, GraphQL endpoint, or web page directly from DuckDB using SQL? No ETL pipelines, no intermediate files, no complex setup - just write a TypeScript script and use it as a table function.

In this post, I’ll show you how to combine DuckDB’s shellfs and arrow extensions with Bun’s zero-dependency scripts to create a powerful, flexible data pipeline that lets you query the world with SQL.

This post was inspired by Python Scripts as DuckDB Table Functions and Self-Contained TypeScript Programs Using Bun.

The “Magic”

The setup is surprisingly simple. DuckDB’s shellfs extension can read data from shell command output, and the …

Similar Posts

Loading similar posts...