23 lines
580 B
C++
23 lines
580 B
C++
#include "matador/sql/object_parameter_binder.hpp"
|
|
#include "matador/sql/interface/parameter_binder.hpp"
|
|
|
|
namespace matador::sql {
|
|
object_parameter_binder::object_parameter_binder(bool include_primary_key)
|
|
: include_primary_key_(include_primary_key) {
|
|
}
|
|
|
|
void object_parameter_binder::reset(const size_t start_index)
|
|
{
|
|
index_ = start_index;
|
|
}
|
|
|
|
size_t object_parameter_binder::current_index() const {
|
|
return index_;
|
|
}
|
|
|
|
void object_parameter_binder::on_revision(const char * /*id*/, uint64_t &rev)
|
|
{
|
|
utils::data_type_traits<uint64_t>::bind_value(*binder_, index_++, rev);
|
|
}
|
|
|
|
} |