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

Method JSONExtractText

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

Source from the content-addressed store, hash-verified

220}
221
222func (d *postgresDialect) JSONExtractText(column, key string) string {
223 return fmt.Sprintf("%s->>'%s'", column, key)
224}
225
226func (d *postgresDialect) JSONExtractPath(column, path string) string {
227 parts := strings.Split(path, ".")

Callers 1

TestPostgresDialectFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestPostgresDialectFunction · 0.76