
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@juit/pgproxy-client-psql
Advanced tools
This package provides a `PGClient` implementation _directly connecting_ to PostgreSQL servers, and not requiring a PGProxy Server to run.
This package provides a PGClient
implementation directly connecting to
PostgreSQL servers, and not requiring a PGProxy Server to run.
This is useful (mostly? only?) when running tests with a PostgreSQL instance running on a developer's machine, or in CI environments.
Simply register the client by importing it, and ensure that the PGURL
environment variable is set to the psql
url of the PostgreSQL server (or
specify the URL in the constructor):
import '@juit/pgproxy-client-psql'
import { PGClient } from '@juit/pgproxy-client'
const client = new PGClient('psql://username:password@locahost:5432/my-database')
The PSQL client can be used directly by simply importing the PSQLClient
class:
import { PSQLClient } from '@juit/pgproxy-client-psql'
const client = new PSQLClient('psql://username:password@locahost:5432/my-database')
The PSQLClient
implementation does not require a connection URL, and all
connection parameters can be specified via libpq
environment variables.
The special (empty) URL psql:///
can be used with PGClient
in order to
trigger this behaviour or PSQLClient
instances can be constructed without
an URL parameter.
For a description of the environment variables supported by libpq
simply look
at the official documentation.
FAQs
This package provides a `PGClient` implementation _directly connecting_ to PostgreSQL servers, and not requiring a PGProxy Server to run.
The npm package @juit/pgproxy-client-psql receives a total of 44 weekly downloads. As such, @juit/pgproxy-client-psql popularity was classified as not popular.
We found that @juit/pgproxy-client-psql demonstrated a healthy version release cadence and project activity because the last version was released less than 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.