Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ The purpose of sqlhooks is to provide a way to instrument your sql statements, m

# Install
```bash
go get github.com/gchaincl/sqlhooks
go get github.com/gchaincl/sqlhooks/v2
```
Requires Go >= 1.8.x

## Breaking changes
`V1` isn't backward compatible with previous versions, if you want to fetch old versions, you can get them from [gopkg.in](http://gopkg.in/)
`V2` isn't backward compatible with previous versions, if you want to fetch old versions, you can use go modules or get them from [gopkg.in](http://gopkg.in/)
```bash
go get gopkg.in/gchaincl/sqlhooks.v0
go get github.com/gchaincl/sqlhooks
go get gopkg.in/gchaincl/sqlhooks.v1
```

# Usage [![GoDoc](https://godoc.org/github.com/gchaincl/dotsql?status.svg)](https://godoc.org/github.com/gchaincl/sqlhooks)
Expand All @@ -28,7 +29,7 @@ import (
"fmt"
"time"

"github.com/gchaincl/sqlhooks"
"github.com/gchaincl/sqlhooks/v2"
"github.com/mattn/go-sqlite3"
)

Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// "fmt"
// "time"
//
// "github.com/gchaincl/sqlhooks"
// "github.com/gchaincl/sqlhooks/v2"
// "github.com/mattn/go-sqlite3"
// )
//
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/gchaincl/sqlhooks
module github.com/gchaincl/sqlhooks/v2

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion hooks/loghooks/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package loghooks
import (
"database/sql"

"github.com/gchaincl/sqlhooks"
"github.com/gchaincl/sqlhooks/v2"
sqlite3 "github.com/mattn/go-sqlite3"
)

Expand Down
4 changes: 2 additions & 2 deletions hooks/loghooks/examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"database/sql"
"log"

"github.com/gchaincl/sqlhooks"
"github.com/gchaincl/sqlhooks/hooks/loghooks"
"github.com/gchaincl/sqlhooks/v2"
"github.com/gchaincl/sqlhooks/v2/hooks/loghooks"
"github.com/mattn/go-sqlite3"
)

Expand Down
4 changes: 2 additions & 2 deletions hooks/othooks/examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"database/sql"
"log"

"github.com/gchaincl/sqlhooks"
"github.com/gchaincl/sqlhooks/hooks/othooks"
"github.com/gchaincl/sqlhooks/v2"
"github.com/gchaincl/sqlhooks/v2/hooks/othooks"
"github.com/mattn/go-sqlite3"
"github.com/opentracing/opentracing-go"
)
Expand Down
2 changes: 1 addition & 1 deletion hooks/othooks/othooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"database/sql"
"testing"

"github.com/gchaincl/sqlhooks"
"github.com/gchaincl/sqlhooks/v2"
sqlite3 "github.com/mattn/go-sqlite3"
opentracing "github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/mocktracer"
Expand Down