SQLite Containers
Loading...
Searching...
No Matches
Config.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include "Enums.hpp"
7
8namespace sqlite_containers {
9
33
34}; // namespace sqlite_containers
Contains enumerations and utility functions related to SQLite modes.
Configuration class for SQLite database settings.
Definition Config.hpp:11
int wal_autocheckpoint
WAL auto-checkpoint threshold.
Definition Config.hpp:24
std::string db_path
Path to the SQLite database file.
Definition Config.hpp:13
int analysis_limit
Maximum number of rows to analyze.
Definition Config.hpp:23
AutoVacuumMode auto_vacuum_mode
SQLite auto-vacuum mode.
Definition Config.hpp:28
std::string table_name
Name of the database table.
Definition Config.hpp:14
JournalMode journal_mode
SQLite journal mode.
Definition Config.hpp:25
bool read_only
Whether the database is in read-only mode.
Definition Config.hpp:15
int user_version
User-defined version number for the database schema.
Definition Config.hpp:19
SynchronousMode synchronous
SQLite synchronous mode.
Definition Config.hpp:26
bool use_uri
Whether to use URI for opening the database.
Definition Config.hpp:16
bool use_async
Whether to use asynchronous write.
Definition Config.hpp:18
bool in_memory
Whether the database should be in-memory.
Definition Config.hpp:17
TransactionMode default_txn_mode
Definition Config.hpp:29
LockingMode locking_mode
SQLite locking mode.
Definition Config.hpp:27
int busy_timeout
Timeout in milliseconds for busy handler.
Definition Config.hpp:20
int page_size
SQLite page size.
Definition Config.hpp:21
Config()=default
Default constructor.
int cache_size
SQLite cache size (in pages).
Definition Config.hpp:22
SynchronousMode
SQLite synchronous modes enumeration.
Definition Enums.hpp:24
@ FULL
Full synchronous mode.
TransactionMode
Defines SQLite transaction modes.
Definition Enums.hpp:56
@ IMMEDIATE
Locks the database for writing at the start, allowing only read operations by others.
LockingMode
SQLite locking modes enumeration.
Definition Enums.hpp:33
@ NORMAL
Normal locking mode.
JournalMode
SQLite journal modes enumeration.
Definition Enums.hpp:13
@ DELETE_MODE
Delete journal mode.
AutoVacuumMode
SQLite auto-vacuum modes enumeration.
Definition Enums.hpp:40