MCPcopy Create free account
hub / github.com/cloudflare/wildebeest / jsonExtract

Function jsonExtract

backend/src/database/d1.ts:5–7  ·  view source on GitHub ↗
(obj: string, prop: string)

Source from the content-addressed store, hash-verified

3
4const qb: QueryBuilder = {
5 jsonExtract(obj: string, prop: string): string {
6 return `json_extract(${obj}, '$.${prop}')`
7 },
8
9 jsonExtractIsNull(obj: string, prop: string): string {
10 return `${qb.jsonExtract(obj, prop)} IS NULL`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected