pg.connect is undocumented
See original GitHub issueThe pg.connect function is not mentioned in the README or the wiki. But the function exists and it’s present in a lot of example code on the Internet.
Is it deprecated? Is using new pg.Pool() preferred to pg.connect? Or are they both fully supported? Either way, it would be nice to have this function mentioned somewhere, so that people know which way to write their own code.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
PostgreSQL pg_constraint's confupdtype / confdeltype ...
PostgreSQL pg_constraint's confupdtype / confdeltype columns using undocumented letter (space). What does it mean?
Read more >pg - UNPKG
10, - Deprecate undocumented but possibly used `query.promise()` method. ... Eventually `pg.connect` itself will be deprecated in favor of instantiating ...
Read more >DBD::Pg - PostgreSQL database driver for the DBI module
To connect to a Postgres database with a minimum of parameters, ... NOTE: The undocumented (and invalid) support for the SQL_BINARY data type...
Read more >PG County must step up and protect undocumented migrants
For many undocumented immigrants, coming home to an eviction notice is a very possible reality. Landlords in Prince George's County are aware ...
Read more >Documentation: 14: E.7. Release 14 - PostgreSQL
Also, the legacy (and undocumented) Boolean-like values which were ... control over whether loss of connection is checked for intra-query.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you for the clarification.
I think it would be better to document it. A simple mention like “
pg.connectis an old thing, don’t use it” would be enough to avoid confusion by newcomers.👍 definitely good to close