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

Method JSONFieldText

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

JSONFieldText, JSONFieldEquals and JSONFieldOrder read an item field value by its JSON type, identically on both dialects (BUG-3221; the rule is in dialect_fieldvalue.go). Use them, not JSONExtractText, wherever a field value is compared, counted, grouped, sorted or shown.

(column, key string)

Source from the content-addressed store, hash-verified

43 // rule is in dialect_fieldvalue.go). Use them, not JSONExtractText,
44 // wherever a field value is compared, counted, grouped, sorted or shown.
45 JSONFieldText(column, key string) string
46 JSONFieldEquals(column, key, arg string) (string, []any)
47 // JSONFieldEqualsParts is JSONFieldEquals in two halves: the STRING
48 // branch, which leads with the bare extract compared to the argument so an

Callers 11

reportWIPMethod · 0.65
ListCollectionsQMethod · 0.65
orderByMethod · 0.65
getItemLinkQMethod · 0.65
GetItemLinksMethod · 0.65
GetParentForItemMethod · 0.65
buildChildrenDoneExprMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected