-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support data input using COPY and STDIN #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think it is useful. I'd be interested in discussing the API a bit more, and it's on my longer term mental roadmap of things to implement. Currently what I'd like to do is:
As far as the exact API for copyin/copyout I'll need to read the Postgres client protocol spec. There are some things you have to "do" to prepare for and handle copyin/copyout. I like where you're going with returning a stream object for the copyin/copyout operations. |
Thanks. It's nice to see the roadmap. |
An implementation of COPY and STDIN would be very helpful. |
related to issue #7 |
#232 closed! |
I am sitting here with a bunch of data to sift through, process, and insert into a postgres database.
It occurs to me that this could be done with a bunch of statements like this:
OR I could use something like this:
COPY my_table FROM STDIN;
and then stream my data in through stdin.
Is this easy to do? Does the pg socket act like stdin? Could we get commands like
var readableStream = client.copyFrom(table_name, options)
andvar writableStream = client.copyTo(table_name, options)
?Is this really not very useful?
The text was updated successfully, but these errors were encountered: