pgxpoolmock
pgxpoolmock copied to clipboard
pgx postgresql pool
Hi i want to test my function that contain PostgreSQL database connection pgxpool now for testing i want to pass pgxpoolmock connection to that function but it's now working
Hello, I find it very useful to be able to spawn some rows using this lib, but I see that the CommandTag.RowsAffected() functionality is not implemented. Is there an easy...
**Describe the bug** Rows does not correctly works for QueryRow. **To Reproduce** ``` pgxRows := pgxpoolmock.NewRows([]string{"server_version"}).AddRow("15.1").ToPgxRows() pgxRows.Next() // This line is necessary to prevent panic during Scan. db.EXPECT().QueryRow(gomock.Any(), "SHOW server_version;").Return(pgxRows)...
When I do a `QueryRow()` query, the `Scan()` panics with this error: index out of range [-1] This seem to be related to this line [72](https://github.com/driftprogramming/pgxpoolmock/blob/main/rows.go#L72): for i, col :=...
If the SELECT of a query does not contain any arguments, such as `SELECT FROM table WHERE ....` then the `Scan()` function crashes on what is currently line 69: `for...
- Also delete vendor folder - Solve #14
# Description - Pretty much the same proposed here #10 - The [github.com/golang/mock ](https://github.com/golang/mock)repository was archived by the owner on Jun 27, 2013. One has to go to [go.uber.org/mock](https://github.com/uber-go/mock) for...