-
Notifications
You must be signed in to change notification settings - Fork 156
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
consider allowing usage of std::span<T>
/ gsl::span<T>
for writing blobs
#184
Comments
and |
@lakinwecker Thanks for the request. We want to add a @etam I don't see how this would work. |
@zauguin would we want blob to operate over a span instead of a vector? That way we can use things like std::array<> or some other container that a span can wrap? Done correctly, I think this would allow |
There might be some misunderstanding about "reading" and "writing" terms. Maybe because the issue is about writing data and I wrote in my comment about reading data. I thought it's a good place, because it's all about adding support for types that fulfill some concept (yay, c++20 terminology), not just specific To make things clear: I want to be able to do this:
I'm also using a |
@etam Oh, that's what I considered "writing". This is already implemented in @lakinwecker Basically yes. Streaming is a bit more complicated, mostly because the only API (AFAICT) SQLite has for streaming is the incremental BLOB I/O system. That only handles BLOB which are already stored in the table, to it can't really be used at the binding level. We could add a separate interface to expose this though. I will think about it, but I want to get |
Waiting until it's part of the standard is an understandable approach. |
It's part of the standard by now :-) |
As the title says, it would be nice to have this an option for writing blobs
The text was updated successfully, but these errors were encountered: