2012-01-31 17:48:23 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* json.h
|
|
|
|
* Declarations for JSON data type support.
|
|
|
|
*
|
|
|
|
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
|
|
|
* src/include/utils/json.h
|
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef JSON_H
|
|
|
|
#define JSON_H
|
|
|
|
|
|
|
|
#include "fmgr.h"
|
|
|
|
|
|
|
|
extern Datum json_in(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum json_out(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum json_recv(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum json_send(PG_FUNCTION_ARGS);
|
2012-02-03 18:11:16 +01:00
|
|
|
extern Datum array_to_json(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum array_to_json_pretty(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum row_to_json(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum row_to_json_pretty(PG_FUNCTION_ARGS);
|
|
|
|
extern void escape_json(StringInfo buf, const char *str);
|
2012-01-31 17:48:23 +01:00
|
|
|
|
|
|
|
#endif /* XML_H */
|