00001 /* 00002 * src/pl/plpython/plpy_planobject.h 00003 */ 00004 00005 #ifndef PLPY_PLANOBJECT_H 00006 #define PLPY_PLANOBJECT_H 00007 00008 #include "executor/spi.h" 00009 #include "plpy_typeio.h" 00010 00011 00012 typedef struct PLyPlanObject 00013 { 00014 PyObject_HEAD 00015 SPIPlanPtr plan; 00016 int nargs; 00017 Oid *types; 00018 Datum *values; 00019 PLyTypeInfo *args; 00020 } PLyPlanObject; 00021 00022 extern void PLy_plan_init_type(void); 00023 extern PyObject *PLy_plan_new(void); 00024 extern bool is_PLyPlanObject(PyObject *ob); 00025 00026 #endif /* PLPY_PLANOBJECT_H */