PGROUTING  2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
postgres_connection.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: postgres_connection.h
3 
4 Copyright (c) 2015 Celia Virginia Vergara Castillo
5 vicky_vergara@hotmail.com
6 
7 ------
8 
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 
23 ********************************************************************PGR-GNU*/
24 #ifndef INCLUDE_C_COMMON_POSTGRES_CONNECTION_H_
25 #define INCLUDE_C_COMMON_POSTGRES_CONNECTION_H_
26 #pragma once
27 
28 
29 
30 #ifdef __GNUC__
31 #pragma GCC diagnostic ignored "-pedantic"
32 #endif
33 
34 #ifdef __clang__
35 #pragma clang diagnostic ignored "-pedantic"
36 #endif
37 
38 #include <postgres.h>
39 
40 
41 
42 #ifdef __GNUC__
43 #pragma GCC diagnostic ignored "-Wsign-conversion"
44 #pragma GCC diagnostic ignored "-Wunused-parameter"
45 #endif
46 
47 #ifdef __clang__
48 #pragma clang diagnostic ignored "-Wsign-conversion"
49 #pragma clang diagnostic ignored "-Wunused-parameter"
50 #endif
51 
52 #include "executor/spi.h"
53 
54 #ifdef __GNUC__
55 #pragma GCC diagnostic pop
56 #pragma GCC diagnostic pop
57 #pragma GCC diagnostic pop
58 #endif
59 
60 #ifdef __clang__
61 #pragma clang diagnostic pop
62 #pragma clang diagnostic pop
63 #pragma clang diagnostic pop
64 #endif
65 
66 #include "utils/builtins.h" // for text_to_cstring
67 
68 #if PGSQL_VERSION > 92
69 #include "access/htup_details.h"
70 #endif
71 
72 #ifdef __clang__
73 #pragma clang diagnostic ignored "-Wunused-parameter"
74 #endif
75 
76 #ifdef __GNUC__
77 #pragma GCC diagnostic ignored "-Wunused-parameter"
78 #endif
79 
80 #include <funcapi.h>
81 #include <fmgr.h>
82 
83 #ifdef __GNUC__
84 #pragma GCC diagnostic pop
85 #endif
86 
87 #ifdef __clang__
88 #pragma clang diagnostic pop
89 #endif
90 
91 
92 void pgr_send_error(int errcode);
93 void pgr_SPI_finish(void);
94 void pgr_SPI_connect(void);
95 SPIPlanPtr pgr_SPI_prepare(char* sql);
96 Portal pgr_SPI_cursor_open(SPIPlanPtr SPIplan);
97 char* pgr_cstring2char(const char *inStr);
98 
99 #endif // INCLUDE_C_COMMON_POSTGRES_CONNECTION_H_
Portal pgr_SPI_cursor_open(SPIPlanPtr SPIplan)
char * pgr_cstring2char(const char *inStr)
void pgr_SPI_connect(void)
void pgr_send_error(int errcode)
SPIPlanPtr pgr_SPI_prepare(char *sql)
void pgr_SPI_finish(void)