9#include <userver/utils/strong_typedef.hpp>
11USERVER_NAMESPACE_BEGIN
25 enum class LogMode { kFull, kNameOnly };
29 Query(
const char* statement, std::optional<Name> name = std::nullopt,
30 LogMode log_mode = LogMode::kFull);
32 Query(std::string statement, std::optional<Name> name = std::nullopt,
33 LogMode log_mode = LogMode::kFull);
35 const std::optional<Name>& GetName()
const;
37 const std::string& Statement()
const;
43 std::string statement_{};
44 std::optional<Name> name_{};
45 LogMode log_mode_ = LogMode::kFull;