Skip to content

issues Search Results · repo:driftprogramming/pgxpoolmock language:Go

Filter by

9 results
 (95 ms)

9 results

indriftprogramming/pgxpoolmock (press backspace or delete to remove)

Description - Pretty much the same proposed here #10 - The github.com/golang/mock repository was archived by the owner on Jun 27, 2013. One has to go to go.uber.org/mock for a maintained fork. ...
  • jairogloz
  • Opened 
    on Nov 26, 2024
  • #14

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
  • anuragvaru
  • Opened 
    on Oct 20, 2023
  • #12

As the title says I guess. I am happy to make a PR if you would like.
  • craigpastro
  • Opened 
    on Aug 30, 2023
  • #10

go get pgxpoolmock@v1.1.0 results in the following installation: go.mod go.sum order_dao_example_test.go pgx_pool.go pgx_pool_mock.go README.md rows.go testdata vendor This also means the example given ...
  • lenaxia
  • Opened 
    on Jun 27, 2023
  • #9

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 ...
  • janisz
  • Opened 
    on Mar 29, 2023
  • #8

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 way to somehow mock it?
  • PierekEast
  • 1
  • Opened 
    on Nov 28, 2022
  • #7

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: for i, col := range r.rows[r.pos-1] { where r.pos is 0.
  • jlpettersson
  • 1
  • Opened 
    on Aug 22, 2022
  • #6

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 i, col := range r.rows[r.pos-1] { I suspect ...
  • khanzf
  • Opened 
    on Sep 30, 2021
  • #2

Hi, I read the example and looked up other use cases on github, but I do not understand what is happening after this line: pgxRows := pgxpoolmock.NewRows(columns).AddRow(100, 100000.9).ToPgxRows() It ...
  • khanzf
  • 1
  • Opened 
    on Sep 29, 2021
  • #1
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub