removed query_record_result and moved content to query_result
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
|
||||
#include "matador/sql/executor.hpp"
|
||||
#include "matador/sql/query_result.hpp"
|
||||
#include "matador/sql/query_record_result.hpp"
|
||||
#include "matador/sql/record.hpp"
|
||||
|
||||
#include "matador/utils/error.hpp"
|
||||
|
||||
@@ -35,15 +35,15 @@ struct value_to_identifier{
|
||||
void operator()(const uint16_t &x) { assign(x); }
|
||||
void operator()(const uint32_t &x) { assign(x); }
|
||||
void operator()(const uint64_t &x) { assign(x); }
|
||||
void operator()(const bool &x) {}
|
||||
void operator()(const float &x) {}
|
||||
void operator()(const double &x) { /* assign(x);*/ }
|
||||
void operator()(const char *x) {}
|
||||
void operator()(const bool &) {}
|
||||
void operator()(const float &) {}
|
||||
void operator()(const double &) {}
|
||||
void operator()(const char *) {}
|
||||
void operator()(const std::string &x) { assign(x); }
|
||||
void operator()(const utils::date_type_t &x) {}
|
||||
void operator()(const utils::time_type_t &x) {}
|
||||
void operator()(const utils::timestamp_type_t &x) {}
|
||||
void operator()(const utils::blob_type_t &x) {}
|
||||
void operator()(const utils::date_type_t &) {}
|
||||
void operator()(const utils::time_type_t &) {}
|
||||
void operator()(const utils::timestamp_type_t &) {}
|
||||
void operator()(const utils::blob_type_t &) {}
|
||||
|
||||
template<typename Type>
|
||||
void assign(const Type &x) { id_ = x; }
|
||||
|
||||
@@ -188,23 +188,21 @@ public:
|
||||
{}
|
||||
|
||||
template<typename ValueType>
|
||||
void on_primary_key(const char *id, ValueType &value, const utils::primary_key_attribute& attr = utils::default_pk_attributes) {
|
||||
|
||||
}
|
||||
static void on_primary_key(const char * /*id*/, ValueType &/*value*/, const utils::primary_key_attribute& /*attr*/ = utils::default_pk_attributes) {}
|
||||
static void on_revision(const char * /*id*/, uint64_t &/*rev*/) {}
|
||||
template<class Type>
|
||||
static void on_attribute(const char * /*id*/, Type &/*value*/, const utils::field_attributes &/*attr*/ = utils::null_attributes) {}
|
||||
template<class Pointer>
|
||||
void on_belongs_to(const char * /*id*/, Pointer &x, const utils::foreign_attributes &attr) {}
|
||||
static void on_belongs_to(const char * /*id*/, Pointer & /*x*/, const utils::foreign_attributes &/*attr*/) {}
|
||||
template<class Pointer>
|
||||
void on_has_one(const char * /*id*/, Pointer &x, const utils::foreign_attributes &attr) {}
|
||||
static void on_has_one(const char * /*id*/, Pointer & /*x*/, const utils::foreign_attributes &/*attr*/) {}
|
||||
template<class ContainerType>
|
||||
void on_has_many_to_many(const char *, ContainerType &, const char * /*join_column*/, const char * /*inverse_join_column*/, const utils::foreign_attributes &attr) {}
|
||||
static void on_has_many_to_many(const char *, ContainerType &, const char * /*join_column*/, const char * /*inverse_join_column*/, const utils::foreign_attributes &/*attr*/) {}
|
||||
template<class ContainerType>
|
||||
void on_has_many_to_many(const char *, ContainerType &, const utils::foreign_attributes &attr) {}
|
||||
static void on_has_many_to_many(const char *, ContainerType &, const utils::foreign_attributes &/*attr*/) {}
|
||||
|
||||
template<class CollectionType>
|
||||
void on_has_many(const char * /*id*/, CollectionType &cont, const char *join_column, const utils::foreign_attributes &attr, std::enable_if_t<object::is_object_ptr<typename CollectionType::value_type>::value> * = nullptr) {
|
||||
void on_has_many(const char * /*id*/, CollectionType &/*cont*/, const char *join_column, const utils::foreign_attributes &/*attr*/, std::enable_if_t<object::is_object_ptr<typename CollectionType::value_type>::value> * = nullptr) {
|
||||
const auto it = schema_.find(typeid(typename CollectionType::value_type::value_type));
|
||||
if (it == schema_.end()) {
|
||||
throw query_builder_exception{query_build_error::UnknownType};
|
||||
@@ -224,7 +222,7 @@ public:
|
||||
}
|
||||
|
||||
template<class CollectionType>
|
||||
void on_has_many(const char * /*id*/, CollectionType &cont, const char * /*join_column*/, const utils::foreign_attributes &attr, std::enable_if_t<!object::is_object_ptr<typename CollectionType::value_type>::value> * = nullptr) {
|
||||
void on_has_many(const char * /*id*/, CollectionType &/*cont*/, const char * /*join_column*/, const utils::foreign_attributes &/*attr*/, std::enable_if_t<!object::is_object_ptr<typename CollectionType::value_type>::value> * = nullptr) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user