Lightweight 0.20251202.0
Loading...
Searching...
No Matches
Lightweight::SqlBackup::ChunkWriter Struct Referenceabstract

Interface for writing backup chunks. More...

#include <SqlBackupFormats.hpp>

Public Member Functions

 ChunkWriter (ChunkWriter const &)=delete
 
 ChunkWriter (ChunkWriter &&)=delete
 
ChunkWriteroperator= (ChunkWriter const &)=delete
 
ChunkWriteroperator= (ChunkWriter &&)=delete
 
virtual void WriteRow (std::span< BackupValue const > row)=0
 
virtual std::string Flush ()=0
 
virtual bool IsChunkFull () const =0
 
virtual void Clear ()=0
 Clears the internal buffer after a flush.
 

Detailed Description

Interface for writing backup chunks.

Definition at line 64 of file SqlBackupFormats.hpp.

Member Function Documentation

◆ WriteRow()

virtual void Lightweight::SqlBackup::ChunkWriter::WriteRow ( std::span< BackupValue const >  row)
pure virtual

Writes a single row to the chunk (buffers it).

Parameters
rowThe row data to write.

◆ Flush()

virtual std::string Lightweight::SqlBackup::ChunkWriter::Flush ( )
pure virtual

Flushes any buffered data to the output.

Returns
The formatted data chunk.

◆ IsChunkFull()

virtual bool Lightweight::SqlBackup::ChunkWriter::IsChunkFull ( ) const
pure virtual

Checks if the current chunk should be finalized (e.g. size limit reached).

Returns
True if the chunk is full.

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