I am using postgresql go client: github.com/jackc/pgx I would like to execute SQL query looking a bit like this one:
ids := []int{2,3,4}
rows, err = pool.Query("SELECT id, title FROM document WHERE id IN ($1)", ids)
The result is a following error: cannot convert [2 3 4] to Int8
Can I achieve such effect without concatenating string like id=$1 OR id=$2 OR....
?