pub async fn configure_database(
ssh: &mut SshClient,
config: &PostgresConfig,
) -> Result<()>Expand description
Configure PostgreSQL database and user (idempotent)
This function will:
- Create database if it doesn’t exist
- Create user if it doesn’t exist
- Grant permissions (idempotent)
§Arguments
ssh- SSH connection to the serverconfig- PostgreSQL configuration