diff options
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/postgresql_engine.hpp | 3 | ||||
-rw-r--r-- | src/database/sqlite3_engine.hpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/database/postgresql_engine.hpp b/src/database/postgresql_engine.hpp index f2dcec3..70215d4 100644 --- a/src/database/postgresql_engine.hpp +++ b/src/database/postgresql_engine.hpp @@ -45,12 +45,15 @@ private: #else +using namespace std::string_literals; + class PostgresqlEngine { public: static std::unique_ptr<DatabaseEngine> open(const std::string& string) { throw std::runtime_error("Cannot open postgresql database "s + string + ": biboumi is not compiled with libpq."); + return {}; } }; diff --git a/src/database/sqlite3_engine.hpp b/src/database/sqlite3_engine.hpp index 82d01c9..1b37e8c 100644 --- a/src/database/sqlite3_engine.hpp +++ b/src/database/sqlite3_engine.hpp @@ -42,12 +42,15 @@ private: #else +using namespace std::string_literals; + class Sqlite3Engine { public: static std::unique_ptr<DatabaseEngine> open(const std::string& string) { throw std::runtime_error("Cannot open sqlite3 database "s + string + ": biboumi is not compiled with sqlite3 lib."); + return {}; } }; |