session update progress

This commit is contained in:
2025-10-13 07:07:00 +02:00
parent 1cda78412b
commit 24842f3313
4 changed files with 19 additions and 4 deletions
@@ -26,10 +26,12 @@ public:
virtual utils::result<std::unique_ptr<query_result_impl>, utils::error> fetch(const parameter_binder& bindings) = 0;
template < class Type >
void bind_object(Type &obj, parameter_binder& bindings) {
object_parameter_binder object_binder_;
size_t bind_object(Type &obj, parameter_binder& bindings) {
object_parameter_binder object_binder_(query_.command != sql_command::SQL_UPDATE);
object_binder_.reset(start_index());
object_binder_.bind(obj, bindings);
return object_binder_.current_index();
}
template < class Type >