MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / preprocessForContains

Method preprocessForContains

pkg/util/json/contains.go:146–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func (j jsonObject) preprocessForContains() (containsable, error) {
147 preprocessed := make(containsableObject, len(j))
148
149 for i := range preprocessed {
150 preprocessed[i].k = j[i].k
151 v, err := j[i].v.preprocessForContains()
152 if err != nil {
153 return nil, err
154 }
155 preprocessed[i].v = v
156 }
157
158 return preprocessed, nil
159}
160
161func (j containsableScalar) contains(other containsable) (bool, error) {
162 if o, ok := other.(containsableScalar); ok {

Callers

nothing calls this directly

Calls 1

preprocessForContainsMethod · 0.65

Tested by

no test coverage detected