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

#include <SqlBackup.hpp>

Public Attributes

std::string name {}
 
std::vector< std::uint8_t > content {}
 The bytes the archive stores for this attachment.
 

Detailed Description

A caller-supplied file that a backup stores in its archive next to the table data.

The archive holds it as attachments/<name> and lists it in checksums.json; restore ignores it.

Definition at line 51 of file SqlBackup.hpp.

Member Data Documentation

◆ name

std::string Lightweight::SqlBackup::BackupAttachment::name {}

The relative path within attachments/ as UTF-8, with / separating folders (e.g. notes/readme.txt). It must be well-formed UTF-8 without control characters, must not be empty, start or end with /, contain a backslash or a colon, or have an empty, . or .. path segment. Ignoring ASCII letter case, it must differ from every other attachment's name and must not be the folder of another one.

Definition at line 57 of file SqlBackup.hpp.

◆ content

std::vector<std::uint8_t> Lightweight::SqlBackup::BackupAttachment::content {}

The bytes the archive stores for this attachment.

Definition at line 60 of file SqlBackup.hpp.


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