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
this[int]
Returns the lexeme at a specific index
public NpgsqlTsVector.Lexeme this[int index] { get; }
Parameters
index
int
Property Value
Methods
Equals(NpgsqlTsVector?)
public bool Equals(NpgsqlTsVector? other)
Parameters
other
NpgsqlTsVector
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetEnumerator()
Returns an enumerator.
public IEnumerator<NpgsqlTsVector.Lexeme> GetEnumerator()
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
ToString()
Gets a string representation in PostgreSQL's format.
public override string ToString()