Skip to content

PgTsConfig

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Identifies a text search configuration, a regconfig, which decides how documents and queries become lexemes.

public readonly struct PgTsConfig : IEquatable<PgTsConfig>

Implements: IEquatable<PgTsConfig>

Identifies a text search configuration, a regconfig, which decides how documents and queries become lexemes.

public PgTsConfig(uint Oid)

Parameters:

Oid — uint

The configuration’s catalog OID.

Gets the configuration that the default_text_search_config setting names. PostgreSQL raises an error if it names none.

public static PgTsConfig Current { get; }

Value: PgTsConfig

Exceptions:

The configuration’s catalog OID.

public uint Oid { get; init; }

Value: uint

public void Deconstruct(out uint Oid)

Parameters:

Oid — uint

public bool Equals(PgTsConfig other)

Parameters:

other — PgTsConfig

Returns: bool

public override bool Equals(object obj)

Parameters:

obj — object

Returns: bool

public override int GetHashCode()

Returns: int

public override string ToString()

Returns: string

Looks up a configuration by its possibly schema-qualified name, as the regconfig cast does, as pgrx’s TsConfig::by_name does.

public static bool TryFind(string name, out PgTsConfig config)

Parameters:

name — string

The configuration’s name, such as english or pg_catalog.simple.

config — PgTsConfig

The configuration, when found.

Returns: bool

Whether the name names a configuration. A malformed name, one the database encoding can’t hold, -, or a string of digits, which the cast reads as an OID, names none.

public static bool operator ==(PgTsConfig left, PgTsConfig right)

Parameters:

left — PgTsConfig

right — PgTsConfig

Returns: bool

public static bool operator !=(PgTsConfig left, PgTsConfig right)

Parameters:

left — PgTsConfig

right — PgTsConfig

Returns: bool