S
S
sergeylanz2015-12-01 23:16:40
PostgreSQL
sergeylanz, 2015-12-01 23:16:40

How to write and read from postgresql large object via stream on GO?

There was a task to store files in postgresql. Files for 200+ mega so you need to do it stream. postgresql largeobject supports stream but I can't find how to do it on GO. Which driver supports it. So far just found this https://github.com/jackc/pgx it supports Large Object but didn't find how to make stream.
Who has a working example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill, 2015-12-01
@kshvakov

Judging by the code, it is there https://golang.org/pkg/io/#ReadWriter , so you can https://golang.org/pkg/io/#Copy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question