MySQL 8.0.39
Source Code Documentation
|
system-variables as returned by the server. More...
#include <sql_exec_context.h>
Public Types | |
using | key_type = std::string |
using | value_type = Value |
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_type &k) const |
find 'k' in sytem-vars. More... | |
value_type | get (const key_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 their is a no system-var. More... | |
Private Attributes | |
std::map< key_type, value_type > | 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 ExecutionContext::SystemVariables::const_iterator = std::map<key_type, value_type>::const_iterator |
using ExecutionContext::SystemVariables::iterator = std::map<key_type, value_type>::iterator |
using ExecutionContext::SystemVariables::key_type = std::string |
|
inline |
|
inline |
|
inline |
check if their is a 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 |