[chore] update to modernc.org/sqlite v1.38.0 with our concurrency workaround (#4256)

see: https://gitlab.com/cznic/sqlite/-/tags/v1.38.0
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4256
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
This commit is contained in:
kim 2025-06-10 13:19:18 +02:00 committed by tobi
commit 4ad17788cd
27 changed files with 88833 additions and 64669 deletions

1
vendor/modernc.org/sqlite/Makefile generated vendored
View file

@ -59,7 +59,6 @@ edit:
@if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile go.mod builder.json all_test.go & fi
editor:
gofmt -l -s -w .
go test -c -o /dev/null
go build -v -o /dev/null ./...
cd vendor_libsqlite3 && go build -o /dev/null main.go

32
vendor/modernc.org/sqlite/doc.go generated vendored
View file

@ -27,21 +27,21 @@
//
// OS Arch SQLite version
// ------------------------------
// darwin amd64 3.49.0
// darwin arm64 3.49.0
// freebsd amd64 3.49.0
// freebsd arm64 3.49.0
// linux 386 3.49.0
// linux amd64 3.49.0
// linux arm 3.49.0
// linux arm64 3.49.0
// linux loong64 3.49.0
// linux ppc64le 3.49.0
// linux riscv64 3.49.0
// linux s390x 3.49.0
// windows 386 3.49.0
// windows amd64 3.49.0
// windows arm64 3.49.0
// darwin amd64 3.50.1
// darwin arm64 3.50.1
// freebsd amd64 3.50.1
// freebsd arm64 3.50.1
// linux 386 3.50.1
// linux amd64 3.50.1
// linux arm 3.50.1
// linux arm64 3.50.1
// linux loong64 3.50.1
// linux ppc64le 3.50.1
// linux riscv64 3.50.1
// linux s390x 3.50.1
// windows 386 3.50.1
// windows amd64 3.50.1
// windows arm64 3.50.1
//
// # Benchmarks
//
@ -55,6 +55,8 @@
//
// # Changelog
//
// - 2025-06-09 v1.38.0: Upgrade to SQLite 3.50.1.
//
// - 2025-02-26 v1.36.0: Upgrade to SQLite 3.49.0.
//
// - 2024-11-16 v1.34.0: Implement ResetSession and IsValid methods in connection

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

12
vendor/modernc.org/sqlite/sqlite.go generated vendored
View file

@ -603,6 +603,10 @@ func (s *stmt) query(ctx context.Context, args []driver.NamedValue) (r driver.Ro
var allocs []uintptr
defer func() {
if r == nil && err == nil {
r, err = newRows(s.c, pstmt, allocs, true)
}
if pstmt != 0 {
// ensure stmt finalized.
e := s.c.finalize(pstmt)
@ -613,10 +617,6 @@ func (s *stmt) query(ctx context.Context, args []driver.NamedValue) (r driver.Ro
err = e
}
}
if r == nil && err == nil {
r, err = newRows(s.c, pstmt, allocs, true)
}
}()
for psql := s.psql; *(*byte)(unsafe.Pointer(psql)) != 0; {
@ -2154,7 +2154,9 @@ func functionArgs(tls *libc.TLS, argc int32, argv uintptr) []driver.Value {
size := sqlite3.Xsqlite3_value_bytes(tls, valPtr)
blobPtr := sqlite3.Xsqlite3_value_blob(tls, valPtr)
v := make([]byte, size)
copy(v, (*libc.RawMem)(unsafe.Pointer(blobPtr))[:size:size])
if size != 0 {
copy(v, (*libc.RawMem)(unsafe.Pointer(blobPtr))[:size:size])
}
args[i] = v
default:
panic(fmt.Sprintf("unexpected argument type %q passed by sqlite", valType))