code: public static String driverClass(String url) {
          assert !blank(url);
  
          if (url.contains(POSTGRESQL_FRAGMENT)) {
              return "org.postgresql.Driver";
          }
          if (url.contains(MYSQL_FRAGMENT)) {
              return "com.mysql.jdbc.Driver";
          }
          if (url.contains(HSQL_FRAGMENT)) {
              return "org.hsqldb.jdbcDriver";
          }
          if (url.contains(H2_FRAGMENT)) {
              return "org.h2.Driver";
          }
          if (url.contains(SQL_SERVER_JTDS_FRAGMENT)) {
              return "net.sourceforge.jtds.jdbc.Driver";
          }
          if (url.contains(SQL_SERVER_MS_2000_FRAGMENT)) {
              return "com.microsoft.jdbc.sqlserver.SQLServerDriver";
          } // 2000
          if (url.contains(SQL_SERVER_MS_2005_FRAGMENT)) {
              return "com.microsoft.sqlserver.jdbc.SQLServerDriver";
          } // 2005
          if (url.contains(DB2_FRAGMENT)) {
              return "com.ibm.db2.jcc.DB2Driver";
          }
          if (url.contains(ORACLE_FRAGMENT)) {
              return "oracle.jdbc.driver.OracleDriver";
          }
  
          return null;
      }
docs: Given a jdbc url, this tries to determine the target database and returns the driver class name as a string.
  
  @param url jdbc url
  @return jdbc driver class name