Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
368 commits
Select commit Hold shift + click to select a range
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
7c4c014
Fixed som typos and wrappings in sqlite3_func_crypt.go documentation.
kberov Jan 3, 2026
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
6f56c01
fix Exec "not enough args" error reporting wrong count
semihbkgr May 10, 2026
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
73d5bc7
refactor: Clean up deprecated // +build legacy build tags
zxysilent Jul 21, 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
840a3ec
Avoid per-row goroutines for query cancellation
bradengroom Aug 1, 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
cff623d
Merge branch 'master' into fix-exec-not-enough-args-message
mattn Sep 5, 2026
4048620
Merge branch 'master' into typos
mattn Sep 5, 2026
7538105
Merge branch 'master' into refactor-build-tags
mattn Sep 5, 2026
bf851dc
Merge pull request #1396 from semihbkgr/fix-exec-not-enough-args-message
mattn Sep 5, 2026
9aa4bd3
Merge pull request #1428 from zxysilent/refactor-build-tags
mattn Sep 5, 2026
6507893
Merge pull request #1367 from kberov/typos
mattn Sep 5, 2026
c7ed68d
Flush statement cache when the schema changes
mattn Sep 5, 2026
5341cee
Gate cache on runtime version and skip probing in transactions
mattn Sep 5, 2026
2294cd9
Replace copy-on-write handle map with sync.Map
mattn Sep 5, 2026
5b285a1
Merge branch 'master' into codex/efficient-query-cancellation
mattn Sep 5, 2026
be93f7a
Merge pull request #1453 from mattn/fix-handle-map-quadratic
mattn Sep 5, 2026
6428cad
Merge pull request #1444 from bradengroom/codex/efficient-query-cance…
mattn Sep 5, 2026
d7f5da7
Merge pull request #1452 from mattn/fix-stmt-cache-schema-change
mattn Sep 5, 2026
c8212b8
Replace schema probe with eager first step for cached statements
mattn Sep 5, 2026
b0be46f
Merge pull request #1454 from mattn/fix-stmt-cache-probe-cost
mattn Sep 5, 2026
c29df09
Replace the SQLite amalgamation with SQLCipher 4.20.0
laodouya Nov 4, 2026
088b98b
Add the LibTomCrypt 1.18.2 sources SQLCipher needs
laodouya Nov 4, 2026
e23666f
Build with SQLCipher and add the _crypto_key DSN parameter
laodouya Nov 4, 2026
e09fef5
Link ICU statically for the sqlite_icu build tag
laodouya Nov 4, 2026
886d3dc
Test that _crypto_key encrypts the database file
laodouya Nov 4, 2026
ae60c8c
Add the LibTomCrypt hash_memory and rng_get_bytes sources
laodouya Nov 4, 2026
f42a45f
Use the module path github.com/CovenantSQL/go-sqlite3-encrypt
laodouya Nov 4, 2026
e0e8b5a
Describe the fork and how to update SQLCipher in the README
laodouya Nov 4, 2026
caba453
Fix the description of the LibTomCrypt files in the README
laodouya Nov 4, 2026
8291ca3
Merge branch 'develop' into feature/sqlcipher-4.20, keeping this branch
laodouya Nov 4, 2026
a7a68e1
Remove the CIFuzz workflow
laodouya Nov 4, 2026
1666bc3
Report missing arguments again when Exec has no arguments
laodouya Nov 4, 2026
3b916a6
Turn off the default logging of SQLCipher
laodouya Nov 4, 2026
541db8f
Refuse _crypto_key without SQLCipher or with a NUL in it
laodouya Nov 4, 2026
d87e2c7
Remove the upgrade tool
laodouya Nov 4, 2026
ffc8bbe
Retract v1.0.0 to v1.9.0
laodouya Nov 4, 2026
b98a26f
Document the encryption limits and installation in the README
laodouya Nov 4, 2026
d4363af
Check _crypto_key before opening the database file
laodouya Nov 4, 2026
7507fa0
Drop the SQLCipher 3 migration note from the README
laodouya Nov 4, 2026
acb4e7e
Drop the retraction of v2.0.0 to v2.0.7
laodouya Nov 4, 2026
2c08164
Drop the .gitignore entries of the removed upgrade tool
laodouya Nov 4, 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
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage:
status:
project: off
patch: off
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
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: mattn # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
open_collective: mattn # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
custom: # Replace with a single custom sponsorship URL
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
115 changes: 115 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Go

on: [push, pull_request]

jobs:

test:
name: Test
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.24', '1.25', '1.26']
fail-fast: false
env:
OS: ${{ matrix.os }}
GO: ${{ matrix.go }}
steps:
- if: startsWith(matrix.os, 'macos')
run: brew update

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

- name: Get Build Tools
run: |
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@v6

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

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

- name: 'Tags: full'
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@v5
with:
env_vars: OS,GO
file: coverage.txt

test-windows:
name: Test for Windows
runs-on: windows-latest
defaults:
run:
shell: bash

strategy:
matrix:
go: ['1.24', '1.25', '1.26']
fail-fast: false
env:
OS: windows-latest
GO: ${{ matrix.go }}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-sqlite3
msystem: MINGW64
path-type: inherit

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

- name: Add $GOPATH/bin to $PATH
run: |
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
shell: msys2 {0}

- uses: actions/checkout@v6

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

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

- name: 'Tags: full'
run: |
echo 'skip this test'
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 build -race -v -tags "sqlite_vacuum_full"
shell: msys2 {0}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
env_vars: OS,GO
file: coverage.txt

# based on: github.com/koron-go/_skeleton/.github/workflows/go.yml
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
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
*.dll
*.o

.idea

# VSCode
.vscode

# Exclude from upgrade
upgrade/*.c
upgrade/*.h

# Exclude upgrade binary
upgrade/upgrade
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

29 changes: 29 additions & 0 deletions LICENSE.libtomcrypt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
LibTomCrypt is licensed under DUAL licensing terms.

Choose and use the license of your needs.

[LICENSE #1]

LibTomCrypt is public domain. As should all quality software be.

Tom St Denis

[/LICENSE #1]

[LICENSE #2]

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

[/LICENSE #2]
24 changes: 24 additions & 0 deletions LICENSE.sqlcipher
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2025, ZETETIC LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the ZETETIC LLC nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ZETETIC LLC ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL ZETETIC LLC BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading
Loading