You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: