MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / ParseDTSVector

Function ParseDTSVector

pkg/sql/sem/tree/datum.go:4498–4504  ·  view source on GitHub ↗

ParseDTSVector takes a string of TSVector and returns a DTSVector value.

(s string)

Source from the content-addressed store, hash-verified

4496
4497// ParseDTSVector takes a string of TSVector and returns a DTSVector value.
4498func ParseDTSVector(s string) (Datum, error) {
4499 v, err := tsearch.ParseTSVector(s)
4500 if err != nil {
4501 return nil, pgerror.Wrapf(err, pgcode.Syntax, "could not parse tsvector")
4502 }
4503 return NewDTSVector(v), nil
4504}
4505
4506// DTuple is the tuple Datum.
4507type DTuple struct {

Callers 1

ParseAndRequireStringFunction · 0.85

Calls 3

ParseTSVectorFunction · 0.92
WrapfFunction · 0.92
NewDTSVectorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…