8000 bpo-41930: Add support for SQLite serialise/deserialise API by erlend-aasland · Pull Request #26728 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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 73 commits into from
Apr 5, 2022
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
May 9, 2021
79ecb6c
Wrap in ifdef for now
Jun 14, 2021
2171869
Merge branch 'main' into sqlite-serialize
Jun 15, 2021
d37484e
Merge branch 'main' into sqlite-serialize
Jun 16, 2021
74ab8a7
Add basic tests
Jun 15, 2021
125a58c
Let AC convert data to buffer
Jun 16, 2021
42f8cd5
Test deserialize type errors
Jun 16, 2021
07d3b5c
Skip tests if serialize API is missing
Jun 16, 2021
6c5147d
Only reset pending statements if needed
Jun 16, 2021
d24fc61
Test deserialize with corrupt data
Jun 16, 2021
7db9dfb
Cast sqlite3_deserialize() arguments
Jun 16, 2021
527ee92
Refactor tests
Jun 16, 2021
6348eaa
Check thread and connection when deserializing
Jun 16, 2021
6e4344f
Simplify serialize return value
Jun 16, 2021
bde320b
Reset cursors and statements before deserialize
Jun 16, 2021
3d8c642
Add NEWS stub
Jun 16, 2021
c28f2bc
Merge branch 'main' into sqlite-serialize
Jun 20, 2021
ddf4da1
Merge branch 'main' into sqlite-serialize
Jun 23, 2021
1bdb611
Merge branch 'main' into sqlite-serialize
Jul 20, 2021
d6934f9
Merge branch 'main' into sqlite-serialize
Jul 29, 2021
fac7cdc
Free SQLite buffer after Py conversion
Jul 30, 2021
9df648f
Transfer ownership of the deserialized data to SQLite
Jul 30, 2021
02d0e45
Add docstrings
Jul 30, 2021
a22bb3d
Merge branch 'main' into sqlite-serialize
Jul 30, 2021
bf5ab3d
Add What's New entry
Jul 31, 2021
5a7f974
Add Docs
Aug 2, 2021
5c7cb03
Improve naming: schema => name
Aug 2, 2021
bea724f
Merge branch 'main' into sqlite-serialize
Aug 8, 2021
729778c
Add more tests
Aug 12, 2021
5214fad
Allow threads while serializing
Aug 12, 2021
5aa2ec5
skip test if SQLite version < 3.36.0
Aug 13, 2021
876e917
Merge branch 'main' into sqlite-serialize
Aug 31, 2021
74b3d63
Merge branch 'main' into sqlite-serialize
Sep 7, 2021
a95eb8a
Fix merge
Sep 12, 2021
d1a3e07
Merge branch 'main' into sqlite-serialize
Sep 12, 2021
03c4b6e
Merge branch 'main' into sqlite-serialize
Sep 14, 2021
179776b
Merge branch 'main' into sqlite-serialize
Oct 6, 2021
5a1f277
Merge branch 'main' into sqlite-serialize
Nov 1, 2021
0e22060
Merge branch 'main' into sqlite-serialize
Nov 2, 2021
f1105fb
Merge branch 'main' into sqlite-serialize
Nov 9, 2021
cebdc7a
Merge branch 'main' into sqlite-serialize
Nov 17, 2021
315d993
Improve tests
Nov 17, 2021
4d17725
Merge branch 'main' into sqlite-serialize
Nov 20, 2021
ce20059
Use autoconf to detect serialize API
Nov 20, 2021
516c59f
Regen clinic
Nov 20, 2021
3b59ec0
Fix test deps
Nov 20, 2021
eec9000
Build sqlite3 with serialize on Windows
Nov 20, 2021
a902bd9
Typo
Nov 20, 2021
c8e2637
Merge branch 'main' into sqlite-serialize
Nov 20, 2021
3b316c8
Fix skipIf decorator
Nov 20, 2021
4681c6e
Merge branch 'main' into sqlite-serialize
Nov 22, 2021
cde0b2e
Merge branch 'main' into sqlite-serialize
Nov 29, 2021
3babef8
Note that these API's are only available if the underlying SQLite lib…
Nov 29, 2021
306a0e2
Merge branch 'main' into sqlite-serialize
Jan 18, 2022
9dffda6
Fix merge: pysqlite_do_all_statements is an ex-function
Jan 18, 2022
e185cbc
Merge branch 'main' into sqlite-serialize
Jan 20, 2022
ac2f552
Use sqlite3_malloc64 and add bigmemtest
Jan 20, 2022
7cdc5ba
Remove spurious newline in VS docs
Jan 20, 2022
0f8a260
Merge branch 'main' into sqlite-serialize
Feb 26, 2022
45c3e3e
Nit: add missing punctuation
Feb 26, 2022
fb127a8
Allow threads while memcpy'ing
Feb 26, 2022
c762528
Remove extra newline
Feb 26, 2022
609a478
Regen clinic
Feb 26, 2022
f81ca8d
Update Doc/library/sqlite3.rst
Feb 27, 2022
013b4de
Address code review
Feb 27, 2022
f0f3c0a
Revert int max change
Feb 27, 2022
6d016f0
Remove redundant info from comment
Feb 27, 2022
cea7219
Update Doc/library/sqlite3.rst
Feb 28, 2022
7ddb4b7
Address review
Feb 28, 2022
7edccfe
Address review: try to avoid memory allocations when serializing
Feb 28, 2022
1db4093
Update PCbuild/_sqlite3.vcxproj
Mar 5, 2022
03b94b0
Merge branch 'main' and regen clinic
Mar 8, 2022
75c3168
Merge branch 'main' into sqlite-serialize
Apr 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into sqlite-serialize
  • Loading branch information
Erlend E. Aasland committed Nov 20, 2021
commit c8e2637e6db7603acf1e20374b58af6671fc4ffe
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,9 @@ AC_CHECK_HEADER([sqlite3.h], [
], [])
], [have_supported_sqlite3=yes], [have_supported_sqlite3=no])
], [have_sqlite3=no])
AC_CHECK_LIB([sqlite3], [sqlite3_load_extension])
AC_CHECK_LIB([sqlite3], [sqlite3_load_extension],
[have_sqlite3_load_extension=yes],
[have_sqlite3_load_extension=no])
AC_CHECK_LIB([sqlite3], [sqlite3_serialize],
[AC_DEFINE([PY_SQLITE_HAVE_SERIALIZE], [1],
["Define if SQLite was compiled with the serialize API"])])
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0