SQLite Containers
Loading...
Searching...
No Matches
sqlite_containers::Config Class Reference

Configuration class for SQLite database settings. More...

#include <Config.hpp>

Public Member Functions

 Config ()=default
 Default constructor.
 

Public Attributes

std::string db_path
 Path to the SQLite database file.
 
std::string table_name
 Name of the database table.
 
bool read_only = false
 Whether the database is in read-only mode.
 
bool use_uri = false
 Whether to use URI for opening the database.
 
bool in_memory = false
 Whether the database should be in-memory.
 
bool use_async = false
 Whether to use asynchronous write.
 
int user_version = -1
 User-defined version number for the database schema.
 
int busy_timeout = 1000
 Timeout in milliseconds for busy handler.
 
int page_size = 4096
 SQLite page size.
 
int cache_size = 2000
 SQLite cache size (in pages).
 
int analysis_limit = 1000
 Maximum number of rows to analyze.
 
int wal_autocheckpoint = 1000
 WAL auto-checkpoint threshold.
 
JournalMode journal_mode = JournalMode::DELETE_MODE
 SQLite journal mode.
 
SynchronousMode synchronous = SynchronousMode::FULL
 SQLite synchronous mode.
 
LockingMode locking_mode = LockingMode::NORMAL
 SQLite locking mode.
 
AutoVacuumMode auto_vacuum_mode = AutoVacuumMode::NONE
 SQLite auto-vacuum mode.
 
TransactionMode default_txn_mode = TransactionMode::IMMEDIATE
 

Detailed Description

Configuration class for SQLite database settings.

Definition at line 11 of file Config.hpp.

Constructor & Destructor Documentation

◆ Config()

sqlite_containers::Config::Config ( )
default

Default constructor.

Member Data Documentation

◆ analysis_limit

int sqlite_containers::Config::analysis_limit = 1000

Maximum number of rows to analyze.

Definition at line 23 of file Config.hpp.

◆ auto_vacuum_mode

AutoVacuumMode sqlite_containers::Config::auto_vacuum_mode = AutoVacuumMode::NONE

SQLite auto-vacuum mode.

Definition at line 28 of file Config.hpp.

◆ busy_timeout

int sqlite_containers::Config::busy_timeout = 1000

Timeout in milliseconds for busy handler.

Definition at line 20 of file Config.hpp.

◆ cache_size

int sqlite_containers::Config::cache_size = 2000

SQLite cache size (in pages).

Definition at line 22 of file Config.hpp.

◆ db_path

std::string sqlite_containers::Config::db_path

Path to the SQLite database file.

Definition at line 13 of file Config.hpp.

◆ default_txn_mode

TransactionMode sqlite_containers::Config::default_txn_mode = TransactionMode::IMMEDIATE

Default transaction mode.

Definition at line 29 of file Config.hpp.

◆ in_memory

bool sqlite_containers::Config::in_memory = false

Whether the database should be in-memory.

Definition at line 17 of file Config.hpp.

◆ journal_mode

JournalMode sqlite_containers::Config::journal_mode = JournalMode::DELETE_MODE

SQLite journal mode.

Definition at line 25 of file Config.hpp.

◆ locking_mode

LockingMode sqlite_containers::Config::locking_mode = LockingMode::NORMAL

SQLite locking mode.

Definition at line 27 of file Config.hpp.

◆ page_size

int sqlite_containers::Config::page_size = 4096

SQLite page size.

Definition at line 21 of file Config.hpp.

◆ read_only

bool sqlite_containers::Config::read_only = false

Whether the database is in read-only mode.

Definition at line 15 of file Config.hpp.

◆ synchronous

SynchronousMode sqlite_containers::Config::synchronous = SynchronousMode::FULL

SQLite synchronous mode.

Definition at line 26 of file Config.hpp.

◆ table_name

std::string sqlite_containers::Config::table_name

Name of the database table.

Definition at line 14 of file Config.hpp.

◆ use_async

bool sqlite_containers::Config::use_async = false

Whether to use asynchronous write.

Definition at line 18 of file Config.hpp.

◆ use_uri

bool sqlite_containers::Config::use_uri = false

Whether to use URI for opening the database.

Definition at line 16 of file Config.hpp.

◆ user_version

int sqlite_containers::Config::user_version = -1

User-defined version number for the database schema.

Definition at line 19 of file Config.hpp.

◆ wal_autocheckpoint

int sqlite_containers::Config::wal_autocheckpoint = 1000

WAL auto-checkpoint threshold.

Definition at line 24 of file Config.hpp.


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