Produce markdown schema documentation for your Postgres database. Version 0.2.2 is current. Release cadence is low (last update Jan 2023). It generates a markdown file with table listings, columns, types, and descriptions. Supports configuration via CLI, JSON file, or environment variables. Differentiator: simple, single-purpose tool vs. heavier solutions like SchemaSpy or DBDoc.
npm install pg-docNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs pg-doc globally and generates a markdown schema file for a Postgres database.
Ensure --db option is passed or connection key in config file.
Adjust --split-limit if you want splitting for smaller schemas.
Use PGDOC_NO_DESCRIPTIONS (without extra L) if corrected in future versions, or use CLI flag instead.
Use --no-descriptions to ignore database comments and rely on config file descriptions.
Check host, port, and ensure postgres is running. Use 'localhost' or 127.0.0.1.
Run 'npm install pg' in the same directory, or install pg-doc globally with -g.
Add --db postgres://user:password@host:port/database or use .pg-doc.json with 'connection' key.
Use PostgreSQL 9.3+ which supports information_schema.tables.