Should pgxmock.Rows implement pgx.Rows interface?
#119
Unanswered
VictorDotZ
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Hi, would you please provide a code sample that should work and doesn't right now? Thanks in advance |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
pgx.Rowsreturned frompgxmock.NewRowsis notpgx.Rowsand can not be passed into a function that handlespgx.Rows. But the query withWillReturnRowshas rows aspgxmock.rowSetsand all is fine.So, should
pgxmock.Rowsimplementpgx.Rowsinterface, or have you any idea how to test that kind of function without wrapping it by empty queries?Beta Was this translation helpful? Give feedback.
All reactions