added update_object_binder progress
This commit is contained in:
@@ -51,11 +51,13 @@ statement &statement::bind(const size_t pos, std::string &val, const size_t size
|
||||
}
|
||||
|
||||
utils::result<size_t, utils::error> statement::execute() const {
|
||||
// logger_.info(statement_->query_.sql);
|
||||
logger_->on_execute(statement_proxy_->sql());
|
||||
std::cout << statement_proxy_->sql() << std::endl;
|
||||
return statement_proxy_->execute(*bindings_);
|
||||
}
|
||||
|
||||
utils::result<query_result<record>, utils::error> statement::fetch() const {
|
||||
std::cout << statement_proxy_->sql() << std::endl;
|
||||
auto result = statement_proxy_->fetch(*bindings_);
|
||||
if (!result.is_ok()) {
|
||||
return utils::failure(result.err());
|
||||
|
||||
Reference in New Issue
Block a user