function parseConnectionString(provider, connectionUrl) {
  let parameters = {}
  try {
    const parsedUrl = new URL(connectionUrl)
    parameters = {
      host: parsedUrl.hostname,
      port: parsedUrl.port,
      dbName: parsedUrl.pathname && decodeURIComponent(parsedUrl.pathname.split('/')[1])
    }
  } catch (err) {
    logger.warn('Failed to parse connection string for %s: %s', provider, err.message)
  }
  return parameters
}
Parses a connection string. Most database engines in prisma are SQL and all
have similar engine strings.

**Note**: This will not parse ms sql server, instead will log a warning

@param {string} provider prisma provider(i.e. mysql, postgres, mongodb)
@param {string} connectionUrl connection string to db
@returns {object} { host, port, dbName }