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

Method JSONExtractText

internal/store/dialect.go:33–33  ·  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

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

Callers 15

reportWIPMethod · 0.65
ListCollectionsMethod · 0.65
SearchMethod · 0.65
appendSearchFiltersMethod · 0.65
searchFacetsMethod · 0.65
ListItemsMethod · 0.65
listItemsFTSMethod · 0.65
getItemLinkMethod · 0.65
GetItemLinksMethod · 0.65
GetParentForItemMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected