mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 05:27:30 +00:00
25 lines
647 B
TypeScript
25 lines
647 B
TypeScript
// Type definitions for pg-query-stream 1.0
|
|
// Project: https://github.com/brianc/node-pg-query-stream
|
|
// Definitions by: António Marques <https://github.com/asmarques>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
import stream = require("stream");
|
|
|
|
declare namespace QueryStream {
|
|
interface Options {
|
|
highWaterMark?: number;
|
|
batchSize?: number;
|
|
}
|
|
}
|
|
|
|
declare class QueryStream extends stream.Readable {
|
|
batchSize: number;
|
|
text: string;
|
|
values?: any[];
|
|
constructor(text: string, values?: any[], options?: QueryStream.Options);
|
|
}
|
|
|
|
export = QueryStream;
|