26#ifndef ROUTING_SQL_EXEC_CONTEXT_INCLUDED
27#define ROUTING_SQL_EXEC_CONTEXT_INCLUDED
75 vars_.insert_or_assign(std::move(k), std::move(v));
89 const auto it =
vars_.find(k);
90 if (it ==
vars_.end())
return {std::nullopt};
108 const auto res =
find(k);
109 if (!res)
return {std::nullopt};
114 using iterator = std::map<key_type, value_type>::iterator;
128 std::map<key_type, value_type>
vars_;
Definition: sql_exec_context.h:147
std::string level_
Definition: sql_exec_context.h:157
std::string msg_
Definition: sql_exec_context.h:159
uint64_t code_
Definition: sql_exec_context.h:158
std::string level() const
Definition: sql_exec_context.h:152
Warning(std::string level, uint64_t code, std::string msg)
Definition: sql_exec_context.h:149
std::string message() const
Definition: sql_exec_context.h:154
uint64_t code() const
Definition: sql_exec_context.h:153
diagnostics area.
Definition: sql_exec_context.h:145
const std::vector< Warning > & warnings() const
Definition: sql_exec_context.h:163
std::vector< Warning > warnings_
Definition: sql_exec_context.h:166
std::vector< Warning > & warnings()
Definition: sql_exec_context.h:162
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:74
const_iterator begin() const
Definition: sql_exec_context.h:118
std::optional< value_type > find(const key_type &k) const
find 'k' in sytem-vars.
Definition: sql_exec_context.h:88
value_type get(const key_type &k) const
get 'k' from system-vars.
Definition: sql_exec_context.h:107
std::string key_type
Definition: sql_exec_context.h:66
iterator begin()
Definition: sql_exec_context.h:117
std::map< key_type, value_type >::iterator iterator
Definition: sql_exec_context.h:114
const_iterator end() const
Definition: sql_exec_context.h:120
std::map< key_type, value_type >::const_iterator const_iterator
Definition: sql_exec_context.h:115
bool empty() const
check if their is a no system-var.
Definition: sql_exec_context.h:125
iterator end()
Definition: sql_exec_context.h:119
std::map< key_type, value_type > vars_
Definition: sql_exec_context.h:128
execution context for SQL.
Definition: sql_exec_context.h:43
const SystemVariables & system_variables() const
Definition: sql_exec_context.h:175
SystemVariables system_variables_
Definition: sql_exec_context.h:178
DiagnosticsArea & diagnostics_area()
Definition: sql_exec_context.h:169
DiagnosticsArea diagnostics_area_
Definition: sql_exec_context.h:180
const DiagnosticsArea & diagnostics_area() const
Definition: sql_exec_context.h:171
SystemVariables & system_variables()
Definition: sql_exec_context.h:173
a nullable SQL value.
Definition: sql_value.h:40
Definition: gcs_xcom_synode.h:64