A Vega transform that executes SQL queries against PostgreSQL databases, enabling data fetching and transformation within Vega visualizations. Current stable version is 1.0.11, with an infrequent release cadence. Key differentiators include tight integration with Vega's reactive data pipeline and support for parameterized queries.
npm install vega-transform-pgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the PostgreSQL transform in a Vega specification, including connection string and SQL query.
Use format: postgresql://user:password@host:port/database
Pass parameters via 'params' property and use $1, $2 placeholders.
Use import syntax or configure Node.js to handle ESM.
npm install vega-transform-pg
Use import vegaTransformPg from 'vega-transform-pg'