/
ihtiandr9
/
httpserver
Обзор
Документация
Войти
/
ihtiandr9
/
httpserver
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
cpp/third_party/postgresql/include/pgsql/server/plpy_spi.h
29 строк
986 B
ihtiandr9 (note)
build Win. Supported only x64
25 авг 2025, 05:07
25 авг 2025, 05:07
ea9dcd2
Код
Авторство
О чём код?
/* * src/pl/plpython/plpy_spi.h */ #ifndef PLPY_SPI_H #define PLPY_SPI_H #include "plpython.h" #include "utils/resowner.h" extern PyObject *PLy_spi_prepare(PyObject *self, PyObject *args); extern PyObject *PLy_spi_execute(PyObject *self, PyObject *args); extern PyObject *PLy_spi_execute_plan(PyObject *ob, PyObject *list, long limit); extern PyObject *PLy_commit(PyObject *self, PyObject *args); extern PyObject *PLy_rollback(PyObject *self, PyObject *args); typedef struct PLyExceptionEntry { int sqlstate; /* hash key, must be first */ PyObject *exc; /* corresponding exception */ } PLyExceptionEntry; /* handling of SPI operations inside subtransactions */ extern void PLy_spi_subtransaction_begin(MemoryContext oldcontext, ResourceOwner oldowner); extern void PLy_spi_subtransaction_commit(MemoryContext oldcontext, ResourceOwner oldowner); extern void PLy_spi_subtransaction_abort(MemoryContext oldcontext, ResourceOwner oldowner); #endif /* PLPY_SPI_H */