Closed dropwhile closed 1 year ago
Hello,
Sounds cool! Do you want to try to work on pull request? It'd be great to have you as an author of the idea and the implementation.
@pashagolub I opened a PR. 👍
@pashagolub thanks for all your help (and for finishing things up)! <3
My pleasure. Thank you for the new feature!
Is your feature request related to a problem? Please describe.
I have started using pgx.NamedArgs (pgx/v5) with some of my queries, and this presents a bit of a challenge with the current WithArgs matcher.
I am currently using a workaround like this:
And using this matcher thusly:
My workaround seems to be working ok for now, but I'd like to see if there is a better way to do this with pgxmock. And if not currently, maybe there is a possibility to add something like a
WithNamedArgs
method that would accept either a pgx.NamedArgs (as my example above does), or just a map[string]interface{} where values could be pgxmock.Arguments or deepequal compared values, but usable to check against pgx.NamedArgs.