Skip to content

Instantly share code, notes, and snippets.

@mskyttner
Created January 16, 2023 06:48
Show Gist options
  • Save mskyttner/d9fb2210aa03d2a73e461087a35af5f7 to your computer and use it in GitHub Desktop.
Save mskyttner/d9fb2210aa03d2a73e461087a35af5f7 to your computer and use it in GitHub Desktop.
duckdb exposed by buenavista proxy and accessed with psql
# start a proxy server for a duckdb in-memory db, using the postgres wire format
docker run -it --rm -p 8080:5433 -e BUENAVISTA_HOST=0.0.0.0 -e BUENAVISTA_PORT=5433 ghcr.io/jwills/buenavista
# somewhere else (or here on the same host), start psql to issue a query against the proxy server
docker run --network host -it --rm postgres:latest psql -h $(hostname) -p 8080 -c "select 42"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment