userver: storages::sqlite::settings::ConnectionSettings Struct Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::sqlite::settings::ConnectionSettings Struct Reference

Your opinion will help to improve our service

Leave a feedback >

#include <userver/storages/sqlite/options.hpp>

Detailed Description

SQLite connection settings.

Configures behavior related to prepared statements and their caching.

Definition at line 63 of file options.hpp.

Public Types

enum  PreparedStatementOptions {
  kCachePreparedStatements ,
  kNoPreparedStatements
}
 Options for handling prepared statements. More...
 

Static Public Member Functions

static ConnectionSettings Create (const components::ComponentConfig &config)
 

Public Attributes

PreparedStatementOptions prepared_statements
 Cache prepared statements or not.
 
std::size_t max_prepared_cache_size = kDefaultMaxPreparedCacheSize
 Maximum number of prepared statements to cache.
 

Member Enumeration Documentation

◆ PreparedStatementOptions

Options for handling prepared statements.

Enumerator
kCachePreparedStatements 

Enable caching of prepared statements.

kNoPreparedStatements 

Disable caching of prepared statements.

Definition at line 65 of file options.hpp.

Member Data Documentation

◆ max_prepared_cache_size

std::size_t storages::sqlite::settings::ConnectionSettings::max_prepared_cache_size = kDefaultMaxPreparedCacheSize

Maximum number of prepared statements to cache.

Definition at line 75 of file options.hpp.

◆ prepared_statements

PreparedStatementOptions storages::sqlite::settings::ConnectionSettings::prepared_statements
Initial value:

Cache prepared statements or not.

Definition at line 71 of file options.hpp.


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