Table of Contents

Class NpgsqlTsVector

Namespace
NpgsqlTypes
Assembly
Npgsql.dll

Represents a PostgreSQL tsvector.

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

Constructors

NpgsqlTsVector(List<Lexeme>)

Constructs an NpgsqlTsVector from a list of lexemes. This also sorts and remove duplicates.

public NpgsqlTsVector(List<NpgsqlTsVector.Lexeme> lexemes)

Parameters

lexemes List<NpgsqlTsVector.Lexeme>

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

GetEnumerator()

Returns an enumerator.

public IEnumerator<NpgsqlTsVector.Lexeme> GetEnumerator()

Returns

IEnumerator<NpgsqlTsVector.Lexeme>

Parse(string)

Parses a tsvector in PostgreSQL's text format.

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