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

#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 108 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 112 of file SqlBackup.hpp.

◆ maxRowsPerCommit

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

The rows after which a chunk's transaction is committed and a new one begun, on a database whose formatter bounds bulk-load transactions (SQLite, whose write-ahead log grows with the open transaction); elsewhere a chunk commits as one transaction. 0 commits once per chunk. Once a row of a chunk failed, the chunk commits batch by batch instead.

Definition at line 118 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 123 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 126 of file SqlBackup.hpp.

◆ schemaOnly

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

If true, only recreate schema without importing data.

Definition at line 129 of file SqlBackup.hpp.


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