Skip to content

Commit 438b87b

Browse files
author
auxten
committed
add tomcrypt to project
1 parent 16a990b commit 438b87b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+13104
-3105
lines changed

_example/simple/build.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
CGO_ENABLED=1 GOARCH=amd64 GOOS=linux CGO_CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2" GOLDFLAGS="-linkmode external -extldflags -static" CGO_LDFLAGS="/usr/lib/x86_64-linux-gnu/libcrypto.a" go build -v --tags "linux"
3+
CGO_ENABLED=1 GOARCH=amd64 GOOS=linux CGO_CFLAGS="-DSQLITE_OMIT_LOAD_EXTENSION" go build -ldflags "-linkmode external -extldflags -static" -a -v --tags "linux sqlite_omit_load_extension" && ldd simple

_example/simple/simple.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"database/sql"
55
"fmt"
6-
_ "github.com/mattn/go-sqlite3"
6+
_ "github.com/CovenantSQL/go-sqlite3"
77
"log"
88
"os"
99
)
@@ -18,6 +18,7 @@ func main() {
1818
defer db.Close()
1919

2020
sqlStmt := `
21+
PRAGMA key = auxten;
2122
create table foo (id integer not null primary key, name text);
2223
delete from foo;
2324
`

0 commit comments

Comments
 (0)