UNPKG

squid

Version:

Provides SQL tagged template strings and a schema definition function.

15 lines (14 loc) 451 B
import * as pg from "pg"; export * from "./schema"; export * from "./sql"; declare module "pg" { interface TypedQueryResult<RowType = any> extends pg.QueryResult { rows: RowType[]; } interface ClientBase { query<RowType = any>(queryConfig: pg.QueryConfig): Promise<TypedQueryResult<RowType>>; } interface Pool { query<RowType = any>(queryConfig: pg.QueryConfig): Promise<TypedQueryResult<RowType>>; } }