Class PostgresConnectionString
A helper class for encapsulating a connection string to a Postgres server in an object. Internally the NpgsqlConnectionStringBuilder is used to access the values of the given connection string.
Inheritance
PostgresConnectionString
Implements
Inherited Members
Namespace: ETLBox.Postgres
Assembly: ETLBox.Postgres.dll
Syntax
public class PostgresConnectionString : DbConnectionString<PostgresConnectionString, NpgsqlConnectionStringBuilder>, IDbConnectionStringConstructors
PostgresConnectionString()
Declaration
public PostgresConnectionString()PostgresConnectionString(string)
Declaration
public PostgresConnectionString(string value)Parameters
| Type | Name | Description |
|---|---|---|
| string | value |
Properties
DbName
The database name
Declaration
public override string DbName { get; set; }Property Value
| Type | Description |
|---|---|
| string |
Overrides
ETLBox.DbConnectionString<ETLBox.Postgres.PostgresConnectionString, Npgsql.NpgsqlConnectionStringBuilder>.DbName
DbNameKeyword
The keyword used in the connection string to identify a database
Declaration
protected override string DbNameKeyword { get; }Property Value
| Type | Description |
|---|---|
| string |
Overrides
ETLBox.DbConnectionString<ETLBox.Postgres.PostgresConnectionString, Npgsql.NpgsqlConnectionStringBuilder>.DbNameKeyword
MasterDbName
The name of the master database (if applicable)
Declaration
public override string MasterDbName { get; }Property Value
| Type | Description |
|---|---|
| string |
Overrides
ETLBox.DbConnectionString<ETLBox.Postgres.PostgresConnectionString, Npgsql.NpgsqlConnectionStringBuilder>.MasterDbName
Operators
implicit operator PostgresConnectionString(string)
Declaration
public static implicit operator PostgresConnectionString(string value)Parameters
| Type | Name | Description |
|---|---|---|
| string | value |
Returns
| Type | Description |
|---|---|
| PostgresConnectionString |