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

Method JSONExtractText

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

Source from the content-addressed store, hash-verified

269}
270
271func (d *postgresDialect) JSONExtractText(column, key string) string {
272 return fmt.Sprintf("%s->>'%s'", column, key)
273}
274
275func (d *postgresDialect) JSONExtractPath(column, path string) string {
276 parts := strings.Split(path, ".")

Callers 2

JSONFieldEqualsPartsMethod · 0.95
TestPostgresDialectFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestPostgresDialectFunction · 0.76