identity generator progress
This commit is contained in:
@@ -10,12 +10,12 @@ namespace matador::test::orm {
|
||||
test_statement::test_statement(const sql::query_context &query)
|
||||
: statement_impl(query, 0) {}
|
||||
|
||||
utils::result<size_t, utils::error> test_statement::execute(const sql::parameter_binder &/*bindings*/) {
|
||||
utils::result<sql::execute_result, utils::error> test_statement::execute(const sql::parameter_binder &/*bindings*/) {
|
||||
using namespace std::chrono_literals;
|
||||
std::mt19937 rng(query_.sql.size());
|
||||
std::uniform_int_distribution dist(10, 50);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(dist(rng)));
|
||||
return utils::ok(static_cast<size_t>(8));
|
||||
return utils::ok(sql::execute_result{8});
|
||||
}
|
||||
|
||||
utils::result<std::unique_ptr<sql::query_result_impl>, utils::error> test_statement::fetch(const sql::parameter_binder &/*bindings*/) {
|
||||
|
||||
Reference in New Issue
Block a user