ParseDTSQuery takes a string of TSQuery and returns a DTSQuery value.
(s string)
| 4374 | |
| 4375 | // ParseDTSQuery takes a string of TSQuery and returns a DTSQuery value. |
| 4376 | func ParseDTSQuery(s string) (Datum, error) { |
| 4377 | v, err := tsearch.ParseTSQuery(s) |
| 4378 | if err != nil { |
| 4379 | return nil, pgerror.Wrapf(err, pgcode.Syntax, "could not parse tsquery") |
| 4380 | } |
| 4381 | return NewDTSQuery(v), nil |
| 4382 | } |
| 4383 | |
| 4384 | // DTSVector is the tsvector Datum. |
| 4385 | type DTSVector struct { |
no test coverage detected
searching dependent graphs…