I'm using SQLX and PQ to query an SQL database with PostGress. I'm using the function Select from SQLX with bindvars but PQ panics with
pq: got 1 parameters but the statement requires 0.
query = `
SELECT
count(*) AS count
FROM
ledger
WHERE
enterprise_id=($1)
`
var stat singleStat
err = db.Select(&stat, query, enterpriseID)