small fixes and renames

This commit is contained in:
2026-05-23 20:48:21 +02:00
parent cc0bcbeb61
commit 141d798a41
10 changed files with 73 additions and 76 deletions
@@ -22,9 +22,8 @@ sql::query_context executable_query::compile(const sql::dialect& d) const {
return compiler.build(*context_, d, std::nullopt);
}
std::string executable_query::str(const sql::executor &exec) const {
query_builder compiler;
return exec.str(compiler.build(*context_, exec.dialect(), std::nullopt));
std::string executable_query::str(const sql::dialect& d) const {
return compile(d).sql;
}
}
@@ -55,9 +55,6 @@ utils::result<std::optional<sql::record>, utils::error> fetchable_query::fetch_o
return utils::ok(std::optional{first.release()});
}
std::string fetchable_query::str(const sql::executor &exec) const {
return str(exec.dialect());
}
std::string fetchable_query::str(const sql::dialect &d) const {
return compile(d).sql;
}