9#include <userver/utils/strong_typedef.hpp>
11USERVER_NAMESPACE_BEGIN
24 enum class LogMode { kFull, kNameOnly };
28 Query(
const char* statement, std::optional<Name> name = std::nullopt, LogMode log_mode = LogMode::kFull);
30 Query(std::string statement, std::optional<Name> name = std::nullopt, LogMode log_mode = LogMode::kFull);
32 const std::optional<Name>& GetName()
const;
34 const std::string& Statement()
const;
40 std::string statement_{};
41 std::optional<Name> name_{};
42 LogMode log_mode_ = LogMode::kFull;