PHP » GoLang |
login |
register |
about
|
GoLang mysqlnd_ms_get_last_used_connection
request it (275)
GoLang replacement for PHP's mysqlnd_ms_get_last_used_connection
[edit | history]
PHP mysqlnd_ms_get_last_used_connectionPHP original manual for mysqlnd_ms_get_last_used_connection [ show | php.net ]mysqlnd_ms_get_last_used_connection(PECL mysqlnd_ms >= 1.1.0) mysqlnd_ms_get_last_used_connection — Returns an array which describes the last used connection DescriptionReturns an array which describes the last used connection from the plugins connection pool currently pointed to by the user connection handle. If using the plugin, a user connection handle represents a pool of database connections. It is not possible to tell from the user connection handles properties to which database server from the pool the user connection handle points. The function can be used to debug or monitor PECL mysqlnd_ms. ParametersReturn Values
Array which describes the connection.
Notes
ExamplesThe example assumes that myapp refers to a plugin configuration file section and represents a connection pool.
Example #1 mysqlnd_ms_get_last_used_connection() example
<?php The above example will output: array(10) { ["scheme"]=> string(22) "unix:///tmp/mysql.sock" ["host_info"]=> string(25) "Localhost via UNIX socket" ["host"]=> string(0) "" ["port"]=> int(3306) ["socket_or_pipe"]=> string(15) "/tmp/mysql.sock" ["thread_id"]=> int(46253) ["last_message"]=> string(0) "" ["errno"]=> int(0) ["error"]=> string(0) "" ["sqlstate"]=> string(5) "00000" } |
more
Recently updated
more
Most requested
more
Last requests
|