userver: USERVER_ODBC_DEFAULT_COMMAND_CONTROL
Loading...
Searching...
No Matches
USERVER_ODBC_DEFAULT_COMMAND_CONTROL

USERVER_ODBC_DEFAULT_COMMAND_CONTROL Dynamic Config

Dynamic config that controls default network and statement timeouts for ODBC driver. Overrides the built-in timeouts. Individual operations can override these values with storages::odbc::OptionalCommandControl. A task-inherited request deadline always caps the resulting deadline.

Schema:

# yaml
default: {}
description: |
Dynamic config that controls default network and statement timeouts for ODBC driver.
Overrides the built-in timeouts. Individual operations can override these
values with storages::odbc::OptionalCommandControl. A task-inherited
request deadline always caps the resulting deadline.
schema:
type: object
additionalProperties: false
properties:
network_timeout_ms:
type: integer
minimum: 1
x-usrv-cpp-type: std::chrono::milliseconds
description: |
Overall operation budget in milliseconds. It starts before
connection acquisition, configures the ODBC login timeout, and
caps statement and transaction deadlines. Blocking ODBC calls
are ultimately subject to timeout support and whole-second
resolution of the selected ODBC driver.
statement_timeout_ms:
type: integer
minimum: 1
x-usrv-cpp-type: std::chrono::milliseconds
description: |-
Statement execution timeout in milliseconds. Controls how long
to wait for SQL statement execution to complete.

For a full list of dynamic configs see Dynamic config schemas list