added connection pool and tests
This commit is contained in:
@@ -124,8 +124,7 @@ std::string dialect::to_escaped_string(const utils::blob &value, const connectio
|
||||
return conn->to_escaped_string(value);
|
||||
}
|
||||
|
||||
return {};
|
||||
// return to_escaped_string_func_(value);
|
||||
return to_escaped_string_func_(value);
|
||||
}
|
||||
|
||||
std::string dialect::default_schema_name() const
|
||||
|
||||
@@ -52,6 +52,12 @@ dialect_builder &dialect_builder::with_bool_strings(const std::string &true_stri
|
||||
return *this;
|
||||
}
|
||||
|
||||
dialect_builder& dialect_builder::with_escape_string_func( const dialect::to_escaped_string_func& func ) {
|
||||
dialect_.to_escaped_string_func_ = func;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
dialect dialect_builder::build()
|
||||
{
|
||||
return std::move(dialect_);
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#include "matador/sql/interface/query_result_reader.hpp"
|
||||
|
||||
#include "matador/utils/basic_types.hpp"
|
||||
#include "matador/utils/convert.hpp"
|
||||
#include "matador/utils/string.hpp"
|
||||
#include "matador/utils/value.hpp"
|
||||
|
||||
namespace matador::sql {
|
||||
@@ -19,20 +17,4 @@ void convert(const char *val_str, utils::value &val)
|
||||
val = *res;
|
||||
}
|
||||
|
||||
// utils::blob query_result_reader::read_blob(const size_t index)
|
||||
// {
|
||||
// const auto *data = column(index);
|
||||
// if (data == nullptr) {
|
||||
// return {};
|
||||
// }
|
||||
// const auto len = strlen(data);
|
||||
// const auto *bytes = reinterpret_cast<const unsigned char*>(data);
|
||||
// return utils::blob{bytes, bytes+len};
|
||||
// }
|
||||
|
||||
// utils::attribute_reader &query_result_reader::result_binder()
|
||||
// {
|
||||
// return empty_result_binder_;
|
||||
// }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user