-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Blob I/O #239
Comments
database/sql doesn't provide Blob APIs. they provide Blob APIs for native driver (not database/sql). |
Yes, but we can provide it aside from database/sql, like backup (backup.go) ? I may try to make it work locally, if it works i'll submit the patch - if that's interesting enough. |
No way to pass the Blob type into database.sql. |
To make it work, you need access from |
I don't want to access it from You would need to get the rowid from a query first, but it's also intended this way in SQLite C API : I'll give it a try ... |
👍 |
Any progress on this @smhmw ? |
@smhmw Any update ? |
I think I came up with a nice API for this in my SQLite driver, which could be implemented for this driver as well: This would require wrapping the pointer passing APIs, on top of blob IO. PS: the example shows writing/reading a single blob, but it easily supports reading/writing multiple blobs in one go (callback gets called repeatedly for each blob). |
Would it be possible to implement the blob i/o API just as the backup API ?
mxk/go-sqlite has it but is a little out of date.
gwenn/gosqlite has it too.
The text was updated successfully, but these errors were encountered: