sqlpp11
sqlpp11 copied to clipboard
Update connector documentation
Some old documentation here: https://github.com/rbock/sqlpp11/blob/main/docs/Database.md
How create database object? Guides assume I already installed everything and know everything 🥇
The connector-specific tests are a good source of information, see for instance
https://github.com/rbock/sqlpp11/blob/main/tests/mysql/usage/Sample.cpp
sqlpp::mysql::global_library_init();
auto config = std::make_shared<mysql::connection_config>();
config->user = "root";
config->database = "sqlpp_mysql";
config->debug = true;
config->connect_timeout_seconds = 5;
mysql::connection db(config); // This can throw
Hope this helps?
Best, Roland