python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
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),
...
user17976520
Votes: 0
Answers: 0
How to use time.Time in a postgres query?
I am using pq library in golang for postgres queries. I want to pass timestamp in the query string.
Ex. query = 'SELECT \* FROM table WHERE ts \<= NOW() - interval '5 seconds''
Instead of NOW() ......
nrao
Votes: 0
Answers: 0
How to do WHERE IN/ANY on multiple columns in Golang with pq library?
I have a list of item type and item numbers like follows:
items := models.ItemKeys{
ItemKeys: []models.ItemKey{
{
ItemType: "type1",
Ite...

Yusril Maulidan Raji
Votes: 0
Answers: 1