2

I'm using sqlx for the first time today.

I'm having really hard time understanding my SQL errors because I cannot copy & paste logged queries in my IDE because the parameters are not converted from placeholders.

It prints:

SELECT * from players where team_id = $1 AND id = $2

but I would like the below instead:

SELECT * from players where team_id = 'ABC' AND id = '123'

How to do this?

Yuri Astrakhan
  • 8,808
  • 6
  • 63
  • 97
Fred Hors
  • 3,258
  • 3
  • 25
  • 71

0 Answers0