private static string Connection { get; set; }
private static string SYNCSTR { get; set; }
private static void LoadDonations()
{
Connection = BuildConnectionString();
SYNCSTR = BuildSyncQuery();
}
private static string BuildConnectionString()
{
return string.Join(";",
$"Host={Main.DonateSettings.Server}",
$"User={Main.DonateSettings.User}",
$"Password={Main.DonateSettings.Password}",
$"Database={Main.DonateSettings.DataBase}",
"SslMode=None"
);
}
private static string BuildSyncQuery()
{
return $"select * from completed where srv={Main.ServerNumber}";
}