#include <userver/storages/query.hpp>
Holds a query, its name and logging mode.
Public Types | |
enum class | LogMode { kFull , kNameOnly } |
using | Name |
Public Member Functions | |
Query (const char *statement, std::optional< Name > name=std::nullopt, LogMode log_mode=LogMode::kFull) | |
Query (std::string statement, std::optional< Name > name=std::nullopt, LogMode log_mode=LogMode::kFull) | |
const std::optional< Name > & | GetName () const |
const std::string & | Statement () const |
void | FillSpanTags (tracing::Span &) const |
Fills provided span with connection info. | |
using storages::Query::Name |