#include "postgres.h"
#include "plpy_elog.h"
#include "plpy_typeio.h"
#include "plpy_util.h"
#include "utils/fmgrprotos.h"
#include "utils/jsonb.h"
#include "utils/numeric.h"
Go to the source code of this file.
Definition at line 61 of file jsonb_plpython.c.
Definition at line 58 of file jsonb_plpython.c.
Definition at line 59 of file jsonb_plpython.c.
Definition at line 19 of file jsonb_plpython.c.
Definition at line 16 of file jsonb_plpython.c.
Definition at line 32 of file jsonb_plpython.c.
Definition at line 40 of file jsonb_plpython.c.
References AssertVariableIsOfType, load_external_function(), PLy_elog_impl(), PLy_elog_impl_p, PLyObject_AsString, PLyObject_AsString_p, PLyUnicode_FromStringAndSize, and PLyUnicode_FromStringAndSize_p.
Definition at line 477 of file jsonb_plpython.c.
References Assert(), decimal_constructor, ERROR, PG_GETARG_JSONB_P, PLy_elog, PLyObject_FromJsonbContainer(), PointerGetDatum(), and Jsonb::root.
"jsonb_plpython"
,
PG_VERSION
Definition at line 459 of file jsonb_plpython.c.
References JsonbValueToJsonb(), PG_GETARG_POINTER, PG_RETURN_POINTER, and PLyObject_ToJsonbValue().
Definition at line 265 of file jsonb_plpython.c.
References i, items, jbvString, sort-test::key, PG_END_TRY, PG_FINALLY, PG_TRY, PLyObject_ToJsonbValue(), PLyUnicode_ToJsonbValue(), pushJsonbValue(), JsonbValue::type, JsonbValue::val, value, WJB_BEGIN_OBJECT, WJB_END_OBJECT, and WJB_KEY.
Referenced by PLyObject_ToJsonbValue().
Definition at line 360 of file jsonb_plpython.c.
References CStringGetDatum(), DatumGetNumeric(), DirectFunctionCall3, ereport, errcode(), errmsg(), ERROR, Int32GetDatum(), InvalidOid, jbvNumeric, numeric_in(), numeric_is_inf(), numeric_is_nan(), ObjectIdGetDatum(), pfree(), PG_CATCH, PG_END_TRY, PG_TRY, PLyObject_AsString, str, JsonbValue::type, and JsonbValue::val.
Referenced by PLyObject_ToJsonbValue().
Definition at line 137 of file jsonb_plpython.c.
References elog, ERROR, JsonbIteratorInit(), JsonbIteratorNext(), sort-test::key, PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, PLyObject_FromJsonbValue(), PLyUnicode_FromJsonbValue(), JsonbValue::val, val, WJB_BEGIN_ARRAY, WJB_BEGIN_OBJECT, WJB_DONE, WJB_ELEM, WJB_END_ARRAY, WJB_KEY, and WJB_VALUE.
Referenced by jsonb_to_plpython(), and PLyObject_FromJsonbValue().
Definition at line 95 of file jsonb_plpython.c.
References DatumGetCString(), decimal_constructor, DirectFunctionCall1, elog, ERROR, jbvBinary, jbvBool, jbvNull, jbvNumeric, jbvString, numeric_out(), NumericGetDatum(), PLyObject_FromJsonbContainer(), PLyUnicode_FromJsonbValue(), str, JsonbValue::type, and JsonbValue::val.
Referenced by PLyObject_FromJsonbContainer().
Definition at line 410 of file jsonb_plpython.c.
References ereport, errcode(), errmsg(), ERROR, jbvBool, jbvNull, palloc(), PLyMapping_ToJsonbValue(), PLyNumber_ToJsonbValue(), PLyObject_AsString, PLySequence_ToJsonbValue(), PLyUnicode_ToJsonbValue(), pushJsonbValue(), JsonbValue::type, JsonbValue::val, WJB_ELEM, and WJB_VALUE.
Referenced by plpython_to_jsonb(), PLyMapping_ToJsonbValue(), and PLySequence_ToJsonbValue().
Definition at line 322 of file jsonb_plpython.c.
References Assert(), i, PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, PLyObject_ToJsonbValue(), pushJsonbValue(), value, WJB_BEGIN_ARRAY, and WJB_END_ARRAY.
Referenced by PLyObject_ToJsonbValue().
Definition at line 69 of file jsonb_plpython.c.
References Assert(), jbvString, PLyUnicode_FromStringAndSize, JsonbValue::type, and JsonbValue::val.
Referenced by PLyObject_FromJsonbContainer(), and PLyObject_FromJsonbValue().
Definition at line 82 of file jsonb_plpython.c.
References jbvString, PLyObject_AsString, JsonbValue::type, and JsonbValue::val.
Referenced by PLyMapping_ToJsonbValue(), and PLyObject_ToJsonbValue().
Definition at line 26 of file jsonb_plpython.c.
Referenced by jsonb_to_plpython(), PLyDecimal_FromNumeric(), and PLyObject_FromJsonbValue().
Definition at line 20 of file jsonb_plpython.c.
Referenced by _PG_init().
Definition at line 17 of file jsonb_plpython.c.
Referenced by _PG_init().
Definition at line 34 of file jsonb_plpython.c.
Referenced by _PG_init().