Constantes pré-definidas
MysqlndUhConnection::changeUser
mysqlnd_uh
PHP Manual

# The MysqlndUhConnection class

(PECL mysqlnd-uh >= 1.0.0-alpha)

## Introdução

## Sinopse da classe

MysqlndUhConnection {
/* Métodos */
public bool changeUser ( mysqlnd_connection `$connection` , string `$user` , string `$password` , string `$database` , bool `$silent` , int `$passwd_len` )
public string charsetName ( mysqlnd_connection `$connection` )
public bool close ( mysqlnd_connection `$connection` , int `$close_type` )
public bool connect ( mysqlnd_connection `$connection` , string `$host` , string `$use"` , string `$password` , string `$database` , int `$port` , string `$socket` , int `$mysql_flags` )
public __construct ( void )
public bool endPSession ( mysqlnd_connection `$connection` )
public string escapeString ( mysqlnd_connection `$connection` , string `$escape_string` )
public int getAffectedRows ( mysqlnd_connection `$connection` )
public int getErrorNumber ( mysqlnd_connection `$connection` )
public string getErrorString ( mysqlnd_connection `$connection` )
public int getFieldCount ( mysqlnd_connection `$connection` )
public string getHostInformation ( mysqlnd_connection `$connection` )
public int getLastInsertId ( mysqlnd_connection `$connection` )
public void getLastMessage ( mysqlnd_connection `$connection` )
public string getProtocolInformation ( mysqlnd_connection `$connection` )
public string getServerInformation ( mysqlnd_connection `$connection` )
public string getServerStatistics ( mysqlnd_connection `$connection` )
public int getServerVersion ( mysqlnd_connection `$connection` )
public string getSqlstate ( mysqlnd_connection `$connection` )
public array getStatistics ( mysqlnd_connection `$connection` )
public int getThreadId ( mysqlnd_connection `$connection` )
public int getWarningCount ( mysqlnd_connection `$connection` )
public bool init ( mysqlnd_connection `$connection` )
public bool killConnection ( mysqlnd_connection `$connection` , int `$pid` )
public array listFields ( mysqlnd_connection `$connection` , string `$table` , string `$achtung_wild` )
public void listMethod ( mysqlnd_connection `$connection` , string `$query` , string `$achtung_wild` , string `$par1` )
public bool moreResults ( mysqlnd_connection `$connection` )
public bool nextResult ( mysqlnd_connection `$connection` )
public bool ping ( mysqlnd_connection `$connection` )
public bool query ( mysqlnd_connection `$connection` , string `$query` )
public bool queryReadResultsetHeader ( mysqlnd_connection `$connection` , mysqlnd_statement `$mysqlnd_stmt` )
public bool reapQuery ( mysqlnd_connection `$connection` )
public bool refreshServer ( mysqlnd_connection `$connection` , int `$options` )
public bool restartPSession ( mysqlnd_connection `$connection` )
public bool selectDb ( mysqlnd_connection `$connection` , string `$database` )
public bool sendClose ( mysqlnd_connection `$connection` )
public bool sendQuery ( mysqlnd_connection `$connection` , string `$query` )
public bool serverDumpDebugInformation ( mysqlnd_connection `$connection` )
public bool setAutocommit ( mysqlnd_connection `$connection` , int `$mode` )
public bool setCharset ( mysqlnd_connection `$connection` , string `$charset` )
public bool setClientOption ( mysqlnd_connection `$connection` , int `$option` , int `$value` )
public void setServerOption ( mysqlnd_connection `$connection` , int `$option` )
public void shutdownServer ( string `$MYSQLND_UH_RES_MYSQLND_NAME` , string `$"level"` )
public bool simpleCommand ( mysqlnd_connection `$connection` , int `$command` , string `$arg` , int `$ok_packet` , bool `$silent` , bool `$ignore_upsert_status` )
public bool simpleCommandHandleResponse ( mysqlnd_connection `$connection` , int `$ok_packet` , bool `$silent` , int `$command` , bool `$ignore_upsert_status` )
public bool sslSet ( mysqlnd_connection `$connection` , string `$key` , string `$cert` , string `$ca` , string `$capath` , string `$cipher` )
public resource stmtInit ( mysqlnd_connection `$connection` )
public resource storeResult ( mysqlnd_connection `$connection` )
public bool txCommit ( mysqlnd_connection `$connection` )
public bool txRollback ( mysqlnd_connection `$connection` )
public resource useResult ( mysqlnd_connection `$connection` )
}

## Índice

- MysqlndUhConnection::changeUser — Changes the user of the specified mysqlnd database connection
- MysqlndUhConnection::charsetName — Returns the default character set for the database connection
- MysqlndUhConnection::close — Closes a previously opened database connection
- MysqlndUhConnection::connect — Open a new connection to the MySQL server
- MysqlndUhConnection::__construct — The __construct purpose
- MysqlndUhConnection::endPSession — End a persistent connection
- MysqlndUhConnection::escapeString — Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection
- MysqlndUhConnection::getAffectedRows — Gets the number of affected rows in a previous MySQL operation
- MysqlndUhConnection::getErrorNumber — Returns the error code for the most recent function call
- MysqlndUhConnection::getErrorString — Returns a string description of the last error
- MysqlndUhConnection::getFieldCount — Returns the number of columns for the most recent query
- MysqlndUhConnection::getHostInformation — Returns a string representing the type of connection used
- MysqlndUhConnection::getLastInsertId — Returns the auto generated id used in the last query.
- MysqlndUhConnection::getLastMessage — Retrieves information about the most recently executed query
- MysqlndUhConnection::getProtocolInformation — Returns the version of the MySQL protocol used
- MysqlndUhConnection::getServerInformation — Returns the version of the MySQL server
- MysqlndUhConnection::getServerStatistics — Gets the current system status
- MysqlndUhConnection::getServerVersion — Returns the version of the MySQL server as an integer
- MysqlndUhConnection::getSqlstate — Returns the SQLSTATE error from previous MySQL operation
- MysqlndUhConnection::getStatistics — Returns statistics about the client connection.
- MysqlndUhConnection::getThreadId — Returns the thread ID for the current connection
- MysqlndUhConnection::getWarningCount — Returns the number of warnings from the last query for the given link
- MysqlndUhConnection::init — Initialize mysqlnd connection
- MysqlndUhConnection::killConnection — Asks the server to kill a MySQL thread
- MysqlndUhConnection::listFields — List MySQL table fields
- MysqlndUhConnection::listMethod — Wrapper for assorted list commands
- MysqlndUhConnection::moreResults — Check if there are any more query results from a multi query
- MysqlndUhConnection::nextResult — Prepare next result from multi_query
- MysqlndUhConnection::ping — Pings a server connection, or tries to reconnect if the connection has gone down
- MysqlndUhConnection::query — Performs a query on the database
- MysqlndUhConnection::queryReadResultsetHeader — Read a result set header
- MysqlndUhConnection::reapQuery — Get result from async query
- MysqlndUhConnection::refreshServer — Flush or reset tables and caches
- MysqlndUhConnection::restartPSession — Restart a persistent mysqlnd connection
- MysqlndUhConnection::selectDb — Selects the default database for database queries
- MysqlndUhConnection::sendClose — Sends a close command to MySQL
- MysqlndUhConnection::sendQuery — Sends a query to MySQL
- MysqlndUhConnection::serverDumpDebugInformation — Dump debugging information into the log for the MySQL server
- MysqlndUhConnection::setAutocommit — Turns on or off auto-committing database modifications
- MysqlndUhConnection::setCharset — Sets the default client character set
- MysqlndUhConnection::setClientOption — Sets a client option
- MysqlndUhConnection::setServerOption — Sets a server option
- MysqlndUhConnection::shutdownServer — The shutdownServer purpose
- MysqlndUhConnection::simpleCommand — Sends a basic COM_* command
- MysqlndUhConnection::simpleCommandHandleResponse — Process a response for a basic COM_* command send to the client
- MysqlndUhConnection::sslSet — Used for establishing secure connections using SSL
- MysqlndUhConnection::stmtInit — Initializes a statement and returns a resource for use with mysqli_statement::prepare
- MysqlndUhConnection::storeResult — Transfers a result set from the last query
- MysqlndUhConnection::txCommit — Commits the current transaction
- MysqlndUhConnection::txRollback — Rolls back current transaction
- MysqlndUhConnection::useResult — Initiate a result set retrieval

Constantes pré-definidas
MysqlndUhConnection::changeUser
mysqlnd_uh
PHP Manual