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

Method JSONExtractText

internal/store/dialect.go:34–34  ·  view source on GitHub ↗

JSONExtractText returns SQL to extract a text value from a JSON column. SQLite: json_extract(col, '$.key') PostgreSQL: col->>'key'

(column, key string)

Source from the content-addressed store, hash-verified

32 // SQLite: json_extract(col, '$.key')
33 // PostgreSQL: col->>'key'
34 JSONExtractText(column, key string) string
35
36 // JSONExtractPath returns SQL to extract a value at a dotted path from a JSON column.
37 // SQLite: json_extract(col, '$.path.to.key')

Callers 6

CheckAdditiveFieldsQMethod · 0.65
uniqueHolderQueryMethod · 0.65
appendFieldFiltersMethod · 0.65
itemOrderMethod · 0.65
fieldDayExprMethod · 0.65
completedExprMethod · 0.65

Implementers 2

sqliteDialectinternal/store/dialect.go
postgresDialectinternal/store/dialect.go

Calls

no outgoing calls

Tested by

no test coverage detected