Postgres::getChangeUserSQL PHP Method

getChangeUserSQL() public method

Returns the SQL for changing the current user
public getChangeUserSQL ( $user ) : The
$user The user to change to
return The SQL
    function getChangeUserSQL($user)
    {
        $this->clean($user);
        return "SET SESSION AUTHORIZATION '{$user}';";
    }
Postgres