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

Method dump_sql

src/pglite/client.rs:432–437  ·  view source on GitHub ↗
(&mut self, options: PgDumpOptions)

Source from the content-addressed store, hash-verified

430 /// Run the bundled WASIX `pg_dump` against this database and return SQL text.
431 #[cfg(feature = "extensions")]
432 pub fn dump_sql(&mut self, options: PgDumpOptions) -> Result<String> {
433 self.check_ready()?;
434 options.validate()?;
435 self.checkpoint_backend_for_physical_snapshot("direct pg_dump")?;
436 self.dump_sql_via_direct_protocol(&options)
437 }
438
439 /// Run the bundled WASIX `pg_dump` and return UTF-8 SQL bytes.
440 #[cfg(feature = "extensions")]

Callers 1

dump_bytesMethod · 0.45

Calls 4

check_readyMethod · 0.80
validateMethod · 0.45

Tested by

no test coverage detected