Skip to content

How to use copyFromBinary with a stream source? #161

@av8ta

Description

@av8ta

Hi, thanks for this project, had heaps of fun playing with it today! I see in the docs there's an example of copyFromBinary writing from stdin using a tupleList array; is there a way to pipe a node stream instead of using an array? I'm looking for a performant way to ingest data from a stream :) I got it working using raw pg-copy-streams but I prefer your sql tagged template literal to protect against injection if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions