code: def parse_bind(bind):
      
      if isinstance(bind, Connection):
          engine = bind.engine
      else:
          engine = bind
      m = re.match(r"Engine\((.*?)\)", str(engine))
      if m is not None:
          u = urlparse(m.group(1))
          # Add Scheme to uses_netloc or // will be missing from url.
          uses_netloc.append(u.scheme)
          safe_url = ""
          if u.password is None:
              safe_url = u.geturl()
          else:
              # Strip password from URL
              host_info = u.netloc.rpartition('@')[-1]
              parts = u._replace(netloc='{}@{}'.format(u.username, host_info))
              safe_url = parts.geturl()
          sql = {}
          sql['database_type'] = u.scheme
          sql['url'] = safe_url
          if u.username is not None:
              sql['user'] = "{}".format(u.username)
      return sql
docs: Parses a connection string and creates SQL trace metadata