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>
Constructors
Section titled “Constructors”PgTsConfig(uint)
Section titled “PgTsConfig(uint)”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.
Properties
Section titled “Properties”Current
Section titled “Current”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:
- PgException: The setting names no configuration.
The configuration’s catalog OID.
public uint Oid { get; init; }Value: uint
Methods
Section titled “Methods”Deconstruct(out uint)
Section titled “Deconstruct(out uint)”public void Deconstruct(out uint Oid)Parameters:
Oid — uint
Equals(PgTsConfig)
Section titled “Equals(PgTsConfig)”public bool Equals(PgTsConfig other)Parameters:
other — PgTsConfig
Returns: bool
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters:
obj — object
Returns: bool
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns: int
ToString()
Section titled “ToString()”public override string ToString()Returns: string
TryFind(string, out PgTsConfig)
Section titled “TryFind(string, out PgTsConfig)”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.
Operators
Section titled “Operators”operator ==(PgTsConfig, PgTsConfig)
Section titled “operator ==(PgTsConfig, PgTsConfig)”public static bool operator ==(PgTsConfig left, PgTsConfig right)Parameters:
left — PgTsConfig
right — PgTsConfig
Returns: bool
operator !=(PgTsConfig, PgTsConfig)
Section titled “operator !=(PgTsConfig, PgTsConfig)”public static bool operator !=(PgTsConfig left, PgTsConfig right)Parameters:
left — PgTsConfig
right — PgTsConfig
Returns: bool