breaking(sqlite): libsqlite3-sys versioning, feature flags, safety changes#3928
Merged
breaking(sqlite): libsqlite3-sys versioning, feature flags, safety changes#3928
libsqlite3-sys versioning, feature flags, safety changes#3928Conversation
libsqlite3-sys versioning, feature flags, ext…libsqlite3-sys versioning, feature flags, extension loading is unsafe
f9fa141 to
17e7428
Compare
This was referenced Jul 8, 2025
104e61f to
3dd86ef
Compare
libsqlite3-sys versioning, feature flags, extension loading is unsafelibsqlite3-sys versioning, feature flags, extension loading is unsafe
3dd86ef to
3a2ff66
Compare
libsqlite3-sys versioning, feature flags, extension loading is unsafelibsqlite3-sys versioning, feature flags, safety changes
891a298 to
1180744
Compare
Contributor
|
Does the I hope 0.9.0 would overcome this issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes to unreleased code (fold together with related PRs)
common.drivers.sqlite.load-extensionstodrivers.sqlite.unsafe-load-extensionsdrivers.mysql,drivers.postgres, and support for future external driversBreaking Changes
libsqlite3-sysversioning policy to use version rangesSqliteConnectOptions::extension()and::extension_with_entrypoint()asunsafesqlite-deserializeenablingSqliteConnection::serialize()andSqliteConnection::deserialize()sqlite-load-extensionenablingSqliteConnectOptions::extension()and::extension_with_entrypoint()sqlite-unlock-notifyenables internal use ofsqlite3_unlock_notify()SqliteValueandSqliteValueRefchanges:sqlite3_value*interface reserves the right to be stateful. Without protection, any call could theoretically invalidate values previously returned, leading to dangling pointers.SqliteValueis now!SyncandSqliteValueRefis!Sendto prevent data races from concurrent accesses.SqliteValueinMutex, or convert theSqliteValueRefto an owned value.SqliteValueand any derivedSqliteValueRefs now internally track if that value has been used to decode a borrowed&[u8]or&strand errors if it's used to decode any other type.SqliteValue/SqliteValueRef.SqliteValuefor details.TODO
sqlite3_valueis not safe to access concurrentlySqliteValuedrop internalMutexandSqliteValue: Sync, it's largely unnecessaryIssues
fixes #3926
fixes #3921
fixes #3905
Superceded PRs
closes #3927
closes #3922
closes #3888
closes #3844