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

Method JSONSet

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

Source from the content-addressed store, hash-verified

278}
279
280func (d *postgresDialect) JSONSet(column, key string) string {
281 return fmt.Sprintf("jsonb_set(COALESCE(%s, '{}')::jsonb, '{%s}', to_jsonb(?::text))", column, key)
282}
283
284func (d *postgresDialect) JSONRemove(column, key string) string {
285 return fmt.Sprintf("(%s::jsonb - '%s')", column, key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected