check_required_tools

Function check_required_tools 

Source
pub fn check_required_tools() -> Result<()>
Expand description

Check that required PostgreSQL client tools are available

Verifies that the following tools are installed and in PATH:

  • pg_dump - For dumping database schema and data
  • pg_dumpall - For dumping global objects (roles, tablespaces)
  • psql - For restoring databases

§Returns

Returns Ok(()) if all required tools are found.

§Errors

Returns an error with installation instructions if any tools are missing.

§Examples

// Check if PostgreSQL tools are installed
check_required_tools()?;