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

Configuration for backup operations including compression and chunking. More...

#include <SqlBackup.hpp>

Public Attributes

CompressionMethod method = CompressionMethod::Deflate
 The compression method to use.
 
std::uint32_t level = 6
 
std::size_t chunkSizeBytes = 10 * 1024 * 1024
 
bool schemaOnly = false
 If true, only export schema metadata without backing up table data.
 

Detailed Description

Configuration for backup operations including compression and chunking.

Definition at line 37 of file SqlBackup.hpp.

Member Data Documentation

◆ method

CompressionMethod Lightweight::SqlBackup::BackupSettings::method = CompressionMethod::Deflate

The compression method to use.

Definition at line 40 of file SqlBackup.hpp.

◆ level

std::uint32_t Lightweight::SqlBackup::BackupSettings::level = 6

The compression level (0-9).

  • For Deflate: 1 = fastest, 9 = best compression, 6 = default
  • For Bzip2: 1-9 (block size in 100k units)
  • For Zstd: maps to zstd levels
  • For Store: ignored

Definition at line 47 of file SqlBackup.hpp.

◆ chunkSizeBytes

std::size_t Lightweight::SqlBackup::BackupSettings::chunkSizeBytes = 10 * 1024 * 1024

The target size in bytes for each chunk before flushing. Chunks are flushed when the buffer exceeds this size. Default: 10 MB.

Definition at line 52 of file SqlBackup.hpp.

◆ schemaOnly

bool Lightweight::SqlBackup::BackupSettings::schemaOnly = false

If true, only export schema metadata without backing up table data.

Definition at line 55 of file SqlBackup.hpp.


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