#include <MariaDBLibrary.h>
Definition at line 47 of file MariaDBLibrary.h.
◆ MariaDBLibrary() [1/2]
| database::mariadb::MariaDBLibrary::MariaDBLibrary |
( |
| ) |
|
|
delete |
◆ MariaDBLibrary() [2/2]
| database::mariadb::MariaDBLibrary::MariaDBLibrary |
( |
const MariaDBLibrary & | | ) |
|
|
delete |
◆ ensureInitialized()
| void database::mariadb::MariaDBLibrary::ensureInitialized |
( |
| ) |
|
|
static |
Definition at line 56 of file MariaDBLibrary.cpp.
56 {
57 static std::once_flag initOnce;
58
59 std::call_once(initOnce, []() {
60 const int rc = mysql_library_init(0, nullptr, nullptr);
61 if (rc != 0) {
62 LOG(ERROR) << "MariaDB: mysql_library_init failed (rc=" << rc << ")";
63
64 }
65
66 std::atexit([]() {
67 mysql_library_end();
68 });
69 });
70 }
Referenced by database::mariadb::MariaDBConnection::MariaDBConnection().
◆ operator=()
The documentation for this class was generated from the following files: