26#ifndef ROUTING_SQL_EXEC_CONTEXT_INCLUDED
27#define ROUTING_SQL_EXEC_CONTEXT_INCLUDED
76 vars_.insert_or_assign(std::move(k), std::move(v));
90 const auto it =
vars_.find(k);
91 if (it ==
vars_.end())
return {std::nullopt};
109 const auto it =
vars_.find(k);
110 if (it ==
vars_.end())
return {std::nullopt};
115 using iterator = std::map<key_type, value_type>::iterator;
134 std::map<key_type, value_type, std::less<>>
vars_;
Definition: sql_exec_context.h:153
std::string level_
Definition: sql_exec_context.h:163
std::string msg_
Definition: sql_exec_context.h:165
uint64_t code_
Definition: sql_exec_context.h:164
std::string level() const
Definition: sql_exec_context.h:158
Warning(std::string level, uint64_t code, std::string msg)
Definition: sql_exec_context.h:155
std::string message() const
Definition: sql_exec_context.h:160
uint64_t code() const
Definition: sql_exec_context.h:159
diagnostics area.
Definition: sql_exec_context.h:151
const std::vector< Warning > & warnings() const
Definition: sql_exec_context.h:169
std::vector< Warning > warnings_
Definition: sql_exec_context.h:172
std::vector< Warning > & warnings()
Definition: sql_exec_context.h:168
system-variables as returned by the server.
Definition: sql_exec_context.h:64
void set(key_type k, value_type v)
set k to v.
Definition: sql_exec_context.h:75
const_iterator begin() const
Definition: sql_exec_context.h:119
std::string key_type
Definition: sql_exec_context.h:66
void clear()
clear the system-vars.
Definition: sql_exec_context.h:131
std::string_view key_view_type
Definition: sql_exec_context.h:67
value_type get(const key_view_type &k) const
get 'k' from system-vars.
Definition: sql_exec_context.h:108
iterator begin()
Definition: sql_exec_context.h:118
std::map< key_type, value_type >::iterator iterator
Definition: sql_exec_context.h:115
const_iterator end() const
Definition: sql_exec_context.h:121
std::map< key_type, value_type >::const_iterator const_iterator
Definition: sql_exec_context.h:116
std::map< key_type, value_type, std::less<> > vars_
Definition: sql_exec_context.h:134
bool empty() const
check if their is a no system-var.
Definition: sql_exec_context.h:126
iterator end()
Definition: sql_exec_context.h:120
std::optional< value_type > find(const key_view_type &k) const
find 'k' in sytem-vars.
Definition: sql_exec_context.h:89
execution context for SQL.
Definition: sql_exec_context.h:43
const SystemVariables & system_variables() const
Definition: sql_exec_context.h:181
SystemVariables system_variables_
Definition: sql_exec_context.h:184
DiagnosticsArea & diagnostics_area()
Definition: sql_exec_context.h:175
DiagnosticsArea diagnostics_area_
Definition: sql_exec_context.h:186
const DiagnosticsArea & diagnostics_area() const
Definition: sql_exec_context.h:177
SystemVariables & system_variables()
Definition: sql_exec_context.h:179
a nullable SQL value.
Definition: sql_value.h:40
Definition: gcs_xcom_synode.h:64