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

Method dump_data_dir_with_format

src/pglite/client.rs:414–417  ·  view source on GitHub ↗

Dump the physical PGDATA directory with the selected archive format.

(&mut self, format: DataDirArchiveFormat)

Source from the content-addressed store, hash-verified

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>> {
415 self.check_ready()?;
416 self.archive_quiesced_pgdata("dump PGDATA archive", format)
417 }
418
419 /// Clone this database into a new temporary [`Pglite`] instance.
420 pub fn try_clone(&mut self) -> Result<Self> {

Callers 3

dump_data_dirMethod · 0.80
try_cloneMethod · 0.80

Calls 2

check_readyMethod · 0.80

Tested by 1