Skip to content

Merge upstream #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 44 commits into from
Sep 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
3900dc3
return non-nil result when calling exec with empty query (#973)
avivklas Oct 19, 2021
628398e
chore: readme: Fix link, typos, copy editing (#974)
rasa Oct 22, 2021
1f85ebd
Allow building on OpenBSD (#976)
ledeuns Oct 25, 2021
4bc7a1f
Resolve windows CI issues (#941)
aeneasr Oct 25, 2021
b3df4a5
Fix typo in README.md (#939)
eltociear Oct 25, 2021
1cdbb70
run tests against Go 1.16 (#967)
hbagdi Oct 25, 2021
ab65367
Test on 1.17
mattn Oct 25, 2021
3bb6941
sqlite3.go: use PRAGMA to set busy_timeout (#910)
danp Oct 25, 2021
98d34f9
Use single-quotes around string literals. (#934)
mversiotech Oct 25, 2021
2b780b4
fix idxStr freeing issue (#898)
patrickdevivo Oct 25, 2021
5671e01
Update SQLite3_ The columntypescantype method of type (#909)
Auler Oct 25, 2021
2b131e0
change angle bracket import to quotes (#868)
yihanzhen Oct 25, 2021
a4fc68a
sqlite3_test.go: Fix go test -run=...: Use standard sub-tests (#881)
evanj Oct 25, 2021
9537be5
Adds CIFuzz for fuzzing as continuous integration (#919)
catenacyber Oct 25, 2021
bb15a32
Drop old versions (#979)
mattn Oct 26, 2021
48c6a56
Add go.mod and go.sum for upgrade (#978)
mattn Oct 26, 2021
4761e9c
Do no test with go-acc on Windows (#980)
mattn Oct 26, 2021
8543684
Fix GitHub workflows
mattn Oct 26, 2021
7fbc50c
Update amalgamation code
mattn Dec 26, 2021
98c5219
Temporary disable test for dropping vtable
mattn Dec 26, 2021
c0fa5ea
Add driverName to be possible change driver name
mattn Jan 9, 2022
671e666
Add example using driverName
mattn Jan 9, 2022
ae2a61f
Add sqlite3_file_control() support
benbjohnson Jan 28, 2022
2df077b
Update amalgamation
eatonphil Feb 23, 2022
c1379fc
Update sqlite3_opt_preupdate_hook.go
coreybutler Apr 23, 2022
bedc298
Update sqlite3_opt_preupdate_omit.go
coreybutler Apr 23, 2022
a68a2b7
Update supported Golang version to Go 1.18
Aoang Mar 22, 2022
adb060d
Update .github/workflows/go.yaml
mattn May 13, 2022
aa1e904
Update amalgamation code
mattn May 13, 2022
c122302
feat: simple example of Dockerfile w/ multi-stage build
KEINOS May 17, 2022
43dcd31
Update _example/simple/Dockerfile
mattn May 18, 2022
b819467
Add error checking in simple example for tx.Commit
lnksz May 5, 2021
3ccccfb
Support returning any from callbacks (#1046)
eatonphil May 30, 2022
fd616a2
Update supported Go version to Go 1.19
Aoang Aug 14, 2022
595e132
Retract +incompatible releases
Jan 14, 2022
d8e192b
Update amalgamation code
mattn Aug 16, 2022
a2e94c9
Add build tag to enable OSTRACE() logging
benbjohnson Jul 23, 2022
f1eef49
TestQueryer: actually check Rows returned
ohwgiles Jun 30, 2022
c8a1143
Update README to fix reference URL
shibukawa Sep 1, 2022
d5355d8
Fix TestQueryer test
joshbuddy Aug 29, 2022
f92b6bb
Fix TestQueryer test to use exec for multistatement insertion
joshbuddy Aug 29, 2022
4ef63c9
Rollback on constraint failure (#1071)
joshbuddy Sep 2, 2022
da62659
Fix "ennviroment" (#1077)
RewardedIvan Sep 2, 2022
7476442
こんにちわ is wrong Japanse. The correct word is こんにちは
KiYugadgeter Sep 4, 2022
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
29 changes: 29 additions & 0 deletions .github/workflows/cifuzz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CIFuzz
on: [pull_request]
jobs:
Fuzzing:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sanitizer: [address]
steps:
- name: Build Fuzzers (${{ matrix.sanitizer }})
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'go-sqlite3'
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Run Fuzzers (${{ matrix.sanitizer }})
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'go-sqlite3'
fuzz-seconds: 600
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Upload Crash
uses: actions/upload-artifact@v1
if: failure()
with:
name: ${{ matrix.sanitizer }}-artifacts
path: ./out/artifacts
22 changes: 22 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: dockerfile

on:
workflow_dispatch:
push:
tags:
- 'v*'
pull_request:
branches: [ master ]

jobs:
dockerfile:
name: Run Dockerfiles in examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run example - simple
run: |
cd ./_example/simple
docker build -t simple .
docker run simple | grep 99\ こんにちわ世界099
21 changes: 8 additions & 13 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.12.17', '1.13.15', '1.14.7', '1.15']
go: ['1.17', '1.18', '1.19']
fail-fast: false
env:
OS: ${{ matrix.os }}
Expand All @@ -29,7 +29,7 @@ jobs:

- name: Get Build Tools
run: |
GO111MODULE=on go get github.com/ory/go-acc
GO111MODULE=on go install github.com/ory/go-acc@latest

- name: Add $GOPATH/bin to $PATH
run: |
Expand All @@ -44,7 +44,7 @@ jobs:
run: go-acc . -- -race -v -tags "libsqlite3"

- name: 'Tags: full'
run: go-acc . -- -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify sqlite_column_metadata"
run: go-acc . -- -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_os_trace sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify sqlite_column_metadata"

- name: 'Tags: vacuum'
run: go-acc . -- -race -v -tags "sqlite_vacuum_full"
Expand All @@ -64,7 +64,7 @@ jobs:

strategy:
matrix:
go: ['1.12.17', '1.13.15', '1.14.7', '1.15']
go: ['1.17', '1.18', '1.19']
fail-fast: false
env:
OS: windows-latest
Expand All @@ -81,11 +81,6 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Get Build Tools
run: |
GO111MODULE=on go get -u github.com/ory/go-acc
shell: msys2 {0}

- name: Add $GOPATH/bin to $PATH
run: |
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
Expand All @@ -94,21 +89,21 @@ jobs:
- uses: actions/checkout@v2

- name: 'Tags: default'
run: go-acc . -- -race -v -tags ""
run: go build -race -v -tags ""
shell: msys2 {0}

- name: 'Tags: libsqlite3'
run: go-acc . -- -race -v -tags "libsqlite3"
run: go build -race -v -tags "libsqlite3"
shell: msys2 {0}

- name: 'Tags: full'
run: |
echo 'skip this test'
echo go-acc . -- -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify"
echo go build -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify"
shell: msys2 {0}

- name: 'Tags: vacuum'
run: go-acc . -- -race -v -tags "sqlite_vacuum_full"
run: go build -race -v -tags "sqlite_vacuum_full"
shell: msys2 {0}

- name: Upload coverage to Codecov
Expand Down
Loading