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_* */
19 	TupleDesc	tupdesc;
20 } PLyResultObject;
21 
22 extern void PLy_result_init_type(void);
23 extern PyObject *PLy_result_new(void);
24 
25 #endif							/* PLPY_RESULTOBJECT_H */
26