Repository navigation
v0.2.0 — column arguments, npm, and a container image
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:latestATTACH '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/vgi0.25.3 and@query-farm/vgi-rpc0.19.3. The previous pins could no longer ATTACH at all against a current DuckDB VGI extension — a protocol mismatch onresolved_data_version. - Three bugs found on the way up were fixed upstream rather than worked around: Cloudflare double-encoding compressed responses, a bare
process.envread that made every table-in-out call fail on workerd, anddefineRowTransformFunctionmissing from the workerd facade. vgi-lintback 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
/healthanswers.
Verified on all four paths — stdio, HTTP, the deployed Cloudflare worker, and the published container image — at 123 assertions each.