aboutsummaryrefslogtreecommitdiff
path: root/config.cfg
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-10-13 14:56:50 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-10-13 14:56:50 -0300
commitf188d54236256e3b820425a98d7d06e422673a97 (patch)
tree49de4d219606d0457cac4d2b73e4f0f9aa22b3f3 /config.cfg
parent46c653293381dcc1188013d3e2c3f7587a199dc4 (diff)
downloadquerymanager-f188d54236256e3b820425a98d7d06e422673a97.tar.gz
querymanager-f188d54236256e3b820425a98d7d06e422673a97.zip
beginning of postgres driver + overall tweaks
Diffstat (limited to 'config.cfg')
-rw-r--r--config.cfg35
1 files changed, 21 insertions, 14 deletions
diff --git a/config.cfg b/config.cfg
index 076c535..e2c77d3 100644
--- a/config.cfg
+++ b/config.cfg
@@ -3,27 +3,34 @@ MaxCachedHostNames = 100
HostNameExpireTime = 30m
# SQLite Config
-SQLite.File = "tibia.db"
-SQLite.MaxCachedStatements = 100
+#SQLite.File = "tibia.db"
+#SQLite.MaxCachedStatements = 100
# PostgreSQL Config
-#PostgreSQL.UnixSocket = ""
-#PostgreSQL.Host = "localhost"
-#PostgreSQL.Port = 5432
-#PostgreSQL.User = "postgres"
+# NOTE(fusion): These options are passed directly to `PQconnectdbParams`.
+# Empty values are ignored, meaning their defaults will be used instead.
+# For more information see:
+# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
+PostgreSQL.Host = "localhost"
+PostgreSQL.Port = "5432"
+PostgreSQL.DBName = "tibia"
+PostgreSQL.User = "tibia"
#PostgreSQL.Password = ""
-#PostgreSQL.Database = "tibia"
-#PostgreSQL.TLS = true
-#PostgreSQL.MaxCachedStatements = 100
+PostgreSQL.Password = "password"
+PostgreSQL.ConnectTimeout = ""
+PostgreSQL.ClientEncoding = "UTF8"
+PostgreSQL.ApplicationName = "QueryManager"
+PostgreSQL.SSLMode = ""
+PostgreSQL.SSLRootCert = ""
+PostgreSQL.MaxCachedStatements = 100
# MySQL/MariaDB Config
-#MySQL.UnixSocket = ""
#MySQL.Host = "localhost"
-#MySQL.Port = 3306
-#MySQL.User = "mysql"
+#MySQL.Port = "3306"
+#MySQL.DBName = "tibia"
+#MySQL.User = "tibia"
#MySQL.Password = ""
-#MySQL.Database = "tibia"
-#MySQL.TLS = true
+#MySQL.UnixSocket = ""
#MySQL.MaxCachedStatements = 100
# Connection Config