1 year ago

#361545

test-img

user17976520

jackc pgx scan array

I want to scan in an array of strings using the pgx library without using pq ideally. Is there a way of doing this:

sourceKeys := make([]string, 0, 1)
err := rows.Scan(
    pq.Array(&sourceKeys),
)

without using the pq library?

postgresql

go

pq

pgx

0 Answers

Your Answer

Accepted video resources