MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / JSONExtractText

Method JSONExtractText

internal/store/dialect.go:290–292  ·  view source on GitHub ↗
(column, key string)

Source from the content-addressed store, hash-verified

288}
289
290func (d *postgresDialect) JSONExtractText(column, key string) string {
291 return fmt.Sprintf("%s->>'%s'", column, key)
292}
293
294func (d *postgresDialect) JSONExtractPath(column, path string) string {
295 parts := strings.Split(path, ".")

Callers 2

JSONFieldEqualsPartsMethod · 0.95
TestPostgresDialectFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestPostgresDialectFunction · 0.76