Skip to main content

Module archive

Module archive 

Source
Expand description

Single-file archive output for split (the spool-then-pack model).

An archive (tar.gz, zip, …) is one sequential stream whose entries must be written complete and (for tar) size-first — incompatible with the interleaved statement stream split produces. So archives are built in two phases: spool the tables to a temp directory using the normal parallel writers, then pack each finished file into the archive in one pass.

Enums§

ArchiveFormat
Single-file archive container, inferred from the output path’s extension.

Functions§

pack_directory
Pack every file in src_dir (sorted by name for deterministic ordering) into a single archive at out_path. Entry names are the bare file names.