pgx mock driver for golang to test database interactions
OTHER License
[+]
bump jackc/pgx/v5
from 5.6.0 to 5.7.0 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/220
[+]
add test case for double unlock by @pashagolub in https://github.com/pashagolub/pgxmock/pull/217
[-]
fix panic for double unlock for unexpected method calls by @StevenACoffman in https://github.com/pashagolub/pgxmock/pull/216
[-]
fix govet
linter warning by @pashagolub in https://github.com/pashagolub/pgxmock/pull/219
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v4.2.0...v4.3.0
Published by pashagolub 3 months ago
QueryRow().Scan()
, fixes #209 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/211
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v4.1.0...v4.2.0
Published by pashagolub 5 months ago
[-]
fix unordered batch expectations, fixes #207 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/208
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v4.0.0...v4.1.0
Published by pashagolub 5 months ago
[!]
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 #202Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.4.0...v4.0.0
Published by pashagolub 6 months ago
jackc/pgx/v5
from 5.5.1 to 5.5.5 by @dependabot in #184 #186 #193 #194golangci/golangci-lint-action
from 3 to 4 by @dependabot in #187stretchr/testify
from 1.8.4 to 1.9.0 by @dependabot in #192connRow
struct to handle QueryRow()
calls, fixes #195 by @pashagolub in #196Deallocate()
to return expected.deallocateErr
by @pashagolub in #185.Kind()
and closing the rows by @svennis94 in #197Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.3.0...v3.4.0
Published by pashagolub 10 months ago
[+]
bump actions/setup-go
from 4 to 5 by @dependabot in https://github.com/pashagolub/pgxmock/pull/176
[+]
bump actions/stale
from 8 to 9 by @dependabot in https://github.com/pashagolub/pgxmock/pull/177
[+]
bump github/codeql-action
from 2 to 3 by @dependabot in https://github.com/pashagolub/pgxmock/pull/180
[+]
bump jackc/pgx/v5
to 5.5.1 by @dependabot in https://github.com/pashagolub/pgxmock/pull/170 https://github.com/pashagolub/pgxmock/pull/178
[*]
add documentation for CallModifier
interface by @pashagolub in https://github.com/pashagolub/pgxmock/pull/183
[*]
make Expect*
methods visible in the docs, closes #181 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/182
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.2.0...v3.3.0
Published by pashagolub 12 months ago
[-]
make sure WithRewrittenSQL()
call is optional, fixes #167 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/169
[+]
add Kind()
method to convert *Rows
to pgx.Rows
interface by @labi-le in https://github.com/pashagolub/pgxmock/pull/168
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.1.0...v3.2.0
Published by pashagolub about 1 year ago
[!]
add pgx.QueryRewriter
support by @dropwhile and @pashagolub in https://github.com/pashagolub/pgxmock/pull/166
[+]
bump stretchr/testify
from 1.8.1 to 1.8.4 by @dependabot in https://github.com/pashagolub/pgxmock/pull/161
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v3.0.0...v3.1.0
Published by pashagolub about 1 year ago
[!]
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 11f2121Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.12.0...v3.0.0
Published by pashagolub about 1 year ago
[!]
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 11f2121Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.12.0...v3.0.0-beta3
Published by pashagolub about 1 year ago
[!]
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()
bccbcdbFull Changelog: https://github.com/pashagolub/pgxmock/compare/v2.12.0...v3.0.0-beta2
Published by pashagolub about 1 year ago
[-]
move Deallocate()
to PgxConnIface
, fixes #143 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/156
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.11.0...v2.12.0
Published by pashagolub about 1 year ago
[+]
bump jackc/pgx/v5
from 5.4.2 to 5.4.3 by @dependabot in https://github.com/pashagolub/pgxmock/pull/145
[+]
add Sweep AI support by @sweep-ai in https://github.com/pashagolub/pgxmock/pull/147
[+]
implement ExpectReset()
function and tests, closes #146 by @sweep-ai in https://github.com/pashagolub/pgxmock/pull/148
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.10.0...v2.11.0
Published by pashagolub over 1 year ago
jackc/pgx/v5
from 5.4.1 to 5.4.2 by @dependabot in https://github.com/pashagolub/pgxmock/pull/144
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.9.0...v2.10.0
Published by pashagolub over 1 year ago
[+]
add pgxmockPool.AsCon()
method to emulate Acquire()
in tests 5020f241775eb7f7643d0aa703d0372c5027f89e
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.8.0...v2.9.0
Published by pashagolub over 1 year ago
[+]
add missing methods to mock pgxpool.Pool
by @TulioGuaraldoB in https://github.com/pashagolub/pgxmock/pull/140
[+]
bump jackc/pgx/v5
from 5.3.1 to 5.4.1 by @dependabot in #141 #142[*]
improve RawValues()
implementation by @sejin-P in https://github.com/pashagolub/pgxmock/pull/138
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.7.0...v2.8.0
Published by pashagolub over 1 year ago
PgxPoolIface.Stat()
, closes #135 by @dragonfriend0013 in https://github.com/pashagolub/pgxmock/pull/136
RawValues
is called, fixes #128 by @Eitol in https://github.com/pashagolub/pgxmock/pull/137
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.6.0...v2.7.0
Published by pashagolub over 1 year ago
[!]
update ExpectCopyFrom()
definition to match CopyFrom()
, closes #127 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/134
[+]
bump actions/setup-go
from 3 to 4 by @dependabot in https://github.com/pashagolub/pgxmock/pull/129
[+]
bump actions/stale
from 7 to 8 by @dependabot in https://github.com/pashagolub/pgxmock/pull/130
[*]
docs: update comment to include option to match out of order by @SDBlackwood in https://github.com/pashagolub/pgxmock/pull/131
[-]
fix context.Context
use in methods by @pashagolub in https://github.com/pashagolub/pgxmock/pull/132
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.5.0...v2.6.0
Published by pashagolub over 1 year ago
[+]
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 #121Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.4.0...v2.5.0
Published by pashagolub almost 2 years ago
[+]
bump jackc/pgx/v5
to 5.1.1 by @dependabot in https://github.com/pashagolub/pgxmock/pull/118
[*]
remove pgxIface.BeginTxFunc()
as deprecated, closes #111 by @pashagolub in https://github.com/pashagolub/pgxmock/pull/117
Full Changelog: https://github.com/pashagolub/pgxmock/compare/v2.3.0...v2.4.0