userver: userver/storages/sqlite/operation_types.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
operation_types.hpp File Reference

Detailed Description

Operation properties for SQLite client.

Definition in file operation_types.hpp.

Go to the source code of this file.

+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  storages
 Components, clients and helpers for different databases and storages.
 

Enumerations

enum class  storages::sqlite::OperationType {
  kReadOnly ,
  kReadWrite
}
 Type of the SQL operation (read or write). More...
 

Enumeration Type Documentation

◆ OperationType

Type of the SQL operation (read or write).

This enun is used to explicitly specify the expected type of query (read-only or read-write). The value affects the choice of the connection pool: read-only operations are routed to a read-only pool, while write-capable operations are executed in a read-write pool. This helps to optimize resource usage and performance depending on the nature of the SQL request.

Enumerator
kReadOnly 

Execute the query using a read-only connection pool.

kReadWrite 

Execute the query using a read-write connection pool.

Definition at line 16 of file operation_types.hpp.