public static String inferDriverClassName(String url) {
        return match(url, name -> {
            switch (name) {
            case "h2":
                return "org.h2.Driver";
            case "hsqldb":
                return "org.hsqldb.jdbc.JDBCDriver";
            case "sqlite":
                return "org.sqlite.JDBC";
            case "mysql":
                return "com.mysql.jdbc.Driver";
            case "postgresql":
                return "org.postgresql.Driver";
            case "sqlserver":
                return "com.microsoft.sqlserver.jdbc.SQLServerDriver";
            case "oracle":
                return "oracle.jdbc.driver.OracleDriver";
            case "db2":
                return "com.ibm.db2.jcc.DB2Driver";
            default:
                return null;
            }
        });
    }