Skip to content

Commit fdabe1d

Browse files
authored
Merge pull request #8 from CovenantSQL/fix/example-module-path
Use the module path of this fork in the examples
2 parents a86d95e + 13be538 commit fdabe1d

16 files changed

Lines changed: 19 additions & 16 deletions

File tree

‎_example/custom_driver_name/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66
all : $(TARGET)
77

88
$(TARGET) : main.go
9-
go build -ldflags="-X 'github.com/mattn/go-sqlite3.driverName=my-sqlite3'"
9+
go build -ldflags="-X 'github.com/CovenantSQL/go-sqlite3-encrypt.driverName=my-sqlite3'"
1010

1111
clean :
1212
rm -f $(TARGET)

‎_example/custom_driver_name/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"database/sql"
55

6-
_ "github.com/mattn/go-sqlite3"
6+
_ "github.com/CovenantSQL/go-sqlite3-encrypt"
77
)
88

99
func main() {

‎_example/custom_func/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"math"
88
"math/rand"
99

10-
sqlite "github.com/mattn/go-sqlite3"
10+
sqlite "github.com/CovenantSQL/go-sqlite3-encrypt"
1111
)
1212

1313
// Computes x^y

‎_example/fuzz/fuzz_openexec.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"database/sql"
66
"io/ioutil"
77

8-
_ "github.com/mattn/go-sqlite3"
8+
_ "github.com/CovenantSQL/go-sqlite3-encrypt"
99
)
1010

1111
func FuzzOpenExec(data []byte) int {

‎_example/hook/hook.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"os"
77

8-
"github.com/mattn/go-sqlite3"
8+
"github.com/CovenantSQL/go-sqlite3-encrypt"
99
)
1010

1111
func main() {

‎_example/json/json.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import (
55
"database/sql/driver"
66
"encoding/json"
77
"fmt"
8-
_ "github.com/mattn/go-sqlite3"
98
"log"
109
"os"
10+
11+
_ "github.com/CovenantSQL/go-sqlite3-encrypt"
1112
)
1213

1314
type Tag struct {

‎_example/limit/limit.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"os"
88
"strings"
99

10-
"github.com/mattn/go-sqlite3"
10+
"github.com/CovenantSQL/go-sqlite3-encrypt"
1111
)
1212

1313
func createBulkInsertQuery(n int, start int) (query string, args []any) {

‎_example/mod_regexp/extension.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package main
33
import (
44
"database/sql"
55
"fmt"
6-
"github.com/mattn/go-sqlite3"
76
"log"
7+
8+
"github.com/CovenantSQL/go-sqlite3-encrypt"
89
)
910

1011
func main() {

‎_example/mod_vtable/extension.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"log"
77

8-
"github.com/mattn/go-sqlite3"
8+
"github.com/CovenantSQL/go-sqlite3-encrypt"
99
)
1010

1111
func main() {

‎_example/simple/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ COPY . /workspace/
2828
RUN \
2929
cd _example/simple && \
3030
go mod init github.com/mattn/sample && \
31-
go mod edit -replace=github.com/mattn/go-sqlite3=../.. && \
31+
go mod edit -replace=github.com/CovenantSQL/go-sqlite3-encrypt=../.. && \
3232
go mod tidy && \
3333
go install -ldflags='-s -w -extldflags "-static"' ./simple.go
3434

0 commit comments

Comments
 (0)