mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-04 04:00:39 -06:00
Cleanup SQLite3 connector code (#514)
* Move the code for sqlpp::sqlite3::detail::prepared_statement_handle_t to include/sqlpp11/sqlite3/detail/prepared_statement_handle.h * Whitespace * Move the code for sqlpp::sqlite3::detail::connection_handle to include/sqlpp11/sqlite3/detail/connection_handle.h * Rename sqlpp::sqlite3::serializer_t -> sqlpp::sqlite3::context_t * Add const qualifiers to sqlpp::mysql::context_t::escape() and its parameter. * Change method argument types "const std::string" -> "const std::string&" * Remove a superfluous function that forwards the call to sqlite3_close(). * Move initialization of sqlpp::sqlite3::detail::prepared_statement_handle_t data members from the constructor into the member initialization list. * Rename method parameter from CamelCase to snake_case.
This commit is contained in:
@@ -51,7 +51,7 @@ namespace
|
||||
config.flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE;
|
||||
config.debug = true;
|
||||
sqlpp::sqlite3::connection connection{config};
|
||||
sqlpp::sqlite3::serializer_t printer{connection};
|
||||
sqlpp::sqlite3::context_t printer{connection};
|
||||
|
||||
const auto result = serialize(expr, printer).str();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user