|
Namemariadb_get_infov - retrieves generic or connection releated informationSynopsis
DescriptionRetrieves generic or connection specific information. arg (and further arguments) must be a pointer to a variable of the type appropriate for the value argument. The following table shows which variable type to use for each value.
Value typesGeneric informationFor these information types parameter mysql needs to be set to NULL.
Retrieves the charset information for a character set by it’s literal representation.
Retrieve array of client errors. This can be used in plugins to set global error messages (which are not exported by MariaDB Connector/C).
The client version in literal representation.
The client version in numeric format.
Retrieves value of maximum allowed packet size.
Retrieves the length of net buffer.
The TLS library MariaDB Connector/C is compiled against. Connection related informationFor these information types parameter mysql must be represent a valid connection handle which was allocated by mysql_init(3).
Retrieves the timeout for non blocking calls in seconds.
Retrieves the timeout for non blocking calls in milliseconds.
Retrieves character set information for given connection.
Returns the handshak capability flags] of the client.
Retrieves error message for last used command.
Retrieves error number for last used command. *MARIADB_CONNECTION_EXTENDED_SERVER_CAPABILITIES Returns the extended capability flags of the connected MariaDB server
Returns host name of the connected MariaDB server
Retrieves generic info for last used command.
Retrieves the port number of server host.
Retrieves the protocol version number.
Retrieves the pvio plugin used for specified connection.
Retrieves the current schema.
Retrievrs the capability flags of the connected server.
Returns server status after last operation.
Retrieves the type of the server.
Retrieves the server version in literal format.
Retrieves the server version in numeric format.
Retrieves the handle (socket) for given connection.
Retrieves current sqlstate information for last used command.
Retrieves the TLS/SSL cipher in use.
Retrieves the TLS protocol version used in literal format.
Retrieves the TLS protocol version used in numeric format.
Retrieves the file name of the unix socket
Retrieves connection’s user name. ReturnsReturns zero on success, non zero if an error occurred (e.g. if an invalid option was specified),Source file
/* get server port for current connection / unsigned int port; mariadb_get_infov(mysql, MARIADB_CONNECTION_PORT, (void )&port); /* get user name for current connection / const char user; mariadb_get_infov(mysql, MARIADB_CONNECTION_USER, (void )&user); ``` ## See also mysql_get_optionv(3)
Visit the GSP FreeBSD Man Page Interface. |