Module utils Copy item path Source PgPassFile Managed .pgpass file for secure password passing to PostgreSQL tools PostgresUrlParts Parsed components of a PostgreSQL connection URL check_required_tools Check that required PostgreSQL client tools are available cleanup_stale_temp_dirs Clean up stale temporary directories from previous runs create_managed_temp_dir Create a managed temporary directory with explicit cleanup support get_keepalive_env_vars Get TCP keepalive environment variables for PostgreSQL client tools get_pg_tool_version Get the major version of a PostgreSQL client tool (pg_dump, psql, etc.) is_serendb_target Check if a PostgreSQL URL points to a SerenDB instance parse_pg_version_string Parse major version from PostgreSQL version string parse_postgres_url Parse a PostgreSQL URL into its components quote_ident Quote a PostgreSQL identifier (database, schema, table, column) quote_literal Quote a SQL string literal (for use in SQL statements) quote_mysql_ident Quote a MySQL identifier (database, table, column) remove_managed_temp_dir Remove a managed temporary directory retry_subprocess_with_backoff Retry a subprocess execution with exponential backoff on connection errors retry_with_backoff Retry a function with exponential backoff sanitize_identifier Sanitize an identifier (table name, schema name, etc.) for display strip_password_from_url Strip password from PostgreSQL connection URL
Returns a new URL with password removed, preserving all other components
This is useful for storing connection strings in places where passwords should not be visible validate_connection_string Validate a PostgreSQL connection string validate_postgres_identifier Validate a PostgreSQL identifier (database name, schema name, etc.) validate_source_target_different Validate that source and target URLs are different to prevent accidental data loss