Add redshift (and DigitalOcean Managed DB) compatibility and start using a string building to create the sql connection string

This commit is contained in:
runebaas 2020-06-20 03:05:51 +02:00
parent a4b914d576
commit d9f8e9a80e
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
4 changed files with 28 additions and 3 deletions

View file

@ -49,6 +49,9 @@ namespace Geekbot.net.Lib
[Option("db-trust-cert", HelpText = "Trust the database certificate, regardless if it is valid (default: false) (env: DB_TRUST_CERT)")]
public bool DbTrustCert { get; set; } = ParamFallback("DB_TRUST_CERT", false);
[Option("db-redshift-compat", HelpText = "Enable compatibility for AWS Redshift and DigitalOcean Managed Database (default: false) (env: DB_REDSHIFT_COMPAT)")]
public bool DbRedshiftCompatibility { get; set; } = ParamFallback("DB_REDSHIFT_COMPAT", false);
// Logging
[Option("db-logging", HelpText = "Enable database logging (default: false) (env: DB_LOGGING)")]