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

Function jsonb_get_string_stringify

src/expr/src/scalar/func.rs:1691–1698  ·  view source on GitHub ↗
(
    a: JsonbRef<'a>,
    k: &str,
    temp_storage: &'a RowArena,
)

Source from the content-addressed store, hash-verified

1689
1690#[sqlfunc(sqlname = "->>", is_infix_op = true)]
1691fn jsonb_get_string_stringify<'a>(
1692 a: JsonbRef<'a>,
1693 k: &str,
1694 temp_storage: &'a RowArena,
1695) -> Option<&'a str> {
1696 let v = jsonb_get_string(a, k)?;
1697 jsonb_stringify(v.into_datum(), temp_storage)
1698}
1699
1700#[sqlfunc(sqlname = "#>", is_infix_op = true)]
1701fn jsonb_get_path<'a>(mut json: JsonbRef<'a>, b: Array<'a>) -> Option<JsonbRef<'a>> {

Callers

nothing calls this directly

Calls 3

jsonb_get_stringFunction · 0.85
jsonb_stringifyFunction · 0.85
into_datumMethod · 0.45

Tested by

no test coverage detected