aboutsummaryrefslogtreecommitdiff
path: root/src/database_mariadb.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-10-19 19:17:37 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-10-19 19:17:37 -0300
commit0ff6217227ce551d6c91524c8e7fd37352e20490 (patch)
treefee2e9da746115fda57ca6123952d614afd283dd /src/database_mariadb.cc
parenteba55f8361fc36179e36bf8a3cea5067b5341e37 (diff)
downloadquerymanager-0ff6217227ce551d6c91524c8e7fd37352e20490.tar.gz
querymanager-0ff6217227ce551d6c91524c8e7fd37352e20490.zip
add include path for PostgreSQL + overall cleanup
Some distributions place libpq headers under /usr/include/postgresql which is why it's added to the include path. And even though we don't support it yet, the same happens with MariaDB, with headers being placed under /usr/include/mariadb.
Diffstat (limited to 'src/database_mariadb.cc')
-rw-r--r--src/database_mariadb.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/database_mariadb.cc b/src/database_mariadb.cc
new file mode 100644
index 0000000..121f676
--- /dev/null
+++ b/src/database_mariadb.cc
@@ -0,0 +1,10 @@
+#if DATABASE_MARIADB
+#include "querymanager.hh"
+
+// TODO(fusion): If we decide to implement MySQL, we should use MariaDB instead.
+// It is a better alternative overall, and targeting a single database system
+// should help us leverage its strongest features, which may not always be
+// supported by both.
+#error "MariaDB is not currently supported."
+
+#endif //DATABASE_MARIADB