pgx mock driver for golang to test database interactions
OTHER License
Published by pashagolub almost 2 years ago
jackc/pgx/v5
from 5.0.4 to 5.1.0 by @dependabot in https://github.com/pashagolub/pgxmock/pull/116
WithArgs
mandatory, fixes #114 by @eklmv in https://github.com/pashagolub/pgxmock/pull/115
☝️ Breaking change! Now the developer must use .WithArgs()
to specify which parameters are expected. If developers don't care they may use pgxmock.AnyArg()
value.
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.2.0...v2.3.0
Published by pashagolub almost 2 years ago
[+]
bump jackc/pgx/v5
to 5.0.4 by @dependabot in https://github.com/pashagolub/pgxmock/pull/110
[*]
update README.md with v2
links by @mynyml in https://github.com/pashagolub/pgxmock/pull/108
[-]
fix Scan()
panic if nullable sql
types used, fixes #102 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/113
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.1.0...v2.2.0
Published by pashagolub about 2 years ago
[+]
add multi row support, closes #54 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/104
[+]
bump jackc/pgx/v5
to 5.0.1 by @dependabot in https://github.com/pashagolub/pgxmock/pull/105
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.0.0...v2.1.0
Published by pashagolub about 2 years ago
[!]
add support for jackc/pgx/v5
, closes #97 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/100
[+]
improve rows.go
test coverage, closes #92 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/94
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v1.8.0...v2.0.0
Published by pashagolub about 2 years ago
[+]
bump jackc/pgx/v4
to 4.17.0 by @dependabot in https://github.com/pashagolub/pgxmock/pull/89
[+]
add PgConn()
method by @jsnb-devoted in https://github.com/pashagolub/pgxmock/pull/87
[*]
remove the unstable notice, consider the library ready for production from nowFull Changelog: https://github.com/pashagolub/pgxmock/compare/v1.7.0...v1.8.0
Published by pashagolub about 2 years ago
[+]
create codeql
GHA workflow by @pashagolub in https://github.com/pashagolub/pgxmock/pull/80
[+]
add ConnInfo
method to pgx
interface by @jsnb-devoted in https://github.com/pashagolub/pgxmock/pull/86
[-]
fix documentation for testing custom types by @NickBelhomme in https://github.com/pashagolub/pgxmock/pull/78
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v1.6.0...v1.7.0
Published by pashagolub over 2 years ago
[+]
allow to Scan()
destination of *interface{}
type, fixes #73 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/74
[+]
bump jackc/pgx/v4
to 4.16.1 by @dependabot in https://github.com/pashagolub/pgxmock/pull/71
[-]
fix build and test GHA workflow, fixes #75 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/76
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v1.5.0...v1.6.0
Published by pashagolub over 2 years ago
[+]
implement rowSets.Values()
functionality, closes #58 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/59
[+]
improve test coverage by @pashagolub in https://github.com/pashagolub/pgxmock/pull/63
[-]
fix deadlock in ExpectationsWereMet()
if BeginTx()
called with unexpected options, fixes #60 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/61
[+]
bump golangci/golangci-lint-action
to v3, closes #68 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/69
[+]
bump jackc/pgx
to 4.16.0
by @dependabot in https://github.com/pashagolub/pgxmock/pull/66
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v1.4.4...v1.5.0
Published by pashagolub over 2 years ago
BeginTx
method into pgxIface
, closes #47 by @avshvetz in https://github.com/pashagolub/pgxmock/pull/48
jackc/pgx/v4
to 4.15.0 by @dependabot in https://github.com/pashagolub/pgxmock/pull/56
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v1.4.3...v1.4.4
Published by pashagolub almost 3 years ago
[+]
bump jackc/pgx/v4
to 4.14.1
[+]
bump jackc/pgtype
to 1.9.1
Published by pashagolub almost 3 years ago
[+] Bump jackc/pgx/v4
to 4.14.0 by @dependabot in https://github.com/pashagolub/pgxmock/pull/46
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v1.4.1...v1.4.2
Published by pashagolub almost 3 years ago
[+]
Bump jackc/pgconn
to v1.10.1 abb2f5a
[+]
Bump jackc/pgproto3/v2
to v2.2.0 abb2f5a
Published by pashagolub about 3 years ago
[!]
upgrade to Go 1.17 f75e640 by @Juneezee
[+]
cover pgxmock.ExpectPing()
by test 5080756
[+]
cover MonitorPingsOption()
by test f80b961
[*]
exclude examples
folder from tests and coverage report f89959d
[-]
fix branch name in the build
workflow aa0ffda
Published by pashagolub about 3 years ago
[-]
fix permanent rollback in BeginTxFunc by @2tvenom 7fb208f
[*]
update readme with the latest example sources, fixes #37 578eeda
Published by pashagolub about 3 years ago
[+]
add support for Scanner
interface by @peano88 2d0c603
[+]
add unit tests for Scan
with Scanner
interface by @peano88 b57e5ac
[*]
bump jackc/pgx/v4
to 4.13.0 b1c8a63
[*]
move changelog to the Releases page a1f9104
Published by pashagolub over 3 years ago
Add support for more pgxmock
functions
Changelog:
[+]
add ExpectBeginTx()
and BeginTxFunc()
method 0d96e83
[+]
add missing methods to pgxMockIface
and pgxIface
5946109
[+]
add QueryFunc()
support 8a9c8c2
[+]
add QueryFunc()
to pgxIface
b6c7002
[+]
bump github.com/jackc/pgproto3/v2 from 2.0.7 to 2.1.0 351d3e3
[*]
replace sqlmock
mentions with pgxmock
in sources 044c17d
Published by pashagolub over 3 years ago
Add support for pgx.CopyFrom
, closes #22
[+]
added support for pgx.CopyFrom()
Published by pashagolub over 3 years ago
Mark pgxmock
is stable and wait for new issues. :-)
Derived from sqlmock:
go.mod
removed the references and suggestions using gopkg.in
.db.Prepare()
was not validating expected prepare SQL