use new import path for v4 series
This commit is contained in:
parent
8b29dea77d
commit
0281f43053
|
@ -2,6 +2,6 @@ language: go
|
|||
go: 1.14
|
||||
before_install:
|
||||
- go get github.com/frankbraun/gocheck
|
||||
- go get -t github.com/mutecomm/go-sqlcipher
|
||||
- go get -t github.com/mutecomm/go-sqlcipher/v4
|
||||
script:
|
||||
- gocheck -g -c -e _example -e sqlite3_test
|
||||
|
|
|
@ -23,6 +23,10 @@ to upgrade existing database files.
|
|||
|
||||
See [migrating databases](https://www.zetetic.net/sqlcipher/sqlcipher-api/#Migrating_Databases) for details.
|
||||
|
||||
To upgrade your Go code to the 4.x series, change the import path to
|
||||
|
||||
"github.com/mutecomm/go-sqlcipher/v4"
|
||||
|
||||
### Installation
|
||||
|
||||
This package can be installed with the go get command:
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
_ "github.com/mutecomm/go-sqlcipher"
|
||||
_ "github.com/mutecomm/go-sqlcipher/v4"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/mutecomm/go-sqlcipher
|
||||
module github.com/mutecomm/go-sqlcipher/v4
|
||||
|
||||
go 1.12
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
sqlite3 "github.com/mutecomm/go-sqlcipher"
|
||||
sqlite3 "github.com/mutecomm/go-sqlcipher/v4"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mutecomm/go-sqlcipher/sqlite3_test"
|
||||
"github.com/mutecomm/go-sqlcipher/v4/sqlite3_test"
|
||||
)
|
||||
|
||||
func TempFilename(t *testing.T) string {
|
||||
|
|
Loading…
Reference in New Issue