![]() |
Home | Libraries | People | FAQ | More |
Resets server-side session state, like variables and prepared statements.
template< class CompletionToken> auto async_reset_connection( diagnostics& diag, CompletionToken&& token);
Resets all server-side state for the current session:
SET NAMES
) and clears all user-defined
variables.
A full reference on the affected session state can be found here.
This function will not reset the current physical connection and won't cause re-authentication. It is faster than closing and re-opening a connection.
The connection must be connected and authenticated before calling this function. This function involves communication with the server, and thus may fail.
The handler signature for this operation is void(boost::mysql::error_code)
.