code: def set_connection(self, url):
          
          u = urlparse(url)
  
          if u.netloc.find('@') > -1 and (u.scheme == 'bolt' or u.scheme == 'bolt+routing'):
              credentials, hostname = u.netloc.rsplit('@', 1)
              username, password, = credentials.split(':')
          else:
              raise ValueError("Expecting url format: bolt://user:password@localhost:7687"
                               " got {0}".format(url))
  
          self.driver = GraphDatabase.driver(u.scheme + '://' + hostname,
                                             auth=basic_auth(username, password),
                                             encrypted=config.ENCRYPTED_CONNECTION,
                                             max_pool_size=config.MAX_POOL_SIZE)
          self.url = url
          self._pid = os.getpid()
          self._active_transaction = None
docs: Sets the connection URL to the address a Neo4j server is set up at