def _parse_dsn(self, dsn):
    'Method parses dsn\n\n        Args:   \n           dsn (str): dsn\n\n        Returns:\n           bool: True\n\n        Raises:\n           exception: Exception\n\n        '
    dsn_opt = dsn.split(':')[1]
    dsn_opt_tokens = dsn_opt.split(';')
    for dsn_opt_token in dsn_opt_tokens:
        opt = dsn_opt_token.split('=')
        if (opt[0] == 'host'):
            self._host = opt[1]
        if (opt[0] == 'port'):
            self._port = int(opt[1])
        if (opt[0] == 'database'):
            self._dbname = opt[1]
        if (opt[0] == 'user'):
            self._username = opt[1]
        if (opt[0] == 'password'):
            self._password = opt[1]
    return True
Method parses dsn

Args:   
   dsn (str): dsn

Returns:
   bool: True

Raises:
   exception: Exception
def _parse_dsn(self, dsn):
    'Method parses dsn\n\n        Args:   \n           dsn (str): dsn\n\n        Returns:\n           bool: True\n\n        Raises:\n           exception: Exception\n\n        '
    dsn_opt = dsn.split(':')[1]
    dsn_opt_tokens = dsn_opt.split(';')
    for dsn_opt_token in dsn_opt_tokens:
        opt = dsn_opt_token.split('=')
        if (opt[0] == 'host'):
            self._host = opt[1]
        if (opt[0] == 'port'):
            self._port = int(opt[1])
        if (opt[0] == 'database'):
            self._dbname = opt[1]
        if (opt[0] == 'user'):
            self._username = opt[1]
        if (opt[0] == 'password'):
            self._password = opt[1]
    return True