Merge commit '47d4dcf042f5ec927d592f03964cd12aab2bb66f' as 'backend/go-sqlite3'

This commit is contained in:
2026-05-24 09:39:27 +02:00
98 changed files with 299557 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
CURRENT_VERSION=$(grep '#define SQLITE_VERSION_NUMBER' sqlite3-binding.c | grep -o '[0-9]\{7\}')
go run upgrade/upgrade.go
VERSION=$(grep '#define SQLITE_VERSION_NUMBER' sqlite3-binding.c | grep -o '[0-9]\{7\}')
if [ -z "$VERSION" ]; then
echo "Error: Could not extract SQLite version"
exit 1
fi
if [ "$VERSION" = "$CURRENT_VERSION" ]; then
echo "Already up to date: version $VERSION"
git checkout -- sqlite3-binding.c sqlite3-binding.h sqlite3ext.h
exit 0
fi
git branch -d "sqlite-amalgamation-$VERSION" 2>/dev/null || true
git checkout -b "sqlite-amalgamation-$VERSION"
git commit -m "Upgrade SQLite to version $VERSION" sqlite3-binding.c sqlite3-binding.h sqlite3ext.h
git push origin HEAD
MAJOR=$(echo $VERSION | cut -c1)
MINOR=$(echo $VERSION | cut -c2-4 | sed 's/^0*\([0-9]\)/\1/')
PATCH=$(echo $VERSION | cut -c5-7 | sed 's/^0*\([0-9]\)/\1/')
CHANGELOG_URL="https://www.sqlite.org/releaselog/${MAJOR}_${MINOR}_${PATCH}.html"
gh pr create --title "Upgrade SQLite to version $VERSION" --body "Automated SQLite upgrade to version $VERSION
## Changelog
See: $CHANGELOG_URL" --web