# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pg-copy-streams/index.d.ts)
````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
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/pg](https://npmjs.com/package/@types/pg)

# Credits
These definitions were written by [Brian Crowell](https://github.com/fluggo).
