MCPcopy Create free account
hub / github.com/dolthub/doltgresql / preprocessForContains

Method preprocessForContains

postgres/parser/json/contains.go:160–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (j jsonObject) preprocessForContains() (containsable, error) {
161 preprocessed := make(containsableObject, len(j))
162
163 for i := range preprocessed {
164 preprocessed[i].k = j[i].k
165 v, err := j[i].v.preprocessForContains()
166 if err != nil {
167 return nil, err
168 }
169 preprocessed[i].v = v
170 }
171
172 return preprocessed, nil
173}
174
175func (j containsableScalar) contains(other containsable) (bool, error) {
176 if o, ok := other.(containsableScalar); ok {

Callers

nothing calls this directly

Calls 1

preprocessForContainsMethod · 0.65

Tested by

no test coverage detected