code: public static MariaDbConnection newConnection(UrlParser urlParser, GlobalStateInfo globalInfo)
        throws SQLException {
      if (urlParser.getOptions().pool) {
        return Pools.retrievePool(urlParser).getConnection();
      }
  
      Protocol protocol = Utils.retrieveProxy(urlParser, globalInfo);
      return new MariaDbConnection(protocol);
    }
docs: Create new connection Object.
  
  @param urlParser  parser
  @param globalInfo global info
  @return connection object
  @throws SQLException if any connection error occur