mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-06 05:00:37 -06:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user