renamed blob to blob_type_t

This commit is contained in:
2026-01-07 09:21:10 +01:00
parent 41f6c9f516
commit f30c250a20
44 changed files with 88 additions and 80 deletions
+2 -2
View File
@@ -123,11 +123,11 @@ void data_type_traits<std::string>::bind_value(attribute_writer &binder, const s
binder.write_value(index, value, size);
}
void data_type_traits<blob>::read_value(attribute_reader &reader, const char *id, const size_t index, utils::blob &value, const size_t /*size*/) {
void data_type_traits<blob_type_t>::read_value(attribute_reader &reader, const char *id, const size_t index, utils::blob_type_t &value, const size_t /*size*/) {
reader.read_value(id, index, value);
}
void data_type_traits<blob>::bind_value(attribute_writer &binder, const size_t index, blob &value, const size_t /*size*/) {
void data_type_traits<blob_type_t>::bind_value(attribute_writer &binder, const size_t index, blob_type_t &value, const size_t /*size*/) {
binder.write_value(index, value);
}
+1 -1
View File
@@ -4,7 +4,7 @@
#include <sstream>
namespace matador::utils {
std::string to_string(const blob& data) {
std::string to_string(const blob_type_t& data) {
static constexpr char HEXITS[] = "0123456789ABCDEF";
std::string str(2 * data.size(), '\0');
+1 -1
View File
@@ -99,7 +99,7 @@ void initialize_by_basic_type(const basic_type type, database_type &val) {
val.emplace<timestamp>();
break;
case basic_type::Blob:
val.emplace<blob>();
val.emplace<blob_type_t>();
break;
default:
val.emplace<nullptr_t>();
+1 -1
View File
@@ -12,7 +12,7 @@ size_t determine_size(const char *val) {
return strlen(val);
}
size_t determine_size(const blob &val) {
size_t determine_size(const blob_type_t &val) {
return val.size();
}
}