ParseDTSVector takes a string of TSVector and returns a DTSVector value.
(s string)
| 4496 | |
| 4497 | // ParseDTSVector takes a string of TSVector and returns a DTSVector value. |
| 4498 | func 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. |
| 4507 | type DTuple struct { |
no test coverage detected
searching dependent graphs…