Skip to content

v0.2.0 — column arguments, npm, and a container image

Choose a tag to compare

@rustyconover rustyconover released this 12 Aug 14:53
· 52 commits to main since this release

First published build. Three ways to run it, for three kinds of user.

Arguments can be columns

Every function is now a blended row-transform, so positional arguments are per-row input columns rather than bind-time literals. One registration serves all three call shapes — a literal call, a comma join, and LATERAL — which makes the place-name bridge a single query:

SELECT g.name, w.temperature_2m,
       m.main.weather_code_text(w.weather_code) AS conditions
FROM m.main.geocoding('Glen Allen', count := 1, country_code := 'US') AS g,
     LATERAL m.main.forecast_current(g.latitude, g.longitude) AS w;

Multi-location is a join instead of a UNION ALL per site. Literal calls are unchanged — the same function, called with a one-row input.

Install

# stdio worker, straight from npm — this is what DuckDB's ATTACH spawns
npx -y @query-farm/vgi-open-meteo

# or serve it over HTTP
docker run --rm -p 8000:8000 ghcr.io/query-farm/vgi-open-meteo:latest
ATTACH 'open_meteo' AS m (TYPE vgi, LOCATION 'npx -y @query-farm/vgi-open-meteo');

The npm bin is a single self-contained bundle: one download, no transitive installs, and it runs on plain node ≥ 20. The image is published for linux/amd64 and linux/arm64.

Also in this release

  • Upgraded to @query-farm/vgi 0.25.3 and @query-farm/vgi-rpc 0.19.3. The previous pins could no longer ATTACH at all against a current DuckDB VGI extension — a protocol mismatch on resolved_data_version.
  • Three bugs found on the way up were fixed upstream rather than worked around: Cloudflare double-encoding compressed responses, a bare process.env read that made every table-in-out call fail on workerd, and defineRowTransformFunction missing from the workerd facade.
  • vgi-lint back to 100/100, including example descriptions that were being dropped in transit to DuckDB.
  • CI: typecheck, npm bundle build, a smoke test that the bundle starts under node, and a multi-arch image build that asserts /health answers.

Verified on all four paths — stdio, HTTP, the deployed Cloudflare worker, and the published container image — at 123 assertions each.