userver: storages::odbc::CommandControl Struct Reference
Loading...
Searching...
No Matches
storages::odbc::CommandControl Struct Referencefinal

Detailed Description

Definition at line 16 of file command_control.hpp.

Public Member Functions

bool operator== (const CommandControl &) const =default

Public Attributes

std::optional< std::chrono::milliseconds > network_timeout {}
std::optional< std::chrono::milliseconds > statement_timeout {}

Member Data Documentation

◆ network_timeout

std::optional<std::chrono::milliseconds> storages::odbc::CommandControl::network_timeout {}

Overall operation budget used for pool waiting and connection login and as an upper bound for statement/transaction deadlines. Blocking ODBC calls are ultimately subject to the timeout capabilities and whole- second resolution of the selected ODBC driver.

Definition at line 21 of file command_control.hpp.

◆ statement_timeout

std::optional<std::chrono::milliseconds> storages::odbc::CommandControl::statement_timeout {}

Timeout for statement execution. ODBC drivers accept this timeout in whole seconds, so the value is rounded up when passed to a driver.

Definition at line 25 of file command_control.hpp.


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