Skip to content

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: "..." }) });

PostgresEngineConfig

Engine