Skip to main content

run

Function run 

Source
pub fn run(settings: &Settings, psql_args: Vec<String>) -> Result<(), CliError>
Expand description

Launch an interactive psql session connected via the active profile.

Translates the profile into PG* environment variables, then replaces the current process with psql. Trailing arguments are forwarded to psql unchanged, so callers can pass flags like -c "SELECT 1" or -f script.sql.

Unlike the rest of the CLI, this command does not pin the session to _mz_deploy_server: interactive shells should use whatever cluster the profile (or server default) selects.