So, is there any way to archieve something like the Db.Translate
func in the below example?
func printStatement(values []int64) {
actualQueryAsString := Db.Translate(`
SELECT *
FROM table
WHERE values = ANY($1)`, pq.Array(values))
fmt.Println("The statement that will be used is :", actualQueryAsString)
}
I tried to find how to do it but ran out of ideas... thanks in advance.