finished statement cache class
This commit is contained in:
@@ -26,14 +26,14 @@ public:
|
||||
virtual utils::result<std::unique_ptr<query_result_impl>, utils::error> fetch(const interface::parameter_binder& bindings) = 0;
|
||||
|
||||
template < class Type >
|
||||
void bind_object(Type &obj, const interface::parameter_binder& bindings) {
|
||||
void bind_object(Type &obj, interface::parameter_binder& bindings) {
|
||||
object_parameter_binder object_binder_;
|
||||
object_binder_.reset(start_index());
|
||||
object_binder_.bind(obj, bindings);
|
||||
}
|
||||
|
||||
template < class Type >
|
||||
void bind(const size_t pos, Type &val, const interface::parameter_binder& bindings) {
|
||||
void bind(const size_t pos, Type &val, interface::parameter_binder& bindings) {
|
||||
utils::data_type_traits<Type>::bind_value(bindings, adjust_index(pos), val);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user