Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
242 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)
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
17f6553
Add support for sqlite_math_functions tag (#1059)
lggruspe Sep 17, 2022
be28dec
Golang's linker add mingwex and mingw32 automatically,so we don't nee…
kkqy Sep 1, 2022
90900be
Cross Compiling for Mac OS via `musl-cross`
jodosha Sep 8, 2022
0b37084
Update README.md to include vtable feature (#1100)
dvas0004 Oct 18, 2022
4b8633c
Updating vtable example, "BestIndex" method (#1099)
dvas0004 Oct 18, 2022
31c7618
Update amalgamation code
mattn Oct 26, 2022
bce3773
Update expected test output
otoolep Sep 13, 2022
1603038
Add Serialize and Deserialize support (#1089)
otoolep Nov 17, 2022
7ce62b2
Replace namedValue with driver.NamedValue to avoid copying exec/query…
charlievieth Feb 11, 2023
819cc0d
Add go 1.20 to workflow matrix, remove 1.17 (#1136)
connyay Feb 16, 2023
85a15a7
Add build tags to support both x86 and ARM compilation on macOS (#1069)
Spaider Feb 23, 2023
edc3bb6
Fix virtual table example. (#1149)
andrzh Apr 6, 2023
d366d8d
Update README.md
parthokr May 16, 2023
f08f1b6
Update amalgamation code
mattn May 31, 2023
9fd6f4f
Update amalgamation code
mattn Nov 4, 2023
c260ecf
use locally checked out lib in the docker job
itizir Dec 13, 2023
d9e2789
temporary fix to make the job pass
itizir Dec 13, 2023
00b02e0
Fix musl build (#1164)
leso-kn Dec 8, 2023
c91bca4
update go version to 1.19
mattn Jan 25, 2024
1f0dc0a
go fmt ./...
mattn Jan 25, 2024
d3c3333
update go version
mattn Jan 25, 2024
cdc8095
Update amalgamation code to 3.45.0
mattn Jan 25, 2024
64bbe62
add example
mattn Jan 25, 2024
4702d9b
Update amalgamation code to 3.45.1
mattn Jan 31, 2024
6ee3e67
close channel
mattn Feb 2, 2024
18cdded
fix: some typos
pomadev Feb 21, 2024
3c0390b
add support for libsqlite3 on z/OS
dustin-ward Apr 30, 2024
846fea6
Update amalgamation code to 3.46.1
mattn Sep 4, 2024
82bc911
close statement when missing query arguments
mattn Oct 4, 2024
348128f
Upgrade upload-artifact action
jonstacks Nov 26, 2024
ab13d63
Remove suggestion that CGO isn't always needed (#1290)
samjewell Dec 5, 2024
c61eeb5
remove superfluous use of runtime.SetFinalizer on SQLiteRows
charlievieth Dec 8, 2024
7658c06
Fix sqlite3_opt_unlock_notify with USE_LIBSQLITE3 (#1262)
q66 Dec 9, 2024
cff37b4
Fix json example
Jaculabilis Jan 21, 2025
b9f4d8c
chore: Fix memory leak in callbackRetText function
hionay Jul 12, 2024
9794660
docs: clarify GCP section
justinsb Dec 13, 2024
8d69329
revert #1259
mattn Apr 2, 2025
65302b0
Add ability to set an int64 file control (#1298)
jonstacks Apr 5, 2025
f76bae4
upgrade amalgamation code
mattn Apr 16, 2025
8c283ed
Update amalgamation code to 3.50.3
mattn Jul 24, 2025
d8fd268
drop userauth implementation
mattn Jul 26, 2025
90f0aff
drop userauth feature
mattn Jul 26, 2025
5629687
update GitHub workflows
mattn Jul 26, 2025
37998ab
drop tests for userauth
mattn Jul 26, 2025
a8be3f8
fix GitHub workflow
mattn Jul 26, 2025
4c1ac1e
fix GitHub workflow
mattn Jul 26, 2025
69a843e
fix GitHub workflow
mattn Jul 26, 2025
4372bf2
enable test for sqlite_userauth but it is dropped at least
mattn Jul 26, 2025
eb86f08
check authEnabled
mattn Jul 26, 2025
c857a95
drop call of AuthEnabled()
mattn Jul 28, 2025
a9775d4
return error
mattn Jul 30, 2025
e63a0c3
fix test
mattn Jul 30, 2025
2e165e0
fix syntax error
eraytufan Aug 11, 2025
8bf7a8a
update amalgamation code
mattn Aug 14, 2025
a66908a
use quote include instead of angled include for sqlite3-binding.h
nautaa Nov 10, 2025
aa7cdd3
update upgrade script
mattn Jan 1, 2026
2f6a2bb
fix upgrade script
mattn Jan 1, 2026
3e773a9
update github workflows
mattn Jan 1, 2026
3c885a9
Upgrade SQLite to version 3051001
mattn Jan 1, 2026
dce6b34
Add percentile extension
Dec 9, 2025
a510883
Upgrade SQLite to version 3051002
mattn Jan 16, 2026
2087331
add script to create pull-request
mattn Jan 16, 2026
8366a00
create pull-request
mattn Mar 4, 2026
5a1f4d3
use unsafe.Slice
mattn Mar 4, 2026
8c99a68
Call sqlite3_clear_bindings() in bind() to reset parameters
mattn Mar 16, 2026
4ea2a9f
Upgrade SQLite to version 3051003
mattn Mar 16, 2026
d71eda8
Fix upgrade.sh: add already-up-to-date check and fix changelog URL fo…
mattn Mar 16, 2026
0f12d4e
Ensure Close always removes runtime finalizer to prevent memory leak
mattn Mar 16, 2026
bc7436e
Bump GitHub Actions versions to latest
mattn Mar 16, 2026
bb8d0b2
Bump Go test matrix versions from 1.23-1.25 to 1.24-1.26
mattn Mar 16, 2026
57e5007
Merge pull request #1313 from Jaculabilis/json-example
mattn Mar 16, 2026
84bdc43
add missing index constraint op types
theimpostor Apr 27, 2025
0d23881
Merge pull request #1379 from theimpostor/pr-1322-missing-constraint-…
mattn Mar 19, 2026
8f9f86e
Eliminate unnecessary bounds checks in hot paths
mattn Mar 30, 2026
edadafa
Merge pull request #1381 from mattn/eliminate-bounds-checks
mattn Mar 30, 2026
9a908a9
optimize sqlite bind fast path
mattn Apr 3, 2026
cc39db7
Merge pull request #1382 from mattn/codex/sqlite3-bind-fastpath
mattn Apr 3, 2026
e1557be
batch row column fetches in Next
mattn Apr 3, 2026
b23d54c
Merge pull request #1383 from mattn/codex/next-row-batch-fetch
mattn Apr 3, 2026
efae5e7
raise minimum Go version to 1.21
mattn Apr 3, 2026
f929738
Merge pull request #1384 from mattn/raise-go121-cleanup
mattn Apr 3, 2026
61c5b98
reduce sqlite bind overhead
mattn Apr 6, 2026
4a311ff
Merge pull request #1385 from mattn/perf/reduce-bind-overhead
mattn Apr 6, 2026
4954048
reduce CGO call overhead for exec and bind paths
mattn Apr 6, 2026
89f4bbe
fix build with SQLITE_ENABLE_UNLOCK_NOTIFY
mattn Apr 6, 2026
8d12439
Merge pull request #1386 from mattn/perf/reduce-cgo-overhead
mattn Apr 6, 2026
efa9b1c
add opt-in statement cache
mattn Apr 7, 2026
061c2a5
check stmtCacheSize before acquiring mutex in takeCachedStmt
mattn Apr 8, 2026
325cb8d
remove redundant stmtCacheSize check in putCachedStmt
mattn Apr 8, 2026
e9f47da
do not bail out on finalize error in closeCachedStmtsLocked
mattn Apr 8, 2026
0e58fa4
simplify prepareWithCache to call prepare instead of duplicating logic
mattn Apr 8, 2026
867dcbf
move reset/clear into putCachedStmt and always finalize on failure
mattn Apr 8, 2026
e302e5c
document that _stmt_cache_size is per connection
mattn Apr 8, 2026
5df13a0
Merge pull request #1387 from mattn/codex/stmt-cache
mattn Apr 8, 2026
1627011
add _stmt_cache_size to DSN parameters table in README
mattn Apr 8, 2026
58e032d
Revise SECURITY.md for version support and reporting
mattn Apr 10, 2026
7716c20
evict LRU stmt when stmt cache is full
mattn Apr 11, 2026
2badb4c
use slice len/cap for stmt cache instead of separate counters
mattn Apr 14, 2026
59e8e75
only set stmt cacheKey when cache is enabled
mattn Apr 14, 2026
6690238
extract finalizeCachedStmt helper and drop redundant tail reset
mattn Apr 14, 2026
869e516
fix panic when querying input with no SQL (only comments/whitespace)
mattn Apr 29, 2026
c719e20
Merge pull request #1392 from mattn/fix-issue-1390-query-comment-panic
mattn Apr 29, 2026
1aa7317
Merge pull request #1388 from mattn/stmt-cache-lru
mattn Apr 29, 2026
3761cf7
Upgrade SQLite to version 3053000
mattn Apr 29, 2026
2d4d220
fix changelog URL when minor or patch version is zero
mattn Apr 29, 2026
20826e8
Merge pull request #1394 from mattn/sqlite-amalgamation-3053000
mattn Apr 29, 2026
822b476
add sqlite_dbstat tag for the DBSTAT virtual table
calmh May 20, 2025
904664d
avoid out of bounds write in unlock_notify_wait on 64 bit platforms
calmh May 19, 2026
fed9970
modernise reflect.SliceHeader to unsafe.Slice
calmh May 19, 2026
9d6bf2c
Merge pull request #1338 from calmh/dbstat
mattn May 23, 2026
9accb92
Merge pull request #1399 from calmh/uintsize
mattn Jun 2, 2026
1a7264c
Merge pull request #1400 from calmh/unsafereflect
mattn Jun 2, 2026
2af23f7
guard oversized string length in ResultText
dxbjavid Jun 3, 2026
b3b5216
Merge pull request #1402 from dxbjavid/guard-resulttext-oversize
mattn Jun 3, 2026
d1ab49c
bind via sqlite3_bind_text64/blob64 to avoid 32-bit length truncation
dxbjavid Jun 5, 2026
75d8c60
Merge pull request #1403 from dxbjavid/bind-text64-length
mattn Jun 5, 2026
e2ab931
Upgrade SQLite to version 3053002
mattn Jun 5, 2026
7ca6a97
Merge pull request #1404 from mattn/sqlite-amalgamation-3053002
mattn Jun 5, 2026
78b95b7
Clean up accidental v2 references
mattn Jun 5, 2026
5f1e21d
guard oversized blob length in callbackRetBlob
dxbjavid Jun 5, 2026
c63653b
Merge pull request #1405 from dxbjavid/oversize-blob-result-guard
mattn Jun 6, 2026
6b68c20
preserve embedded NUL bytes in custom function text values
dxbjavid Jun 9, 2026
b1e8d68
read text value before its byte length to match documented order
dxbjavid Jun 9, 2026
518ffdb
Merge pull request #1406 from dxbjavid/function-text-embedded-nul
mattn Jun 9, 2026
c3e96cd
call sqlite3_value_blob before sqlite3_value_bytes in callbackArgString
mattn Jun 9, 2026
379319c
Merge pull request #1407 from mattn/blob-arg-call-order
mattn Jun 9, 2026
a3cd5cd
free leaked schema string in GetFilename
dxbjavid Jun 11, 2026
423f960
Make callback handle lookups lock-free
mattn Jun 18, 2026
eb06f26
Merge pull request #1412 from mattn/codex-5sxu1n
mattn Jun 18, 2026
e99486c
cache column metadata for prepared and cached statements
mattn Jun 18, 2026
837b4f2
Merge pull request #1413 from mattn/cache-stmt-column-metadata
mattn Jun 18, 2026
693de12
Merge pull request #1408 from dxbjavid/getfilename-cstring-leak
mattn Jun 21, 2026
a40eeff
Add upgrade/check.sh to check if SQLite upgrade is available
mattn Jun 21, 2026
34c9c34
Fix race in SQLiteStmt.Close by holding conn lock across cache check
mattn Jul 6, 2026
83baa77
Merge pull request #1416 from mattn/fix-stmt-close-race
mattn Jul 6, 2026
9d436de
Add CodeRabbit as a sponsor
mattn Jul 8, 2026
d613bbb
Add CodeRabbit configuration
mattn Jul 8, 2026
78710fc
Merge pull request #1417 from mattn/add-coderabbit-sponsor
mattn Jul 8, 2026
5ce75d7
Return error from vtable cursor open instead of ignoring it
mattn Jul 13, 2026
7d6ccee
Check sqlite3_malloc64 result in Deserialize
mattn Jul 13, 2026
2485463
Fix panic when registered functions return named types
mattn Jul 13, 2026
c703179
Return error instead of silently ignoring unsupported bind types
mattn Jul 13, 2026
0c0b48c
Close database on all error paths in Open
mattn Jul 13, 2026
82d5507
Check preupdate value fetch result to avoid NULL dereference
mattn Jul 13, 2026
16b935f
Use C.int in exported callbacks to match C declarations
mattn Jul 13, 2026
8b648a0
Fix leak of extension load error message
mattn Jul 13, 2026
b7c167e
Merge pull request #1419 from mattn/fix-vtab-open-error
mattn Jul 13, 2026
526f03e
Merge pull request #1420 from mattn/fix-deserialize-nil-check
mattn Jul 13, 2026
f9029e4
Convert named argument types and add regression tests
mattn Jul 13, 2026
ca77cf4
Merge pull request #1421 from mattn/fix-callback-named-types
mattn Jul 13, 2026
08a4ce4
Add regression tests for bind error paths
mattn Jul 13, 2026
fa5cf80
Merge pull request #1422 from mattn/fix-bind-unsupported-type
mattn Jul 13, 2026
b55096d
Merge pull request #1418 from mattn/add-coderabbit-config
mattn Jul 13, 2026
66371d2
Merge pull request #1423 from mattn/fix-open-error-leak
mattn Jul 13, 2026
a5fd1f6
Merge pull request #1424 from mattn/fix-preupdate-null-deref
mattn Jul 13, 2026
7a3f560
Merge pull request #1425 from mattn/fix-trampoline-abi
mattn Jul 13, 2026
3be2bdb
Merge pull request #1426 from mattn/fix-load-extension-errmsg-leak
mattn Jul 13, 2026
603b1ba
Upgrade SQLite to version 3053003
mattn Jul 13, 2026
0cfec60
Merge pull request #1427 from mattn/sqlite-amalgamation-3053003
mattn Jul 13, 2026
7d534a0
Release vtable and cursor handles when SQLite destroys them
mattn Jul 28, 2026
1f0b756
Do not clobber SQLite's default cost estimates in BestIndex
mattn Jul 28, 2026
c2ecdac
Translate SQL NULL filter arguments to nil like goVUpdate
mattn Jul 28, 2026
1a1bc9e
Identify updated row by argv 0 in goVUpdate
mattn Jul 29, 2026
518016c
Ignore Used for constraints SQLite marked not usable
mattn Jul 29, 2026
cad8b71
Reject nil module and nil BestIndex result
mattn Jul 29, 2026
6443b7e
Fix off-by-one truncating SQL in fuzz target
mattn Jul 29, 2026
322330f
Fail upgrade tool on download and write errors
mattn Jul 29, 2026
3b8cebf
Fix wrong results and cursor state sharing in series example
mattn Jul 29, 2026
baab344
Use the table name from xCreate args in vtable example
mattn Jul 29, 2026
80cf381
Close leaked rows in hook example
mattn Jul 29, 2026
084f3d3
Close prepared statement and fail if limit is not enforced in limit e…
mattn Jul 29, 2026
88a4797
Handle NULL and BLOB values in json example Scan
mattn Jul 29, 2026
f65452a
Use unique driver name in leak test
mattn Jul 29, 2026
3babc1f
Merge pull request #1429 from mattn/fix-vtable-handle-leak
mattn Jul 29, 2026
2897b83
Clamp fractional row estimates to at least 1
mattn Jul 29, 2026
b330252
Merge pull request #1430 from mattn/fix-vtable-estimated-cost
mattn Jul 29, 2026
a39da35
Merge pull request #1431 from mattn/fix-vtable-filter-null
mattn Jul 29, 2026
726af39
Reject rowid-changing updates on virtual tables
mattn Jul 29, 2026
eba871f
Merge pull request #1432 from mattn/fix-vtable-update-rowid
mattn Jul 29, 2026
2730212
Merge pull request #1433 from mattn/fix-vtable-bestindex-usable
mattn Jul 29, 2026
fadf4a7
Merge pull request #1434 from mattn/fix-vtable-nil-checks
mattn Jul 29, 2026
6ebb665
Close merge destination before removing the source
mattn Jul 29, 2026
df9873f
Merge pull request #1435 from mattn/fix-upgrade-error-handling
mattn Jul 29, 2026
2195c5d
Merge pull request #1436 from mattn/fix-fuzz-off-by-one
mattn Jul 29, 2026
e664cc6
Merge pull request #1437 from mattn/fix-series-vtable-example
mattn Jul 29, 2026
c0861de
Quote table name before interpolating into DeclareVTab
mattn Jul 29, 2026
dccd45f
Merge pull request #1438 from mattn/fix-vtable-example-declare
mattn Jul 29, 2026
210e260
Merge pull request #1439 from mattn/fix-hook-example-rows-leak
mattn Jul 29, 2026
18f2ec3
Assert the expected too many SQL variables error
mattn Jul 29, 2026
c1a1466
Merge pull request #1440 from mattn/fix-limit-example-stmt-leak
mattn Jul 29, 2026
18308a8
Upgrade SQLite to version 3053004
mattn Jul 29, 2026
cc41b8c
Merge pull request #1442 from mattn/sqlite-amalgamation-3053004
mattn Jul 29, 2026
9415230
Merge pull request #1441 from mattn/fix-json-example-scan
mattn Jul 29, 2026
485f31f
Add workflow to create releases on tag push
mattn Jul 29, 2026
a93a209
Fail closed on release lookup errors and serialize runs per tag
mattn Jul 29, 2026
f9fc7aa
Merge pull request #1443 from mattn/add-release-workflow
mattn Jul 30, 2026
e27b5e9
fix: keep vtab handle registered when xDestroy fails
canesin Aug 17, 2026
58c8e14
Merge pull request #1446 from 0xCarbon/fix/vtable-destroy-handle
mattn Aug 17, 2026
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
15 changes: 15 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: en-US
reviews:
# Skip the vendored SQLite amalgamation. These files are copied verbatim from
# upstream SQLite (see the License section in README.md) and are not code that
# this project authors or reviews.
path_filters:
- "!sqlite3-binding.c"
- "!sqlite3-binding.h"
- "!sqlite3ext.h"
auto_review:
enabled: true
drafts: false
chat:
auto_reply: true
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@v4
if: failure()
with:
name: ${{ matrix.sanitizer }}-artifacts
path: ./out/artifacts
21 changes: 21 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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@v6

- name: Run example - simple
run: |
docker build -t simple -f ./_example/simple/Dockerfile .
docker run simple | grep 99\ こんにちは世界099
33 changes: 14 additions & 19 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.24', '1.25', '1.26']
fail-fast: false
env:
OS: ${{ matrix.os }}
Expand All @@ -23,19 +23,19 @@ jobs:
- if: startsWith(matrix.os, 'macos')
run: brew update

- uses: actions/setup-go@v2
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}

- 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: |
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"

- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: 'Tags: default'
run: go-acc . -- -race -v -tags ""
Expand All @@ -44,13 +44,13 @@ 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_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_os_trace sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_vacuum_incr sqlite_vtable"

- name: 'Tags: vacuum'
run: go-acc . -- -race -v -tags "sqlite_vacuum_full"

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5
with:
env_vars: OS,GO
file: coverage.txt
Expand All @@ -64,7 +64,7 @@ jobs:

strategy:
matrix:
go: ['1.12.17', '1.13.15', '1.14.7', '1.15']
go: ['1.24', '1.25', '1.26']
fail-fast: false
env:
OS: windows-latest
Expand All @@ -77,42 +77,37 @@ jobs:
msystem: MINGW64
path-type: inherit

- uses: actions/setup-go@v2
- uses: actions/setup-go@v6
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"
shell: msys2 {0}

- uses: actions/checkout@v2
- uses: actions/checkout@v6

- 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_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_vacuum_incr sqlite_vtable"
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
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v5
with:
env_vars: OS,GO
file: coverage.txt
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
tags:
- 'v*'

permissions:
contents: write

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

jobs:
release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Create release with generated notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
if output=$(gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" 2>&1); then
echo "Release $GITHUB_REF_NAME already exists, skipping"
exit 0
elif ! grep -qi "release not found" <<< "$output"; then
# A lookup failure other than "not found" (auth, network, API)
# must not fall through to the create step.
echo "$output" >&2
exit 1
fi
gh release create "$GITHUB_REF_NAME" \
--repo "$GITHUB_REPOSITORY" \
--title "${GITHUB_REF_NAME#v}" \
--verify-tag \
--generate-notes
Loading