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

Function jsonb_get_int64_stringify

src/expr/src/scalar/func.rs:1674–1681  ·  view source on GitHub ↗
(
    a: JsonbRef<'a>,
    i: i64,
    temp_storage: &'a RowArena,
)

Source from the content-addressed store, hash-verified

1672
1673#[sqlfunc(sqlname = "->>", is_infix_op = true)]
1674fn jsonb_get_int64_stringify<'a>(
1675 a: JsonbRef<'a>,
1676 i: i64,
1677 temp_storage: &'a RowArena,
1678) -> Option<&'a str> {
1679 let json = jsonb_get_int64(a, i)?;
1680 jsonb_stringify(json.into_datum(), temp_storage)
1681}
1682
1683#[sqlfunc(sqlname = "->", is_infix_op = true)]
1684fn jsonb_get_string<'a>(a: JsonbRef<'a>, k: &str) -> Option<JsonbRef<'a>> {

Callers

nothing calls this directly

Calls 3

jsonb_get_int64Function · 0.85
jsonb_stringifyFunction · 0.85
into_datumMethod · 0.45

Tested by

no test coverage detected