@@ -21,7 +21,7 @@ public static class Config
2121 /// <summary>
2222 /// The name of the database to connect to in order to conenct to (defaults to `postgres`).
2323 /// </summary>
24- public static string ? Database { get ; set ; } = __config . Get ( "database" ) ?? Utilities . GetEnv ( "PGDATABASE" ) ?? "postgres" ;
24+ public static string ? Database { get ; set ; } = __config . Get ( "database" ) ;
2525
2626 /// <summary>
2727 /// Database username associated to the connected user (for user name maps)
@@ -36,7 +36,7 @@ public static class Config
3636 /// <summary>
3737 /// Name of PostgreSQL server address to connect to
3838 /// </summary>
39- public static string ? Host { get ; set ; } = __config . Get ( "host" ) ?? Utilities . GetEnv ( "PGHOST" ) ;
39+ public static string ? Host { get ; set ; } = __config . Get ( "host" ) ;
4040
4141 /// <summary>
4242 /// Maximum number of connections to establish to the database. Zero means unlimited.
@@ -46,12 +46,12 @@ public static class Config
4646 /// <summary>
4747 /// Password to be used if the PostgreSQL server demands password authentication
4848 /// </summary>
49- public static string ? Password { get ; set ; } = __config . Get ( "password" ) ?? Utilities . GetEnv ( "PGPASSWORD" ) ;
49+ public static string ? Password { get ; set ; } = __config . Get ( "password" ) ;
5050
5151 /// <summary>
5252 /// The PostgreSQL port number to connect to at the server host, or socket file name extension for Unix-domain connections
5353 /// </summary>
54- public static int ? Port { get ; set ; } = __config . GetInt32 ( "port" ) ?? Utilities . GetEnvInt32 ( "PGPORT" ) ?? 5432 ;
54+ public static int ? Port { get ; set ; } = __config . GetInt32 ( "port" ) ;
5555
5656 public static string ? Scheme { get ; set ; } = __config . Get ( "scheme" ) ;
5757
@@ -77,7 +77,7 @@ public static class Config
7777 /// <summary>
7878 /// PostgreSQL user name to connect as
7979 /// </summary>
80- public static string ? Username { get ; set ; } = __config . Get ( "username" ) ?? Utilities . GetEnv ( "PGUSER" ) ?? "postgres" ;
80+ public static string ? Username { get ; set ; } = __config . Get ( "username" ) ;
8181
8282 public static class Types
8383 {
0 commit comments