Expand description
PostgreSQL provider — database schema introspection via psql.
Extracts table/column definitions from information_schema to make
database structure available as context. Uses psql CLI to avoid
adding a native PG driver dependency.
Configuration via environment variables:
DATABASE_URL: Full connection string (e.g., “postgres://user:pass@host/db”)- Or individual:
PGHOST,PGPORT,PGDATABASE,PGUSER,PGPASSWORD
Structs§
Functions§
- run_
sql_ file - Run the SQL file at
sql_pathagainsturlwithpsql: no.psqlrc, no password prompt, stopping at the first error, unaligned tuples only. Each ofvariables(name=value) is passed as one-vargument and is referenced in the SQL as:'name', quoted bypsql. The connection travels only inPG*variables of the child; output is bounded and database diagnostics are withheld (run_psql).