Dump the physical PGDATA directory to a gzipped tar archive. The archive is intended to be loaded back into pglite-oxide/PGlite with the same PostgreSQL/PGlite version. Use [`dump_sql`](Self::dump_sql) for logical backups across versions.
(&mut self)
| 407 | /// the same PostgreSQL/PGlite version. Use [`dump_sql`](Self::dump_sql) for |
| 408 | /// logical backups across versions. |
| 409 | pub fn dump_data_dir(&mut self) -> Result<Vec<u8>> { |
| 410 | self.dump_data_dir_with_format(DataDirArchiveFormat::TarGz) |
| 411 | } |
| 412 | |
| 413 | /// Dump the physical PGDATA directory with the selected archive format. |
| 414 | pub fn dump_data_dir_with_format(&mut self, format: DataDirArchiveFormat) -> Result<Vec<u8>> { |
nothing calls this directly
no test coverage detected