Skip to content

PostgresDevelopmentOptions

Namespace: Ankus.PgConfig

Assembly: Ankus.PgConfig.dll

Configures a local development server started by Ankus.

public sealed class PostgresDevelopmentOptions

Inheritance: object

public PostgresDevelopmentOptions()

Gets the TCP port, or null to use the Ankus home’s configured base plus the PostgreSQL major version. An unconfigured home uses a base of 28800.

public int? Port { get; init; }

Value: int?

Gets PostgreSQL settings applied on this start. Values are literal configuration values, without surrounding quotes. Data, authentication, log routing, and connection locations are managed by Ankus.

public IReadOnlyDictionary<string, string> Settings { get; init; }

Value: IReadOnlyDictionary<string, string>

Gets the maximum number of seconds to wait for server startup, from 1 through 600.

public int TimeoutSeconds { get; init; }

Value: int

Gets whether to run PostgreSQL under Valgrind Memcheck from PATH, writing diagnostics to the server log. Requires a supported Unix platform and an installed Valgrind. An already running server keeps its current mode.

public bool UseValgrind { get; init; }

Value: bool