table of contents
other versions
- bookworm 1:10.11.6-0+deb12u1
- testing 1:11.4.5-1
- unstable 1:11.4.5-1
- experimental 1:11.4.5-2~exp1
mariadb_connection(3) | MariaDB Connector/C | mariadb_connection(3) |
Name¶
mariadb_connection - checks if the client is connected to a MariaDB database server
Synopsis¶
-
#include <mysql.h> my_bool mariadb_connection(MYSQL * mysql);
Description¶
Checks if the client is connected to a MariaDB or MySQL database server.
Parameter¶
mysql - mysql handle, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3).
Return value¶
Returns a non zero value if connected to a MariaDB database server, otherwise zero.
Version 3.4 |