Table of Contents

Class NpgsqlTsVector

Namespace
NpgsqlTypes
Assembly
Npgsql.dll

Represents a PostgreSQL tsvector.

public sealed class NpgsqlTsVector : IEnumerable<NpgsqlTsVector.Lexeme>, IEnumerable, IEquatable<NpgsqlTsVector>
Inheritance
NpgsqlTsVector
Implements
Inherited Members

Properties

Count

Gets the number of lexemes.

public int Count { get; }

Property Value

int

this[int]

Returns the lexeme at a specific index

public NpgsqlTsVector.Lexeme this[int index] { get; }

Parameters

index int

Property Value

NpgsqlTsVector.Lexeme

Methods

Equals(NpgsqlTsVector?)

public bool Equals(NpgsqlTsVector? other)

Parameters

other NpgsqlTsVector

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetEnumerator()

Returns an enumerator.

public IEnumerator<NpgsqlTsVector.Lexeme> GetEnumerator()

Returns

IEnumerator<NpgsqlTsVector.Lexeme>

GetHashCode()

public override int GetHashCode()

Returns

int

Parse(string)

Parses a tsvector in PostgreSQL's text format.

[Obsolete("Client-side parsing of NpgsqlTsVector is unreliable and cannot fully duplicate the PostgreSQL logic. Use PG functions instead (e.g. to_tsvector)")]
public static NpgsqlTsVector Parse(string value)

Parameters

value string

Returns

NpgsqlTsVector

ToString()

Gets a string representation in PostgreSQL's format.

public override string ToString()

Returns

string