Skip to content

Commit

Permalink
[+] bump the new major version v3
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Sep 6, 2023
1 parent 2fce3e7 commit 410650b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ It's based on the well-known [sqlmock](https://github.com/DATA-DOG/go-sqlmock) l

## Install

go get github.com/pashagolub/pgxmock/v2
go get github.com/pashagolub/pgxmock/v3

## Documentation and Examples

Visit [godoc](http://pkg.go.dev/github.com/pashagolub/pgxmock/v2) for general examples and public api reference.
Visit [godoc](http://pkg.go.dev/github.com/pashagolub/pgxmock/v3) for general examples and public api reference.

See implementation examples:

Expand Down Expand Up @@ -92,7 +92,7 @@ import (
"fmt"
"testing"

"github.com/pashagolub/pgxmock/v2"
"github.com/pashagolub/pgxmock/v3"
)

// a successful case
Expand Down Expand Up @@ -175,7 +175,7 @@ provide a standard sql parsing matchers.
## Matching arguments like time.Time

There may be arguments which are of `struct` type and cannot be compared easily by value like `time.Time`. In this case
**pgxmock** provides an [Argument](https://pkg.go.dev/github.com/pashagolub/pgxmock/v2#Argument) interface which
**pgxmock** provides an [Argument](https://pkg.go.dev/github.com/pashagolub/pgxmock/v3#Argument) interface which
can be used in more sophisticated matching. Here is a simple example of time argument matching:

``` go
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/pashagolub/pgxmock/v2"
"github.com/pashagolub/pgxmock/v3"
)

// a successful case
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/blog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http/httptest"
"testing"

"github.com/pashagolub/pgxmock/v2"
"github.com/pashagolub/pgxmock/v3"
)

func (a *api) assertJSON(actual []byte, data interface{}, t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pashagolub/pgxmock/v2
module github.com/pashagolub/pgxmock/v3

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

pgxmock "github.com/pashagolub/pgxmock/v2"
pgxmock "github.com/pashagolub/pgxmock/v3"
)

func TestScanTime(t *testing.T) {
Expand Down

0 comments on commit 410650b

Please sign in to comment.