MCPcopy Create free account
hub / github.com/apache/cloudberry / PLyString_FromJsonbValue

Function PLyString_FromJsonbValue

contrib/jsonb_plpython/jsonb_plpython.c:72–78  ·  view source on GitHub ↗

* PLyString_FromJsonbValue * * Transform string JsonbValue to Python string. */

Source from the content-addressed store, hash-verified

70 * Transform string JsonbValue to Python string.
71 */
72static PyObject *
73PLyString_FromJsonbValue(JsonbValue *jbv)
74{
75 Assert(jbv->type == jbvString);
76
77 return PyString_FromStringAndSize(jbv->val.string.val, jbv->val.string.len);
78}
79
80/*
81 * PLyString_ToJsonbValue

Callers 2

PLyObject_FromJsonbValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected