2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2013, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
17 #include "php_pqconn.h"
19 typedef enum php_pqtxn_isolation
{
20 PHP_PQTXN_READ_COMMITTED
,
21 PHP_PQTXN_REPEATABLE_READ
,
22 PHP_PQTXN_SERIALIZABLE
,
23 } php_pqtxn_isolation_t
;
25 typedef struct php_pqtxn
{
26 php_pqconn_object_t
*conn
;
27 php_pqtxn_isolation_t isolation
;
31 unsigned deferrable
:1;
34 typedef struct php_pqtxn_object
{
37 HashTable
*prophandler
;
41 const char *isolation_level(long *isolation
);
43 zend_class_entry
*php_pqtxn_class_entry
;
44 zend_object_value
php_pqtxn_create_object_ex(zend_class_entry
*ce
, php_pqtxn_t
*intern
, php_pqtxn_object_t
**ptr TSRMLS_DC
);
46 PHP_MINIT_FUNCTION(pqtxn
);
47 PHP_MSHUTDOWN_FUNCTION(pqtxn
);
56 * vim600: noet sw=4 ts=4 fdm=marker
57 * vim<600: noet sw=4 ts=4