php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
mysqlnd_connection.h File Reference

Go to the source code of this file.

Macros

#define UPSERT_STATUS_RESET(status)
 
#define UPSERT_STATUS_GET_SERVER_STATUS(status)
 
#define UPSERT_STATUS_SET_SERVER_STATUS(status, server_st)
 
#define UPSERT_STATUS_GET_WARNINGS(status)
 
#define UPSERT_STATUS_SET_WARNINGS(status, warnings)
 
#define UPSERT_STATUS_GET_AFFECTED_ROWS(status)
 
#define UPSERT_STATUS_SET_AFFECTED_ROWS(status, rows)
 
#define UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR(status)
 
#define UPSERT_STATUS_GET_LAST_INSERT_ID(status)
 
#define UPSERT_STATUS_SET_LAST_INSERT_ID(status, id)
 
#define GET_CONNECTION_STATE(state_struct)
 
#define SET_CONNECTION_STATE(state_struct, s)
 

Functions

void mysqlnd_upsert_status_init (MYSQLND_UPSERT_STATUS *const upsert_status)
 
PHPAPI void mysqlnd_error_info_init (MYSQLND_ERROR_INFO *const info, const bool persistent)
 
PHPAPI void mysqlnd_error_info_free_contents (MYSQLND_ERROR_INFO *const info)
 
PHPAPI void mysqlnd_connection_state_init (struct st_mysqlnd_connection_state *const state)
 

Variables

PHPAPI const char *const mysqlnd_out_of_sync
 
PHPAPI const char *const mysqlnd_server_gone
 
PHPAPI const char *const mysqlnd_out_of_memory
 

Macro Definition Documentation

◆ GET_CONNECTION_STATE

#define GET_CONNECTION_STATE ( state_struct)
Value:
(state_struct)->m->get((state_struct))

Definition at line 46 of file mysqlnd_connection.h.

◆ SET_CONNECTION_STATE

#define SET_CONNECTION_STATE ( state_struct,
s )
Value:
(state_struct)->m->set((state_struct), (s))
char s[4]
Definition cdf.c:77

Definition at line 47 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_GET_AFFECTED_ROWS

#define UPSERT_STATUS_GET_AFFECTED_ROWS ( status)
Value:
(status)->affected_rows
DNS_STATUS status
Definition dns_win32.c:49

Definition at line 36 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_GET_LAST_INSERT_ID

#define UPSERT_STATUS_GET_LAST_INSERT_ID ( status)
Value:
(status)->last_insert_id

Definition at line 40 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_GET_SERVER_STATUS

#define UPSERT_STATUS_GET_SERVER_STATUS ( status)
Value:
(status)->server_status

Definition at line 30 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_GET_WARNINGS

#define UPSERT_STATUS_GET_WARNINGS ( status)
Value:
(status)->warning_count

Definition at line 33 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_RESET

#define UPSERT_STATUS_RESET ( status)
Value:
(status)->m->reset((status))

Definition at line 28 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_SET_AFFECTED_ROWS

#define UPSERT_STATUS_SET_AFFECTED_ROWS ( status,
rows )
Value:
(status)->affected_rows = (rows)

Definition at line 37 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR

#define UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR ( status)
Value:
(status)->m->set_affected_rows_to_error((status))

Definition at line 38 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_SET_LAST_INSERT_ID

#define UPSERT_STATUS_SET_LAST_INSERT_ID ( status,
id )
Value:
(status)->last_insert_id = (id)

Definition at line 41 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_SET_SERVER_STATUS

#define UPSERT_STATUS_SET_SERVER_STATUS ( status,
server_st )
Value:
(status)->server_status = (server_st)

Definition at line 31 of file mysqlnd_connection.h.

◆ UPSERT_STATUS_SET_WARNINGS

#define UPSERT_STATUS_SET_WARNINGS ( status,
warnings )
Value:
(status)->warning_count = (warnings)

Definition at line 34 of file mysqlnd_connection.h.

Function Documentation

◆ mysqlnd_connection_state_init()

PHPAPI void mysqlnd_connection_state_init ( struct st_mysqlnd_connection_state *const state)

Definition at line 207 of file mysqlnd_connection.c.

◆ mysqlnd_error_info_free_contents()

PHPAPI void mysqlnd_error_info_free_contents ( MYSQLND_ERROR_INFO *const info)

Definition at line 165 of file mysqlnd_connection.c.

◆ mysqlnd_error_info_init()

PHPAPI void mysqlnd_error_info_init ( MYSQLND_ERROR_INFO *const info,
const bool persistent )

Definition at line 150 of file mysqlnd_connection.c.

◆ mysqlnd_upsert_status_init()

void mysqlnd_upsert_status_init ( MYSQLND_UPSERT_STATUS *const upsert_status)

Definition at line 72 of file mysqlnd_connection.c.

Variable Documentation

◆ mysqlnd_out_of_memory

PHPAPI const char* const mysqlnd_out_of_memory
extern

Definition at line 38 of file mysqlnd_connection.c.

◆ mysqlnd_out_of_sync

PHPAPI const char* const mysqlnd_out_of_sync
extern

Definition at line 37 of file mysqlnd_connection.c.

◆ mysqlnd_server_gone

PHPAPI const char* const mysqlnd_server_gone
extern

Definition at line 36 of file mysqlnd_connection.c.