pashagolub / pgxmock

pgx mock driver for golang to test database interactions
Other
393 stars 49 forks source link

Implement CopyFrom using pgxmock #22

Closed machytkafitanalytics closed 3 years ago

machytkafitanalytics commented 3 years ago

This is more a question. I could not find any working example of how to test CopyFrom command using pgxmock. Is it possible? If so is there some example of how to do it?

pashagolub commented 3 years ago

Hello. Not right now, it's still in TODO list.

As you can see there are already templates for pgx specific methods: https://github.com/pashagolub/pgxmock/blob/10a6553866bb9c687750953da69fa38f369bea34/pgxmock.go#L237

PR are always welcome

pashagolub commented 3 years ago

Would you please try #23 if that suits your needs?

Thanks in advance