code: public Connection connect(final String url, final Properties props) throws SQLException {
  
      UrlParser urlParser = UrlParser.parse(url, props);
      if (urlParser == null || urlParser.getHostAddresses() == null) {
        return null;
      } else {
        return MariaDbConnection.newConnection(urlParser, null);
      }
  
    }
docs: Connect to the given connection string.
  
  @param url the url to connect to
  @return a connection
  @throws SQLException if it is not possible to connect