userver: userver/storages/sqlite/operation_types.hpp Source File
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
operation_types.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/storages/sqlite/operation_types.hpp
4/// @brief Operation properties for SQLite client
5
6USERVER_NAMESPACE_BEGIN
7
8namespace storages::sqlite {
9
10/// @brief Type of the SQL operation (read or write).
11///
12/// This enun is used to explicitly specify the expected type of query (read-only or read-write).
13/// The value affects the choice of the connection pool: read-only operations are routed to a read-only pool,
14/// while write-capable operations are executed in a read-write pool.
15/// This helps to optimize resource usage and performance depending on the nature of the SQL request.
16enum class OperationType {
17 /// @brief Execute the query using a read-only connection pool.
19 /// @brief Execute the query using a read-write connection pool.
21};
22
23} // namespace storages::sqlite
24
25USERVER_NAMESPACE_END