From f188d54236256e3b820425a98d7d06e422673a97 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 13 Oct 2025 14:56:50 -0300 Subject: beginning of postgres driver + overall tweaks --- config.cfg | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'config.cfg') 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 -- cgit v1.2.3