MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / jsonb_get_path_stringify

Function jsonb_get_path_stringify

src/expr/src/scalar/func.rs:1730–1737  ·  view source on GitHub ↗
(
    a: JsonbRef<'a>,
    b: Array<'a>,
    temp_storage: &'a RowArena,
)

Source from the content-addressed store, hash-verified

1728
1729#[sqlfunc(sqlname = "#>>", is_infix_op = true)]
1730fn jsonb_get_path_stringify<'a>(
1731 a: JsonbRef<'a>,
1732 b: Array<'a>,
1733 temp_storage: &'a RowArena,
1734) -> Option<&'a str> {
1735 let json = jsonb_get_path(a, b)?;
1736 jsonb_stringify(json.into_datum(), temp_storage)
1737}
1738
1739#[sqlfunc(is_infix_op = true, sqlname = "?")]
1740fn jsonb_contains_string<'a>(a: JsonbRef<'a>, k: &str) -> bool {

Callers

nothing calls this directly

Calls 3

jsonb_get_pathFunction · 0.85
jsonb_stringifyFunction · 0.85
into_datumMethod · 0.45

Tested by

no test coverage detected