Skip to content
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

Add support for opening a BLOB for incremental I/O #60

Open
noteflakes opened this issue Jan 12, 2024 · 0 comments
Open

Add support for opening a BLOB for incremental I/O #60

noteflakes opened this issue Jan 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@noteflakes
Copy link
Contributor

noteflakes commented Jan 12, 2024

The idea is to have a file like API (https://www.sqlite.org/c3ref/blob_open.html):

blob = db.open_blob(db_name, tbl_name, column_name, rowid)
blob.size #=> returns total blob size
blob.offset #=> 0
blob.read(12) #=> "blahblahblah"
  • We maintain an offset and increment it as we read or write.
  • Add the possibility to reopen using sqlite3_blob_reopen.
@noteflakes noteflakes added the enhancement New feature or request label Jan 12, 2024
@noteflakes noteflakes self-assigned this Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant