PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
plpy_resultobject.h
Go to the documentation of this file.
1 /*
2  * src/pl/plpython/plpy_resultobject.h
3  */
4 
5 #ifndef PLPY_RESULTOBJECT_H
6 #define PLPY_RESULTOBJECT_H
7 
8 #include "access/tupdesc.h"
9 
10 
11 typedef struct PLyResultObject
12 {
13  PyObject_HEAD
14  /* HeapTuple *tuples; */
15  PyObject *nrows; /* number of rows returned by query */
16  PyObject *rows; /* data rows, or empty list if no data
17  * returned */
18  PyObject *status; /* query status, SPI_OK_*, or SPI_ERR_* */
21 
22 extern void PLy_result_init_type(void);
23 extern PyObject *PLy_result_new(void);
24 
25 #endif /* PLPY_RESULTOBJECT_H */
PyObject * PLy_result_new(void)
struct PLyResultObject PLyResultObject
void PLy_result_init_type(void)
PyObject_HEAD PyObject * nrows