docs: def get_connection_details(section):
      """
      Asks the user for the database connection details and returns them as a
      ConfigParser-object.
      
      Parameters
      ----------
      None
      
      Returns
      -------
      cfg : configparser.ConfigParser
          Used for configuration file parser language.
      """
      print('Please enter your connection details:')
      dialect = input('Enter input value for `dialect` (default: psycopg2): ') or 'psycopg2'
      username = input('Enter value for `username`: ')
      database = input('Enter value for `database`: ')
      host = input('Enter value for `host`: ')
      port = input('Enter value for `port` (default: 5432): ') or '5432'
  
      cfg = cp.ConfigParser()
      cfg.add_section(section)
      cfg.set(section, 'dialect', dialect)
      cfg.set(section, 'username', username)
      cfg.set(section, 'host', host)
      cfg.set(section, 'port', port)
      cfg.set(section, 'database', database)
      pw = getpass.getpass(prompt="Enter your password/token to " \
                                          "store it in "
                                          "keyring: ".format(database=section))
      keyring.set_password(section, cfg.get(section, "username"), pw)
      
      return cfg