Header And Logo

PostgreSQL
| The world's most advanced open source database.

plpy_resultobject.h

Go to the documentation of this file.
00001 /*
00002  * src/pl/plpython/plpy_resultobject.h
00003  */
00004 
00005 #ifndef PLPY_RESULTOBJECT_H
00006 #define PLPY_RESULTOBJECT_H
00007 
00008 #include "access/tupdesc.h"
00009 
00010 
00011 typedef struct PLyResultObject
00012 {
00013     PyObject_HEAD
00014     /* HeapTuple *tuples; */
00015     PyObject   *nrows;          /* number of rows returned by query */
00016     PyObject   *rows;           /* data rows, or empty list if no data
00017                                  * returned */
00018     PyObject   *status;         /* query status, SPI_OK_*, or SPI_ERR_* */
00019     TupleDesc   tupdesc;
00020 } PLyResultObject;
00021 
00022 extern void PLy_result_init_type(void);
00023 extern PyObject *PLy_result_new(void);
00024 
00025 #endif   /* PLPY_RESULTOBJECT_H */