MySQL 9.1.0
Source Code Documentation
|
system-variables as returned by the server. More...
#include <classic_protocol_state.h>
Public Types | |
using | key_type = std::string |
using | key_view_type = std::string_view |
using | value_type = std::optional< std::string > |
using | iterator = std::map< key_type, value_type >::iterator |
using | const_iterator = std::map< key_type, value_type >::const_iterator |
Public Member Functions | |
void | set (key_type k, value_type v) |
set k to v. More... | |
std::optional< value_type > | find (const key_view_type &k) const |
find 'k' in sytem-vars. More... | |
value_type | get (const key_view_type &k) const |
get 'k' from system-vars. More... | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
bool | empty () const |
check if there is no system-var. More... | |
void | clear () |
clear the system-vars. More... | |
Private Attributes | |
std::map< key_type, value_type, std::less<> > | vars_ |
system-variables as returned by the server.
can be queried from the server with:
can be set on the server with:
changes to system-vars on the server are returned via the sesssion-tracker for system-variables.
using ClassicProtocolState::SystemVariables::const_iterator = std::map<key_type, value_type>::const_iterator |
using ClassicProtocolState::SystemVariables::iterator = std::map<key_type, value_type>::iterator |
using ClassicProtocolState::SystemVariables::key_type = std::string |
using ClassicProtocolState::SystemVariables::key_view_type = std::string_view |
using ClassicProtocolState::SystemVariables::value_type = std::optional<std::string> |
|
inline |
|
inline |
|
inline |
clear the system-vars.
|
inline |
check if there is no system-var.
|
inline |
|
inline |
|
inline |
find 'k' in sytem-vars.
k | key |
if 'k' does not exist in system-vars, a NULL-like value is returned. otherwise return the value for the system-var referenced by 'k'
|
inline |
get 'k' from system-vars.
k | key |
if 'k' does not exist in system-vars, a NULL-like value is returned. otherwise return the value for the system-var referenced by 'k' which may be NULL-like or a string.
|
inline |
set k to v.
if k doesn't exist in the system-vars yet, it gets inserted.
|
private |