createPostgresEngine
createPostgresEngine(
config):Engine
Defined in: engine.ts:418
Create an Engine backed by pg (node-postgres).
import { Pool } from "pg";import { createPostgresEngine } from "@protoutil/repo/postgres";
const engine = createPostgresEngine({ client: new Pool({ connectionString: "..." }) });Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”Engine