#include #include static sqlpp::postgresql::connection_pool g_db_pool{}; thread_local db_connection g_dbc{g_db_pool}; void db_global_init(std::shared_ptr config) { g_db_pool.initialize(config, 5); }