GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-41930: Add support for SQLite serialise/deserialise API by erlend-aasland · Pull Request #26728 · python/cpython

Conversation

@erlend-aasland

@erlend-aasland erlend-aasland commented Jun 14, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

https://bugs.python.org/issue41930

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Erlend E. Aasland added 2 commits June 14, 2021 23:43
Erlend E. Aasland
Expose sqlite3_serialize and sqlite3_deserialize
98957b6
Erlend E. Aasland
Wrap in ifdef for now
79ecb6c
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Jun 14, 2021
@bedevere-bot bedevere-bot added the awaiting review label Jun 14, 2021
@erlend-aasland erlend-aasland changed the title bpo-41930: Add support for SQLite serialise/deserialise API [WIP] bpo-41930: Add support for SQLite serialise/deserialise API Jun 14, 2021
Erlend E. Aasland added 6 commits June 15, 2021 21:50
Erlend E. Aasland
Merge branch 'main' into sqlite-serialize
2171869
Erlend E. Aasland
Merge branch 'main' into sqlite-serialize
d37484e
Erlend E. Aasland
Add basic tests
74ab8a7
Erlend E. Aasland
Let AC convert data to buffer
125a58c
Erlend E. Aasland
Test deserialize type errors
42f8cd5
Erlend E. Aasland
Skip tests if serialize API is missing
07d3b5c
@erlend-aasland
erlend-aasland force-pushed the sqlite-serialize branch from 2739573 to 07d3b5c Compare June 16, 2021 18:50
Erlend E. Aasland added 18 commits June 16, 2021 23:31
Erlend E. Aasland
Only reset pending statements if needed
6c5147d
Erlend E. Aasland
Test deserialize with corrupt data
d24fc61
Erlend E. Aasland
Cast sqlite3_deserialize() arguments
7db9dfb
Erlend E. Aasland
Refactor tests
527ee92
Erlend E. Aasland
Check thread and connection when deserializing
6348eaa
Erlend E. Aasland
Simplify serialize return value
6e4344f
Don't return size; use len() on the returned bytes object instead.
Erlend E. Aasland
Reset cursors and statements before deserialize
bde320b
Add basic test for this
Erlend E. Aasland
Add NEWS stub
3d8c642
Erlend E. Aasland
Merge branch 'main' into sqlite-serialize
c28f2bc
Erlend E. Aasland
Merge branch 'main' into sqlite-serialize
ddf4da1
Erlend E. Aasland
Merge branch 'main' into sqlite-serialize
1bdb611
Regen clinic after pythonGH-27155.
Erlend E. Aasland
Merge branch 'main' into sqlite-serialize
d6934f9
Sync with main bco. pythonGH-27273
Erlend E. Aasland
Free SQLite buffer after Py conversion
fac7cdc
Erlend E. Aasland
Transfer ownership of the deserialized data to SQLite
9df648f
Erlend E. Aasland
Add docstrings
02d0e45
Erlend E. Aasland
Merge branch 'main' into sqlite-serialize
a22bb3d
Sync with main bco. pythonGH-27431
Erlend E. Aasland
Add What's New entry
bf5ab3d
Erlend E. Aasland
Add Docs
5a7f974
JelleZijlstra
JelleZijlstra requested changes Feb 28, 2022
View reviewed changes

@JelleZijlstra JelleZijlstra left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'm on board with merging this, since it's generally useful for sqlite3 to expose more of the underlying SQLite API, the feature is simple and shouldn't need much maintenance in the future, and there haven't been any objections on the issue.

I do have a few small comments. Once those are addressed, I'll ask Guido for a second look and then merge the PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

erlend-aasland reacted with hooray emoji
All reactions
  • 🎉 1 reaction
Comment thread Modules/_sqlite/connection.c Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Modules/_sqlite/connection.c Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Modules/_sqlite/connection.c Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Modules/_sqlite/connection.c Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Doc/library/sqlite3.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Doc/library/sqlite3.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot added awaiting changes and removed awaiting review labels Feb 28, 2022
@bedevere-bot

bedevere-bot commented Feb 28, 2022

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Erlend Egeberg Aasland and others added 3 commits February 28, 2022 07:16
Erlend Egeberg Aasland @JelleZijlstra
Update Doc/library/sqlite3.rst
cea7219
Co-authored-by: Jelle Zijlstra <[email protected]>
Erlend E. Aasland
Address review
7ddb4b7
- adjust docs
- deserialize returns None
- remove 'non-standard' from docstring
Erlend E. Aasland
Address review: try to avoid memory allocations when serializing
7edccfe
@erlend-aasland
erlend-aasland requested a review from JelleZijlstra February 28, 2022 10:55
JelleZijlstra
JelleZijlstra approved these changes Feb 28, 2022
View reviewed changes

@JelleZijlstra JelleZijlstra left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! @gvanrossum I'm planning to merge this PR (adding two new functions to sqlite3)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

erlend-aasland reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting changes labels Feb 28, 2022
@gvanrossum

gvanrossum commented Feb 28, 2022

Copy link
Copy Markdown
Member

Looks good! @gvanrossum I'm planning to merge this PR (adding two new functions to sqlite3)

SGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lostnet lostnet mentioned this pull request Mar 2, 2022
sqlite3 "attempt to write a readonly database" with legacy and memory database backend NixOS/nixops#1490
Closed
kumaraditya303
kumaraditya303 reviewed Mar 5, 2022
View reviewed changes
Comment thread PCbuild/_sqlite3.vcxproj Resolved

Uh oh!

There was an error while loading. Please reload this page.

Erlend Egeberg Aasland and others added 2 commits March 5, 2022 17:09
Erlend Egeberg Aasland @kumaraditya303
Update PCbuild/_sqlite3.vcxproj
1db4093
Co-authored-by: Kumar Aditya <[email protected]>
Erlend E. Aasland
Merge branch 'main' and regen clinic
03b94b0
@erlend-aasland

erlend-aasland commented Mar 8, 2022

Copy link
Copy Markdown
Contributor Author

FYI: synced with main and regenerated clinic bco. GH-31612.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@erlend-aasland

erlend-aasland commented Apr 5, 2022

Copy link
Copy Markdown
Contributor Author

@JelleZijlstra, will you be able to merge this before todays alpha?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JelleZijlstra JelleZijlstra self-assigned this Apr 5, 2022
@JelleZijlstra

JelleZijlstra commented Apr 5, 2022

Copy link
Copy Markdown
Member

Oops, sorry for dropping this. There are merge conflicts on the configure scripts, could you resolve those?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Erlend E. Aasland
Merge branch 'main' into sqlite-serialize
75c3168
JelleZijlstra
JelleZijlstra approved these changes Apr 5, 2022
View reviewed changes
@JelleZijlstra
JelleZijlstra merged commit a755124 into python:main Apr 5, 2022
@bedevere-bot bedevere-bot removed the awaiting merge label Apr 5, 2022
@erlend-aasland
erlend-aasland deleted the sqlite-serialize branch April 5, 2022 16:24
@erlend-aasland

erlend-aasland commented Apr 5, 2022

Copy link
Copy Markdown
Contributor Author

Thanks, Jelle!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JelleZijlstra JelleZijlstra mentioned this pull request Apr 15, 2022
sqlite3: add 3.11 additions python/typeshed#7625
Merged
JelleZijlstra added a commit to JelleZijlstra/typeshed that referenced this pull request Apr 15, 2022
@JelleZijlstra
sqlite3: add 3.11 additions
0ba23bb
- Blob from python/cpython#30680 (and anticipating that python/cpython#91550 will be merged)
- Aggregate window functions from python/cpython#20903
- Serialize/deserialize from python/cpython#26728
- Limit setting from python/cpython#28463
srittau pushed a commit to python/typeshed that referenced this pull request Apr 16, 2022
@JelleZijlstra
sqlite3: add 3.11 additions (#7625)
d802e65
- Blob from python/cpython#30680 (and anticipating that python/cpython#91550 will be merged)
- Aggregate window functions from python/cpython#20903
- Serialize/deserialize from python/cpython#26728
- Limit setting from python/cpython#28463
@The-Compiler The-Compiler mentioned this pull request May 23, 2022
test_sqlite3.test_dbapi: test_deserialize_too_much_data_64bit uses undefined size (and requires 24 Exabytes of RAM) #93117
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@kumaraditya303 kumaraditya303 kumaraditya303 left review comments
@JelleZijlstra JelleZijlstra JelleZijlstra approved these changes
@berkerpeksag berkerpeksag Awaiting requested review from berkerpeksag
@serhiy-storchaka serhiy-storchaka Awaiting requested review from serhiy-storchaka
@pablogsal pablogsal Awaiting requested review from pablogsal

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@JelleZijlstra JelleZijlstra

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@erlend-aasland @bedevere-bot @gvanrossum @JelleZijlstra @kumaraditya303 @pablogsal @the-knights-who-say-ni
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.