[sqlite3] Ability to enable the database snapshot (#36925)

This PR adds a configuration option that allows you to enable snapshots
of SQLite3.

https://sqlite.org/c3ref/snapshot.html

The main use case is handling in WAL mode. Previously, SQLite3 in vcpkg
did not support database snapshot handling. This PR will extend the
functionality of SQLite3 by supporting it.

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
This commit is contained in:
arasan01 2024-03-05 18:34:51 +09:00 committed by GitHub
parent 53484a7b86
commit 86e3ce7d29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 1 deletions

View File

@ -44,6 +44,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS none # only using the script-mode side-
rtree SQLITE_ENABLE_RTREE
session SQLITE_ENABLE_SESSION
session SQLITE_ENABLE_PREUPDATE_HOOK
snapshot SQLITE_ENABLE_SNAPSHOT
omit-load-extension SQLITE_OMIT_LOAD_EXTENSION
geopoly SQLITE_ENABLE_GEOPOLY
soundex SQLITE_SOUNDEX

View File

@ -19,6 +19,7 @@
#cmakedefine SQLITE_ENABLE_UPDATE_DELETE_LIMIT
#cmakedefine SQLITE_ENABLE_RTREE
#cmakedefine SQLITE_ENABLE_SESSION
#cmakedefine SQLITE_ENABLE_SNAPSHOT
#cmakedefine SQLITE_ENABLE_PREUPDATE_HOOK
#cmakedefine SQLITE_OMIT_LOAD_EXTENSION
#cmakedefine SQLITE_ENABLE_GEOPOLY

View File

@ -1,6 +1,7 @@
{
"name": "sqlite3",
"version": "3.45.1",
"port-version": 1,
"description": "SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.",
"homepage": "https://sqlite.org/",
"license": "blessing",
@ -57,6 +58,9 @@
"session": {
"description": "Enable the SESSION extension"
},
"snapshot": {
"description": "Enable the snapshot function"
},
"soundex": {
"description": "Enable the SOUNDEX scalar function"
},

View File

@ -8278,7 +8278,7 @@
},
"sqlite3": {
"baseline": "3.45.1",
"port-version": 0
"port-version": 1
},
"sqlitecpp": {
"baseline": "3.3.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4e2ae6bc4849b52c6cd2e2d51c110f69ac3901d0",
"version": "3.45.1",
"port-version": 1
},
{
"git-tree": "c5400f042e2a80411a055dbd06720135851f9ec7",
"version": "3.45.1",