@types/pg-copy-streams
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

Installation

npm install --save @types/pg-copy-streams

Summary

This package contains type definitions for pg-copy-streams (https://github.com/brianc/node-pg-copy-streams).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pg-copy-streams.

index.d.ts

/// <reference types="node" />

import { Connection, Submittable } from "pg";
import { Readable, ReadableOptions, Writable, WritableOptions } from "stream";

export function from(txt: string, options?: WritableOptions): CopyStreamQuery;
export function to(txt: string, options?: ReadableOptions): CopyToStreamQuery;

export class CopyStreamQuery extends Writable implements Submittable {
    text: string;
    rowCount: number;
    submit(connection: Connection): void;
}

export class CopyToStreamQuery extends Readable implements Submittable {
    text: string;
    rowCount: number;
    submit(connection: Connection): void;
}

Additional Details

Credits

These definitions were written by Brian Crowell.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pg-copy-streams

Weekly Downloads

40,757

Version

1.2.5

License

MIT

Unpacked Size

4 kB

Total Files

5

Last publish

Collaborators

  • types