PGROUTING  2.4
 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 SRC_COMMON_SRC_POSTGRES_CONNECTION_H_
25 #define SRC_COMMON_SRC_POSTGRES_CONNECTION_H_
26 #pragma once
27 
28 
29 
30 #ifdef __GNUC__
31 #pragma GCC diagnostic ignored "-pedantic"
32 #endif
33 
34 #include <postgres.h>
35 
36 
37 
38 #ifdef __GNUC__
39 #pragma GCC diagnostic ignored "-Wsign-conversion"
40 #pragma GCC diagnostic ignored "-Wunused-parameter"
41 #endif
42 
43 #include "executor/spi.h"
44 
45 #ifdef __GNUC__
46 #pragma GCC diagnostic pop
47 #pragma GCC diagnostic pop
48 #pragma GCC diagnostic pop
49 #endif
50 
51 #include "utils/builtins.h" // for text_to_cstring
52 
53 #if PGSQL_VERSION > 92
54 #include "access/htup_details.h"
55 #endif
56 
57 
58 #ifdef __GNUC__
59 #pragma GCC diagnostic ignored "-Wunused-parameter"
60 #endif
61 
62 #include <funcapi.h>
63 #include <fmgr.h>
64 
65 #ifdef __GNUC__
66 #pragma GCC diagnostic pop
67 #endif
68 
69 
70 void pgr_send_error(int errcode);
71 void pgr_SPI_finish(void);
72 void pgr_SPI_connect(void);
73 SPIPlanPtr pgr_SPI_prepare(char* sql);
74 Portal pgr_SPI_cursor_open(SPIPlanPtr SPIplan);
75 char* pgr_cstring2char(const char *inStr);
76 
77 #endif // SRC_COMMON_SRC_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)