StackpressGitHub

API reference

stackpress/pgsql

stackpress/pgsql is the PostgreSQL-specific SQL subpath. It combines the shared SQL builders and helpers with PostgreSQL connection helpers exposed through the Stackpress public surface.

Import

import { Pgsql, PGConnection, connect } from 'stackpress/pgsql';

When To Use It

Use this path when you need PostgreSQL-specific connection or dialect behavior instead of only the shared stackpress/sql surface.

Export Inventory

ExportKindPurpose
PgsqlclassPostgreSQL dialect class
PGConnectionclassPostgreSQL connection wrapper
connectfunctionCreate a PostgreSQL-backed connection
shared SQL builders and helpersclasses/functionsSame builder surface as stackpress/sql

Detailed Exports

Pgsql

  • Kind: class
  • Use it when you need the PostgreSQL dialect class directly.
import { Pgsql } from 'stackpress/pgsql';

PGConnection

  • Kind: class
  • Use it when working with the PostgreSQL connector layer exposed through Stackpress.
import { PGConnection } from 'stackpress/pgsql';

connect

  • Kind: function
  • Use it to create a PostgreSQL-backed Stackpress SQL connection.
  • Returns a PostgreSQL-compatible connection object.
import { connect } from 'stackpress/pgsql';