Skip to content

can we add bindBlob(int, const std::string &)?Β #466

Open
@etorth

Description

@etorth

Serialization of a simple type like int/char etc can be very short, use std::vector<uint8_t> or something may overkill because of the memory allocation.

std::string is a good choice since it has SSO internal buffer.

But bind(int, const std::string &) always binds to TEXT, not blob.
can we get a way explictly bind std::string to a BLOB type? Thanks! very easy to implement.

Or put a default parameter as:
bind(int, const std::string &, bool bind_to_text = true); // false to BLOB

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions