From 0a82003d870b901b09e25ec29c432af034b1e255 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 16 Oct 2025 01:53:03 -0300 Subject: allow all database config options to be loaded, even when not used --- src/querymanager.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/querymanager.hh') diff --git a/src/querymanager.hh b/src/querymanager.hh index 220f69a..1d4b36b 100644 --- a/src/querymanager.hh +++ b/src/querymanager.hh @@ -95,13 +95,13 @@ struct TConfig{ int MaxCachedHostNames; int HostNameExpireTime; - // Database Config -#if DATABASE_SQLITE + // SQLite Config struct{ char File[100]; int MaxCachedStatements; } SQLite; -#elif DATABASE_POSTGRESQL + + // PostgreSQL Config struct{ // NOTE(fusion): Most of these are stored as strings because that is the // format libpq expects for connection parameters. @@ -117,7 +117,8 @@ struct TConfig{ char SSLRootCert[100]; int MaxCachedStatements; } PostgreSQL; -#elif DATABASE_MYSQL + + // MySQL/MariaDB Config struct{ char Host[100]; char Port[30]; @@ -127,7 +128,6 @@ struct TConfig{ char UnixSocket[100]; int MaxCachedStatements; } MySQL; -#endif // Connection Config int QueryManagerPort; -- cgit v1.2.3