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
this[int]
Returns the lexeme at a specific index
public NpgsqlTsVector.Lexeme this[int index] { get; }
Parameters
index
int
Property Value
Methods
GetEnumerator()
Returns an enumerator.
public IEnumerator<NpgsqlTsVector.Lexeme> GetEnumerator()
Returns
Parse(string)
Parses a tsvector in PostgreSQL's text format.
public static NpgsqlTsVector Parse(string value)
Parameters
value
string
Returns
ToString()
Gets a string representation in PostgreSQL's format.
public override string ToString()