![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Produce schema documentation for your Postgres database in markdown format
Produce markdown schema documentation for your Postgres database.
npm i pg-doc
or globally:
npm i -g pg-doc
Usage: pg-doc [options]
Options:
--version Show version number [boolean]
--connection, --db Database Connection URL [string] [required]
--out, -o The file name of the output [string]
--title, -t The title of the document [string]
--excluded, --ex Tables to be excluded [array]
--toc Add a table of contents (TOC) section
[boolean] [default: true]
--split-by-initial, -s Split TOC by initial letter [boolean]
--split-limit, --sl Split TOC only if number of tables is greater that
this limit [number] [default: 20]
--no-descriptions, --nd Don't output table/column descriptions [boolean]
--help Show help [boolean]
There are 2 alternative ways to pass configuration options appart from the command line.
You can put your options in a .pg-doc.json
file in your project:
{
"connection": <postgres connection url>,
"excluded": <string array>,
"noDescriptions": <boolean>,
"toc": <boolean>,
"splitByInitial": <boolean>,
"splitLimit": <number>,
"title": <string>,
"out": <filename>
}
Use the following variables to pass options to pg-doc
:
PGDOC_CONNECTION=<postgres connection url>
PGDOC_OUT=<filename>
PGDOC_TITLE=<string>
PGDOC_EXCLUDED=<comma separated strings>
PGDOC_SPLIT_LIMIT=<number>
PGDOC_SPLIT_BY_INITIAL=<boolean>
PGDOC_NO_DESCRIPTIONSL=<boolean>
PGDOC_TOC=<boolean>
Configuration options are applied in the following order (from lowest to highest precedence):
.pg-doc.json --> env variables --> command line options
By default pg-doc
will show the description you have defined as table/column comments in your database, ie:
sql> COMMENT ON TABLE foo IS 'This is my foo table.';
will be rendered as
...
# Table Name Description 1 foo This is my foo table. Details
table1
This is my foo table.
...
If you have no comments defined you can either disable this by setting the noDescriptions
option to true
or provide your descriptions by adding a descriptions
section in your .pg-doc.json
file like so:
{
"descriptions": {
"tableName": "this is my tableName description",
"tableName.columnName": "this is my columnName description"
}
}
FAQs
Produce schema documentation for your Postgres database in markdown format
The npm package pg-doc receives a total of 51 weekly downloads. As such, pg-doc popularity was classified as not popular.
We found that pg-doc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.