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

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

SQLite options.

Definition in file options.hpp.

Go to the source code of this file.

#include <string>
#include <userver/components/component_config.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

struct  storages::sqlite::settings::TransactionOptions
 SQLite transaction options. More...
 
struct  storages::sqlite::settings::ConnectionSettings
 SQLite connection settings. More...
 
struct  storages::sqlite::settings::PoolSettings
 SQLite connection pool settings. More...
 
struct  storages::sqlite::settings::SQLiteSettings
 Comprehensive SQLite settings. More...
 

Namespaces

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

Functions

constexpr bool storages::sqlite::settings::operator== (const TransactionOptions &lhs, const TransactionOptions &rhs)
 
std::string storages::sqlite::settings::IsolationLevelToString (const TransactionOptions::IsolationLevel &lvl)
 
std::string storages::sqlite::settings::JournalModeToString (const SQLiteSettings::JournalMode &mode)
 

Variables

constexpr std::size_t storages::sqlite::settings::kDefaultMaxPreparedCacheSize = 200
 Default maximum size for the prepared statements cache.
 
constexpr bool storages::sqlite::settings::kDefaultPrepareStatement = true
 Default setting for caching prepared statements.
 
constexpr std::size_t storages::sqlite::settings::kDefaultInitialPoolSize = 5
 Default initial size for the connection pool.
 
constexpr std::size_t storages::sqlite::settings::kDefaultMaxPoolSize = 10
 Default maximum size for the connection pool.
 
constexpr bool storages::sqlite::settings::kDefaultCreateFile = true
 
constexpr bool storages::sqlite::settings::kDefaultIsReadOnly = false
 
constexpr bool storages::sqlite::settings::kDefaultSharedCache = false
 
constexpr bool storages::sqlite::settings::kDefaultReadUncommitted = false
 
constexpr bool storages::sqlite::settings::kDefaultForeignKeys = true
 
constexpr std::string_view storages::sqlite::settings::kDefaultJournalMode = "wal"
 
constexpr std::string_view storages::sqlite::settings::kDefaultSynchronous = "normal"
 
constexpr std::string_view storages::sqlite::settings::kDefaultTempStore = "memory"
 
constexpr int storages::sqlite::settings::kDefaultBusyTimeout = 5000
 
constexpr int storages::sqlite::settings::kDefaultCacheSize = -2000
 
constexpr int storages::sqlite::settings::kDefaultJournalSizeLimit = 67108864
 
constexpr int storages::sqlite::settings::kDefaultMmapSize = 134217728
 
constexpr int storages::sqlite::settings::kDefaultPageSize = 4096
 

Function Documentation

◆ operator==()

constexpr bool storages::sqlite::settings::operator== ( const TransactionOptions lhs,
const TransactionOptions rhs 
)
inlineconstexpr

Definition at line 48 of file options.hpp.

Variable Documentation

◆ kDefaultBusyTimeout

constexpr int storages::sqlite::settings::kDefaultBusyTimeout = 5000
inlineconstexpr

Definition at line 107 of file options.hpp.

◆ kDefaultCacheSize

constexpr int storages::sqlite::settings::kDefaultCacheSize = -2000
inlineconstexpr

Definition at line 108 of file options.hpp.

◆ kDefaultCreateFile

constexpr bool storages::sqlite::settings::kDefaultCreateFile = true
inlineconstexpr

Definition at line 99 of file options.hpp.

◆ kDefaultForeignKeys

constexpr bool storages::sqlite::settings::kDefaultForeignKeys = true
inlineconstexpr

Definition at line 103 of file options.hpp.

◆ kDefaultInitialPoolSize

constexpr std::size_t storages::sqlite::settings::kDefaultInitialPoolSize = 5
inlineconstexpr

Default initial size for the connection pool.

Definition at line 81 of file options.hpp.

◆ kDefaultIsReadOnly

constexpr bool storages::sqlite::settings::kDefaultIsReadOnly = false
inlineconstexpr

Definition at line 100 of file options.hpp.

◆ kDefaultJournalMode

constexpr std::string_view storages::sqlite::settings::kDefaultJournalMode = "wal"
inlineconstexpr

Definition at line 104 of file options.hpp.

◆ kDefaultJournalSizeLimit

constexpr int storages::sqlite::settings::kDefaultJournalSizeLimit = 67108864
inlineconstexpr

Definition at line 109 of file options.hpp.

◆ kDefaultMaxPoolSize

constexpr std::size_t storages::sqlite::settings::kDefaultMaxPoolSize = 10
inlineconstexpr

Default maximum size for the connection pool.

Definition at line 84 of file options.hpp.

◆ kDefaultMaxPreparedCacheSize

constexpr std::size_t storages::sqlite::settings::kDefaultMaxPreparedCacheSize = 200
inlineconstexpr

Default maximum size for the prepared statements cache.

Definition at line 55 of file options.hpp.

◆ kDefaultMmapSize

constexpr int storages::sqlite::settings::kDefaultMmapSize = 134217728
inlineconstexpr

Definition at line 110 of file options.hpp.

◆ kDefaultPageSize

constexpr int storages::sqlite::settings::kDefaultPageSize = 4096
inlineconstexpr

Definition at line 111 of file options.hpp.

◆ kDefaultPrepareStatement

constexpr bool storages::sqlite::settings::kDefaultPrepareStatement = true
inlineconstexpr

Default setting for caching prepared statements.

Definition at line 58 of file options.hpp.

◆ kDefaultReadUncommitted

constexpr bool storages::sqlite::settings::kDefaultReadUncommitted = false
inlineconstexpr

Definition at line 102 of file options.hpp.

◆ kDefaultSharedCache

constexpr bool storages::sqlite::settings::kDefaultSharedCache = false
inlineconstexpr

Definition at line 101 of file options.hpp.

◆ kDefaultSynchronous

constexpr std::string_view storages::sqlite::settings::kDefaultSynchronous = "normal"
inlineconstexpr

Definition at line 105 of file options.hpp.

◆ kDefaultTempStore

constexpr std::string_view storages::sqlite::settings::kDefaultTempStore = "memory"
inlineconstexpr

Definition at line 106 of file options.hpp.