insert has one progress

This commit is contained in:
2026-05-15 07:24:48 +02:00
parent 1cdd83cb31
commit 22f6f71412
13 changed files with 147 additions and 83 deletions
@@ -38,9 +38,9 @@ public:
pk_binder_.bind(*x, index_++, *binder_);
}
template<class Type, template < class ... > class Pointer>
void on_has_one(const char * /*id*/, Pointer<Type> &x, const utils::foreign_attributes &/*attr*/) {
pk_binder_.bind(*x, index_++, *binder_);
}
static void on_has_one(const char * /*id*/,
Pointer<Type> &/*x*/,
const utils::foreign_attributes &/*attr*/) {}
template<class ContainerType>
static void on_has_many(const char * /*id*/,
ContainerType &/*c*/,
-4
View File
@@ -5,8 +5,6 @@
#include "matador/sql/resolver_service.hpp"
#include "matador/utils/types.hpp"
namespace matador::sql {
enum class sql_command {
Unknown,
@@ -33,12 +31,10 @@ struct query_context {
std::string sql;
size_t sql_hash{};
sql_command command{};
std::string command_name{};
std::string schema_name{};
std::string table_name{};
std::vector<object::attribute> prototype{};
std::vector<std::string> bind_vars{};
// std::vector<utils::database_type> bind_types{};
// Data for resolving query result
std::shared_ptr<resolver_service> resolver{};
std::type_index result_type = typeid(void);