MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / dump_data_dir

Method dump_data_dir

src/pglite/client.rs:409–411  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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>> {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected