-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-24905: Support BLOB incremental I/O in sqlite module #271
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4fa0e91
support BLOB incremental I/O in sqlite module
palaviv 3fe9108
Note that blob size cannot be changed using the blob object
palaviv 865c1c8
Use assertRaises in tests
palaviv 788fd54
Fix doc error
palaviv a1361e5
blob support sequence protocol
palaviv 5aedfba
Calculate blob length once at creation
palaviv db6ef32
Add initial Doc for sequence protocol
palaviv 219f4cb
Don't support blob operation
palaviv 6dafe0e
move news entry to blurb
palaviv ffac901
Add blob to PCBuild
palaviv 3475fa1
Update version
palaviv f6015ff
Fix memory leak
palaviv 01e526c
Update version
palaviv 354bebf
Fix CR comments in documentation and testing
palaviv 9709456
Fix CR comments in code
palaviv e6e5099
Make readonly and dbname keyword arguements only
palaviv e9a8080
Fix more CR comments
palaviv d4fb1b5
Add more indicative error on write bigger then blob length
palaviv 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
Fix CR comments in documentation and testing
- Loading branch information
commit 354bebf2dc561a6f079fc430edf8d9eb7cab6496
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -879,8 +879,9 @@ Blob Objects | |
|
||
A :class:`Blob` instance can read and write the data in the | ||
:abbr:`BLOB (Binary Large OBject)`. The :class:`Blob` object implement both | ||
the file and sequence protocol. For example You can read data from the | ||
the file and sequence protocol. For example, you can read data from the | ||
:class:`Blob` by doing ``obj.read(5)`` or by doing ``obj[:5]``. | ||
You can call ``len(obj)`` to get size of the BLOB. | ||
|
||
.. method:: Blob.close() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick: |
||
|
||
|
@@ -911,7 +912,7 @@ Blob Objects | |
|
||
Return the current offset of the BLOB. | ||
|
||
.. method:: Blob.seek(offset, [whence]) | ||
.. method:: Blob.seek(offset, whence=os.SEEK_SET) | ||
|
||
Set the BLOB offset. The *whence* argument is optional and defaults to | ||
:data:`os.SEEK_SET` or 0 (absolute BLOB positioning); other values | ||
|
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
2 changes: 1 addition & 1 deletion
2
Misc/NEWS.d/next/Library/2018-04-18-16-15-55.bpo-24905.jYqjYx.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
The :class:`sqlite3.Connection` now has the | ||
:meth:`sqlite3.Connection.open_blob` method. The :class:`sqlite3.Blob` | ||
allows incremental I/O operations to blobs. (Contributed by Aviv Palivoda in | ||
allows incremental I/O operations to blobs. (Patch by Aviv Palivoda in | ||
:issue:`24905`) |
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.