UNPKG

pgdelegate

Version:

A library provides easy use of PostgresSQL library

16 lines (14 loc) 382 B
declare module "pg-cursor" { import {Connection} from "pg"; interface CursorQueryConfig<T = any> { rowMode?: string; types?: (any)=>T; } class Cursor<ResultType = any> { constructor(text:string, values:any[], config?:CursorQueryConfig); submit(connection:Connection):void; close():Promise<void>; read(row_count:number):Promise<ResultType[]>; } export = Cursor; }