pgxmock

pgx mock driver for golang to test database interactions

OTHER License

Stars
379
Committers
21
pgxmock - v4.3.0 Latest Release

Published by pashagolub about 2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v4.2.0...v4.3.0

pgxmock - v4.2.0

Published by pashagolub 3 months ago

What's Changed

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v4.1.0...v4.2.0

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v4.1.0

Published by pashagolub 5 months ago

What's Changed

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v4.0.0...v4.1.0

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v4.0.0

Published by pashagolub 5 months ago

What's Changed

  • [!] add support for pgx.Batch, closes #199 by @pashagolub in #200
  • [!] bump module version to v4 by @pashagolub in #205
  • [!] rewrite Prepare and Deallocate mocking implementation by @pashagolub in #203
  • [+] bump golangci/golangci-lint-action from 4 to 6 by @dependabot in #198 #202

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.4.0...v4.0.0

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v3.4.0

Published by pashagolub 6 months ago

What's Changed

  • [+] bump jackc/pgx/v5 from 5.5.1 to 5.5.5 by @dependabot in #184 #186 #193 #194
  • [+] bump golangci/golangci-lint-action from 3 to 4 by @dependabot in #187
  • [+] bump stretchr/testify from 1.8.4 to 1.9.0 by @dependabot in #192
  • [*] improve test failure handling by @Massinja in #191
  • [-] add connRow struct to handle QueryRow() calls, fixes #195 by @pashagolub in #196
  • [-] fix Deallocate() to return expected.deallocateErr by @pashagolub in #185
  • [-] fix for nil pointer exception when using .Kind() and closing the rows by @svennis94 in #197

New Contributors

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.3.0...v3.4.0

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v3.3.0

Published by pashagolub 10 months ago

What's Changed

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.2.0...v3.3.0

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v3.2.0

Published by pashagolub 12 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.1.0...v3.2.0

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v3.1.0

Published by pashagolub about 1 year ago

What's Changed

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.0.0...v3.1.0

New Contributors

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v3.0.0

Published by pashagolub about 1 year ago

What's Changed

  • [!] rewrite all methods using findExpectationFunc() 8b57685
  • [!] enhance expectations with WillDelayFor(), WillReturnError(), WillPanic() 2fce3e7
  • [!] enhance expectations with Times() and Maybe() 35fae23
  • [+] cover commonExpectation.Times() with test 7399cf0
  • [+] cover AsConn() with test f08c6e8
  • [+] bump the new major version v3 410650b
  • [+] bump Golang to v1.21 153d437
  • [+] add TestRowsConn() 3a9bad0
  • [+] add TestPanic b39e8d5
  • [+] add CallModifyer interface to expectations bccbcdb
  • [*] update README with a minimum Go version 7ccae6c
  • [*] rename pos to RowSetNo in rowSets e722875
  • [*] remove obsolete PingOptions bccbcdb
  • [*] remove obsolete NewErrorResult() 53a82cc
  • [*] improve panic() handling 579322c
  • [*] improve NewConn() and NewPool() description 4b48ef3
  • [+] improve TestTransactionExpectations() 4b56137
  • [+] improve TestPrepareExpectations() d45eb73
  • [+] improve TestPreparedStatementCloseExpectation() 29538bc
  • [+] improve TestMockCopyFrom() 8ad268a
  • [+] improve TestCallModifier() e52f5db
  • [*] improve Times() e6dc2ae
  • [+] improve ExampleExpectedExec() 4f9b94e
  • [-] use direct call to argsMatches() instead of attemptArgMatch() 5dd985c
  • [-] rewrite mock methods with generics in findExpectation() bccbcdb
  • [-] remove redundant return statements (gosimple S1023) ae69eeb
  • [-] fix linter warning "SA4006: this value of tx is never used" d18c4e5
  • [-] fix Times() handling c7e2cec
  • [-] fix TestNewRowsWithColumnDefinition() a782cb5
  • [-] fix TestCallModifier() f821855
  • [-] fix NewResult() to return space separated output 21f429b
  • [-] fix Myabe() modifier check cf04b04
  • [-] field unused ExpectedExec.delay field 11f2121

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.12.0...v3.0.0

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v3.0.0-beta3

Published by pashagolub about 1 year ago

What's Changed

  • [!] rewrite all methods using findExpectationFunc() 8b57685
  • [!] enhance expectations with WillDelayFor(), WillReturnError(), WillPanic() 2fce3e7
  • [+] implement Times() 35fae23
  • [+] cover commonExpectation.Times() with test 7399cf0
  • [+] cover AsConn() with test f08c6e8
  • [+] bump the new major version v3 410650b
  • [+] bump Golang to v1.21 153d437
  • [+] add TestRowsConn() 3a9bad0
  • [+] add TestPanic b39e8d5
  • [+] add CallModifyer interface to expectations bccbcdb
  • [*] update README with a minimum Go version 7ccae6c
  • [*] rename pos to RowSetNo in rowSets e722875
  • [*] remove obsolete PingOptions bccbcdb
  • [*] remove obsolete NewErrorResult() 53a82cc
  • [*] improve panic() handling 579322c
  • [*] improve NewConn() and NewPool() description 4b48ef3
  • [+] improve TestTransactionExpectations() 4b56137
  • [+] improve TestPrepareExpectations() d45eb73
  • [+] improve TestPreparedStatementCloseExpectation() 29538bc
  • [+] improve TestMockCopyFrom() 8ad268a
  • [+] improve TestCallModifier() e52f5db
  • [*] improve Times() e6dc2ae
  • [+] improve ExampleExpectedExec() 4f9b94e
  • [-] use direct call to argsMatches() instead of attemptArgMatch() 5dd985c
  • [-] rewrite mock methods with generics in findExpectation() bccbcdb
  • [-] remove redundant return statements (gosimple S1023) ae69eeb
  • [-] fix linter warning "SA4006: this value of tx is never used" d18c4e5
  • [-] fix Times() handling c7e2cec
  • [-] fix TestNewRowsWithColumnDefinition() a782cb5
  • [-] fix TestCallModifier() f821855
  • [-] fix NewResult() to return space separated output 21f429b
  • [-] fix Myabe() modifier check cf04b04
  • [-] field unused ExpectedExec.delay field 11f2121

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.12.0...v3.0.0-beta3

pgxmock - v3.0.0-beta2

Published by pashagolub about 1 year ago

What's Changed

  • [!] enhance expectations with WillDelayFor(), WillReturnError(), WillPanic() 2fce3e7
  • [+] add CallModifyer interface to expectations bccbcdb
  • [+] add TestPanic b39e8d5
  • [+] bump the new major version v3 410650b
  • [+] cover AsConn() with test f08c6e8
  • [+] cover commonExpectation.Times() with test 7399cf0
  • [+] implement Times() 35fae23
  • [*] improve NewConn() and NewPool() description 4b48ef3
  • [*] improve panic() handling 579322c
  • [*] remove obsolete NewErrorResult() 53a82cc
  • [*] remove obsolete PingOptions bccbcdb
  • [*] rename pos to RowSetNo in rowSets e722875
  • [-] field unused ExpectedExec.delay field 11f2121
  • [-] fix Myabe() modifier check cf04b04
  • [-] fix NewResult() to return space separated output 21f429b
  • [-] fix TestCallModifier() f821855
  • [-] fix Times() handling c7e2cec
  • [-] remove redundant return statements (gosimple S1023) ae69eeb
  • [-] rewrite mock methods with generics in findExpectation() bccbcdb

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.12.0...v3.0.0-beta2

pgxmock - v2.12.0

Published by pashagolub about 1 year ago

What's Changed

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.11.0...v2.12.0

What to do next?

  • Star the repository
  • Read the documentation
  • Examine some examples
  • Check out the blog
  • Follow me on {Company Blog, Facebook, LinkedIn, Bluesky, Mastodon, Twitter, PostgreSQL.Life, Stack Overflow}
  • Become a sponsor or donate to Ukraine πŸ’™πŸ’›
pgxmock - v2.11.0

Published by pashagolub about 1 year ago

What's Changed

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.10.0...v2.11.0

New Contributors

What to do next?

pgxmock - v2.10.0

Published by pashagolub over 1 year ago

What's Changed

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.9.0...v2.10.0

What to do next?

pgxmock - v2.9.0

Published by pashagolub over 1 year ago

What's Changed

[+] add pgxmockPool.AsCon() method to emulate Acquire() in tests 5020f241775eb7f7643d0aa703d0372c5027f89e

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.8.0...v2.9.0

What to do next?

pgxmock - v2.8.0

Published by pashagolub over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.7.0...v2.8.0

What to do next?

pgxmock - v2.7.0

Published by pashagolub over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.6.0...v2.7.0

pgxmock - v2.6.0

Published by pashagolub over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.5.0...v2.6.0

pgxmock - v2.5.0

Published by pashagolub over 1 year ago

What's Changed

  • [+] bump jackc/pgx/v5 to 5.3.1 by @dependabot in #125 #123 #122
  • [+] bump Go version to v1.20 by @pashagolub in #124
  • [-] fix ExpectedCopyFrom.String() output, resolves #120 by @pashagolub in #121

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.4.0...v2.5.0

pgxmock - v2.4.0

Published by pashagolub almost 2 years ago

What's Changed

Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.3.0...v2.4.0