1 /*
2  * dblink.h
3  *
4  * Functions returning results from a remote database
5  *
6  * Joe Conway <mail@joeconway.com>
7  * And contributors:
8  * Darko Prenosil <Darko.Prenosil@finteh.hr>
9  * Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
10  *
11  * contrib/dblink/dblink.h
12  * Copyright (c) 2001-2016, PostgreSQL Global Development Group
13  * ALL RIGHTS RESERVED;
14  *
15  * Permission to use, copy, modify, and distribute this software and its
16  * documentation for any purpose, without fee, and without a written agreement
17  * is hereby granted, provided that the above copyright notice and this
18  * paragraph and the following two paragraphs appear in all copies.
19  *
20  * IN NO EVENT SHALL THE AUTHOR OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
21  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
22  * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
23  * DOCUMENTATION, EVEN IF THE AUTHOR OR DISTRIBUTORS HAVE BEEN ADVISED OF THE
24  * POSSIBILITY OF SUCH DAMAGE.
25  *
26  * THE AUTHOR AND DISTRIBUTORS SPECIFICALLY DISCLAIMS ANY WARRANTIES,
27  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
28  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
29  * ON AN "AS IS" BASIS, AND THE AUTHOR AND DISTRIBUTORS HAS NO OBLIGATIONS TO
30  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
31  *
32  */
33 
34 #ifndef DBLINK_H
35 #define DBLINK_H
36 
37 #include "fmgr.h"
38 
39 /*
40  * External declarations
41  */
42 extern Datum dblink_connect(PG_FUNCTION_ARGS);
43 extern Datum dblink_disconnect(PG_FUNCTION_ARGS);
44 extern Datum dblink_open(PG_FUNCTION_ARGS);
45 extern Datum dblink_close(PG_FUNCTION_ARGS);
46 extern Datum dblink_fetch(PG_FUNCTION_ARGS);
47 extern Datum dblink_record(PG_FUNCTION_ARGS);
48 extern Datum dblink_send_query(PG_FUNCTION_ARGS);
49 extern Datum dblink_get_result(PG_FUNCTION_ARGS);
50 extern Datum dblink_get_connections(PG_FUNCTION_ARGS);
51 extern Datum dblink_is_busy(PG_FUNCTION_ARGS);
52 extern Datum dblink_cancel_query(PG_FUNCTION_ARGS);
53 extern Datum dblink_error_message(PG_FUNCTION_ARGS);
54 extern Datum dblink_exec(PG_FUNCTION_ARGS);
55 extern Datum dblink_get_pkey(PG_FUNCTION_ARGS);
56 extern Datum dblink_build_sql_insert(PG_FUNCTION_ARGS);
57 extern Datum dblink_build_sql_delete(PG_FUNCTION_ARGS);
58 extern Datum dblink_build_sql_update(PG_FUNCTION_ARGS);
59 extern Datum dblink_current_query(PG_FUNCTION_ARGS);
60 extern Datum dblink_get_notify(PG_FUNCTION_ARGS);
61 extern Datum dblink_fdw_validator(PG_FUNCTION_ARGS);
62 
63 #endif   /* DBLINK_H */
64