userver: storages::mysql::Query Class Reference
Loading...
Searching...
No Matches
storages::mysql::Query Class Referencefinal

#include </data/code/userver/mysql/include/userver/storages/mysql/query.hpp>

Detailed Description

Query class, which driver executes.

Definition at line 15 of file query.hpp.

Public Types

using Name = utils::StrongTypedef<struct NameTag, std::string>
 Strong typedef for query name, one can use named queries to get better logging experience.
 

Public Member Functions

 Query (const char *statement, std::optional< Name > name=std::nullopt)
 Query constructor.
 
 Query (std::string statement, std::optional< Name > name=std::nullopt)
 Query constructor.
 
const std::string & GetStatement () const
 Get query statement.
 
const std::optional< Name > & GetName () const
 Get query name.
 

Member Typedef Documentation

◆ Name

using storages::mysql::Query::Name = utils::StrongTypedef<struct NameTag, std::string>

Strong typedef for query name, one can use named queries to get better logging experience.

Definition at line 19 of file query.hpp.


The documentation for this class was generated from the following file: