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

Method pgwireEncoding

pkg/util/tsearch/tsquery.go:65–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func (o tsOperator) pgwireEncoding() byte {
66 switch o {
67 case not:
68 return 1
69 case and:
70 return 2
71 case or:
72 return 3
73 case followedby:
74 return 4
75 }
76 panic(errors.AssertionFailedf("no pgwire encoding for operator %d", o))
77}
78
79func (o tsOperator) String() string {
80 switch o {

Callers 2

encodeTSNodeMethod · 0.80
encodeTSNodePGBinaryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected