~ubuntu-branches/debian/sid/postgresql-9.3/sid

« back to all changes in this revision

Viewing changes to src/include/utils/json.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 05:39:52 UTC
  • Revision ID: package-import@ubuntu.com-20130508053952-1j7uilp7mjtrvq8q
Tags: upstream-9.3~beta1
ImportĀ upstreamĀ versionĀ 9.3~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * json.h
 
4
 *        Declarations for JSON data type support.
 
5
 *
 
6
 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
 
7
 * Portions Copyright (c) 1994, Regents of the University of California
 
8
 *
 
9
 * src/include/utils/json.h
 
10
 *
 
11
 *-------------------------------------------------------------------------
 
12
 */
 
13
 
 
14
#ifndef JSON_H
 
15
#define JSON_H
 
16
 
 
17
#include "fmgr.h"
 
18
#include "lib/stringinfo.h"
 
19
 
 
20
/* functions in json.c */
 
21
extern Datum json_in(PG_FUNCTION_ARGS);
 
22
extern Datum json_out(PG_FUNCTION_ARGS);
 
23
extern Datum json_recv(PG_FUNCTION_ARGS);
 
24
extern Datum json_send(PG_FUNCTION_ARGS);
 
25
extern Datum array_to_json(PG_FUNCTION_ARGS);
 
26
extern Datum array_to_json_pretty(PG_FUNCTION_ARGS);
 
27
extern Datum row_to_json(PG_FUNCTION_ARGS);
 
28
extern Datum row_to_json_pretty(PG_FUNCTION_ARGS);
 
29
extern Datum to_json(PG_FUNCTION_ARGS);
 
30
 
 
31
extern Datum json_agg_transfn(PG_FUNCTION_ARGS);
 
32
extern Datum json_agg_finalfn(PG_FUNCTION_ARGS);
 
33
 
 
34
extern void escape_json(StringInfo buf, const char *str);
 
35
 
 
36
/* functions in jsonfuncs.c */
 
37
extern Datum json_object_field(PG_FUNCTION_ARGS);
 
38
extern Datum json_object_field_text(PG_FUNCTION_ARGS);
 
39
extern Datum json_array_element(PG_FUNCTION_ARGS);
 
40
extern Datum json_array_element_text(PG_FUNCTION_ARGS);
 
41
extern Datum json_extract_path(PG_FUNCTION_ARGS);
 
42
extern Datum json_extract_path_text(PG_FUNCTION_ARGS);
 
43
extern Datum json_object_keys(PG_FUNCTION_ARGS);
 
44
extern Datum json_array_length(PG_FUNCTION_ARGS);
 
45
extern Datum json_each(PG_FUNCTION_ARGS);
 
46
extern Datum json_each_text(PG_FUNCTION_ARGS);
 
47
extern Datum json_array_elements(PG_FUNCTION_ARGS);
 
48
extern Datum json_populate_record(PG_FUNCTION_ARGS);
 
49
extern Datum json_populate_recordset(PG_FUNCTION_ARGS);
 
50
 
 
51
#endif   /* JSON_H */