small fixes and renames
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user