-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-41930: Add support for SQLite serialise/deserialise API #26728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
98957b6
Expose sqlite3_serialize and sqlite3_deserialize
79ecb6c
Wrap in ifdef for now
2171869
Merge branch 'main' into sqlite-serialize
d37484e
Merge branch 'main' into sqlite-serialize
74ab8a7
Add basic tests
125a58c
Let AC convert data to buffer
42f8cd5
Test deserialize type errors
07d3b5c
Skip tests if serialize API is missing
6c5147d
Only reset pending statements if needed
d24fc61
Test deserialize with corrupt data
7db9dfb
Cast sqlite3_deserialize() arguments
527ee92
Refactor tests
6348eaa
Check thread and connection when deserializing
6e4344f
Simplify serialize return value
bde320b
Reset cursors and statements before deserialize
3d8c642
Add NEWS stub
c28f2bc
Merge branch 'main' into sqlite-serialize
8000
ddf4da1
Merge branch 'main' into sqlite-serialize
1bdb611
Merge branch 'main' into sqlite-serialize
d6934f9
Merge branch 'main' into sqlite-serialize
fac7cdc
Free SQLite buffer after Py conversion
9df648f
Transfer ownership of the deserialized data to SQLite
02d0e45
Add docstrings
a22bb3d
Merge branch 'main' into sqlite-serialize
bf5ab3d
Add What's New entry
5a7f974
Add Docs
5c7cb03
Improve naming: schema => name
bea724f
Merge branch 'main' into sqlite-serialize
729778c
Add more tests
5214fad
Allow threads while serializing
5aa2ec5
skip test if SQLite version < 3.36.0
876e917
Merge branch 'main' into sqlite-serialize
74b3d63
Merge branch 'main' into sqlite-serialize
a95eb8a
Fix merge
d1a3e07
Merge branch 'main' into sqlite-serialize
03c4b6e
Merge branch 'main' into sqlite-serialize
179776b
Merge branch 'main' into sqlite-serialize
5a1f277
Merge branch 'main' into sqlite-serialize
0e22060
Merge branch 'main' into sqlite-serialize
f1105fb
Merge branch 'main' into sqlite-serialize
cebdc7a
Merge branch 'main' into sqlite-serialize
315d993
Improve tests
4d17725
Merge branch 'main' into sqlite-serialize
ce20059
Use autoconf to detect serialize API
516c59f
Regen clinic
3b59ec0
Fix test deps
eec9000
Build sqlite3 with serialize on Windows
a902bd9
Typo
c8e2637
Merge branch 'main' into sqlite-serialize
3b316c8
Fix skipIf decorator
4681c6e
Merge branch 'main' into sqlite-serialize
cde0b2e
Merge branch 'main' into sqlite-serialize
3babef8
Note that these API's are only available if the underlying SQLite lib…
306a0e2
Merge branch 'main' into sqlite-serialize
9dffda6
Fix merge: pysqlite_do_all_statements is an ex-function
e185cbc
Merge branch 'main' into sqlite-serialize
ac2f552
Use sqlite3_malloc64 and add bigmemtest
7cdc5ba
Remove spurious newline in VS docs
0f8a260
Merge branch 'main' into sqlite-serialize
45c3e3e
Nit: add missing punctuation
fb127a8
Allow threads while memcpy'ing
c762528
Remove extra newline
609a478
Regen clinic
f81ca8d
Update Doc/library/sqlite3.rst
013b4de
Address code review
f0f3c0a
Revert int max change
6d016f0
Remove redundant info from comment
cea7219
Update Doc/library/sqlite3.rst
7ddb4b7
Address review
7edccfe
Address review: try to avoid memory allocations when serializing
1db4093
Update PCbuild/_sqlite3.vcxproj
03b94b0
Merge branch 'main' and regen clinic
75c3168
Merge branch 'main' into sqlite-serialize
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use autoconf to detect serialize API
- Loading branch information
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.