Lightweight 0.20251202.0
Loading...
Searching...
No Matches
Lightweight::SqlBackup::RestoreSettings Struct Reference

Configuration for restore operations including memory management. More...

#include <SqlBackup.hpp>

Public Attributes

std::size_t batchSize = 0
 
std::size_t maxRowsPerCommit = 10000
 
std::size_t cacheSizeKB = 65536
 
std::size_t memoryLimitBytes = 0
 Memory limit in bytes (0 = auto-detect from system).
 
bool schemaOnly = false
 If true, only recreate schema without importing data.
 

Detailed Description

Configuration for restore operations including memory management.

Definition at line 59 of file SqlBackup.hpp.

Member Data Documentation

◆ batchSize

std::size_t Lightweight::SqlBackup::RestoreSettings::batchSize = 0

Batch size for insert operations (rows per batch). Default: 0 (auto-calculated based on available memory).

Definition at line 63 of file SqlBackup.hpp.

◆ maxRowsPerCommit

std::size_t Lightweight::SqlBackup::RestoreSettings::maxRowsPerCommit = 10000

Maximum rows before an intermediate commit within a chunk. Helps reduce transaction log / WAL memory accumulation. Default: 10000. Set to 0 to disable intermediate commits.

Definition at line 68 of file SqlBackup.hpp.

◆ cacheSizeKB

std::size_t Lightweight::SqlBackup::RestoreSettings::cacheSizeKB = 65536

Database page cache size in KB (used for SQLite PRAGMA cache_size, could be extended for other DBMS memory hints). Default: 65536 (64MB). Set to 0 to use database default.

Definition at line 73 of file SqlBackup.hpp.

◆ memoryLimitBytes

std::size_t Lightweight::SqlBackup::RestoreSettings::memoryLimitBytes = 0

Memory limit in bytes (0 = auto-detect from system).

Definition at line 76 of file SqlBackup.hpp.

◆ schemaOnly

bool Lightweight::SqlBackup::RestoreSettings::schemaOnly = false

If true, only recreate schema without importing data.

Definition at line 79 of file SqlBackup.hpp.


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