parameters: (self)
docstring: Creates a database connection.
  
      Raises:
        psycopg2.Error/Warning in case of error.
docstring_summary: Creates a database connection.
docstring_tokens: Creates a database connection .
function: def _Connect(self):
      """Creates a database connection.
  
      Raises:
        psycopg2.Error/Warning in case of error.
      """
      if not self._connection:
        self._connection = psycopg2.connect(dbname=self._database,
                                            user=self._username,
                                            host=self._host,
                                            password=self._pass,
                                            port=self._port)
function_tokens: def _Connect ( self ) : if not self . _connection : self . _connection = psycopg2 . connect ( dbname = self . _database , user = self . _username , host = self . _host , password = self . _pass , port = self . _port )