Run a query on the database.
The connection to the database
The query to run
The values to pass to the query
The result of the query
using conn = await pool.connect();const res = await query(conn, "select * from users where id = any($1)", [[1, 2, 3]]); Copy
using conn = await pool.connect();const res = await query(conn, "select * from users where id = any($1)", [[1, 2, 3]]);
Run a query on the database.