Table of Contents

Method Create

Namespace
MailFathom.Infrastructure.Persistence.Connections
Assembly
MailFathom.Infrastructure.dll

Create(string)

Creates a configuration from a supported name.

public static PostgresTextSearchConfiguration Create(string name)

Parameters

name string

The configuration name.

Returns

PostgresTextSearchConfiguration

The validated configuration.

Remarks

Comparison is ordinal and case-sensitive because PostgreSQL folds an unquoted identifier to lower case and these names are all lower case: accepting English here would mean writing a name into the schema that differs from the one an operator can look up in pg_ts_config.

Exceptions

ArgumentException

Thrown when name is not a supported configuration.