Closed trentmurray closed 1 year ago
Hi. You are using the wrong package. sqlscan
is meant to work with the database/sql
package. If you want to use scany with pgxpool.Pool
, you need to use the pgxscan
package instead.
Feel free to reopen the issue if you still have any questions.
I'm trying to figure out how to get scany to work with pgxPool where I build my connection using NewWithConfig rather than just the "New" function.
it complains that
I've looked at everything in the Pool object, and nothing would conform to that requirement.. Any ideas?