insert_query_builder progress
This commit is contained in:
@@ -62,6 +62,8 @@ public:
|
||||
*/
|
||||
template<class Type>
|
||||
statement &bind(const Type &obj);
|
||||
template<class Type>
|
||||
statement &bind(const object::object_ptr<Type> &ptr);
|
||||
template<typename Type>
|
||||
statement &bind(size_t pos, Type &value);
|
||||
|
||||
@@ -161,6 +163,11 @@ statement &statement::bind(const Type &obj) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<class Type>
|
||||
statement &statement::bind(const object::object_ptr<Type> &ptr) {
|
||||
return bind(*ptr);
|
||||
}
|
||||
|
||||
template<class Type>
|
||||
utils::result<query_result<Type>, utils::error> statement::fetch() {
|
||||
std::cout << statement_proxy_->sql() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user