mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add support for commit and rollback options.
Add support for explicitly starting a transaction - modes also available. Using the API makes the life of load balancer mysqlnd plugins easier/possible.
This commit is contained in:
parent
0547a36e95
commit
9fb0dba4be
3 changed files with 147 additions and 13 deletions
|
@ -108,6 +108,18 @@
|
|||
|
||||
#define MYSQLND_NET_FLAG_USE_COMPRESSION 1
|
||||
|
||||
|
||||
#define TRANS_START_NO_OPT 0
|
||||
#define TRANS_START_WITH_CONSISTENT_SNAPSHOT 1
|
||||
#define TRANS_START_READ_WRITE 2
|
||||
#define TRANS_START_READ_ONLY 4
|
||||
|
||||
#define TRANS_COR_NO_OPT 0
|
||||
#define TRANS_COR_AND_CHAIN 1
|
||||
#define TRANS_COR_AND_NO_CHAIN 2
|
||||
#define TRANS_COR_RELEASE 4
|
||||
#define TRANS_COR_NO_RELEASE 8
|
||||
|
||||
typedef enum mysqlnd_extension
|
||||
{
|
||||
MYSQLND_MYSQL = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue