Cleanup the code of the MySQL connector (#509)

* Move the code for sqlpp::mysql::detail::connection_handle_t to include/sqlpp11/mysql/detail/connection_handle.h
* Move the code for sqlpp::mysql::detail::prepared_statement_handle_t to include/sqlpp11/mysql/detail/prepared_statement_handle.h
* Move the code for sqlpp::mysql::detail::result_handle to include/sqlpp11/mysql/detail/result_handle.h
* Rename sqlpp::mysql::detail::connection_handle_t -> sqlpp::mysql::detail::connection_handle
* Rename sqlpp::mysql::serializer_t -> sqlpp::mysql::context_t
* Add const qualifiers to sqlpp::mysql::context_t::escape() and its parameter.
* Rename class/struct types, variables and functions from CamelCase to snake_case.
* Remove a superfluous function that forwards the call to mysql_close().
This commit is contained in:
MeanSquaredError
2023-08-05 10:18:51 +03:00
committed by GitHub
parent 3c598cd0b2
commit 490259ee69
9 changed files with 321 additions and 211 deletions

View File

@@ -60,7 +60,7 @@ namespace
}
sqlpp::mysql::connection connection{config};
sqlpp::mysql::serializer_t printer{connection};
sqlpp::mysql::context_t printer{connection};
const auto result = serialize(expr, printer).str();