mirror of
https://github.com/postgres/postgres.git
synced 2026-01-29 12:02:15 +03:00
Some refactoring to export json(b) conversion functions
This is to export datum_to_json(), datum_to_jsonb(), and jsonb_from_cstring(), though the last one is exported as jsonb_from_text(). A subsequent commit to add new SQL/JSON constructor functions will need them for calling from the executor. Discussion: https://postgr.es/m/20230720160252.ldk7jy6jqclxfxkq%40alvherre.pgsql
This commit is contained in:
@@ -82,5 +82,10 @@ typedef enum
|
||||
|
||||
extern void json_categorize_type(Oid typoid, bool is_jsonb,
|
||||
JsonTypeCategory *tcategory, Oid *outfuncoid);
|
||||
extern Datum datum_to_json(Datum val, JsonTypeCategory tcategory,
|
||||
Oid outfuncoid);
|
||||
extern Datum datum_to_jsonb(Datum val, JsonTypeCategory tcategory,
|
||||
Oid outfuncoid);
|
||||
extern Datum jsonb_from_text(text *js);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user