feat(h2): bundle multi-version JDBC drivers

This commit is contained in:
t8y2 committed 2026-08-20 17:41:22 +08:00
1 parent a6a76640e0
commit 345cd3f8b3
18 files changed
+1358 -113

No files matched your search

@@ -650,6 +650,7 @@ public abstract class AbstractJdbcAgent extends BaseDatabaseAgent {
appendPoolIdentity(identity, "driverPath" + index, driverPaths.get(index));
}
}
appendPoolIdentity(identity, "driverProfile", params.getDriver_profile());
return identity.toString();
}
@@ -23,6 +23,7 @@ public final class ConnectParams {
private String gbase_server;
private String informix_server;
private String sessionRole;
private String driver_profile;
public ConnectParams() {
this("", 0, "", "", "", "", "", false, "", Collections.emptyList());
@@ -209,6 +210,14 @@ public final class ConnectParams {
this.sessionRole = sessionRole;
}
public String getDriver_profile() {
return driver_profile;
}
public void setDriver_profile(String driver_profile) {
this.driver_profile = driver_profile;
}
@Override
public boolean equals(Object other) {
if (this == other) return true;
@@ -231,13 +240,14 @@ public final class ConnectParams {
&& Objects.equals(client_key_path, that.client_key_path)
&& Objects.equals(gbase_server, that.gbase_server)
&& Objects.equals(informix_server, that.informix_server)
&& Objects.equals(sessionRole, that.sessionRole);
&& Objects.equals(sessionRole, that.sessionRole)
&& Objects.equals(driver_profile, that.driver_profile);
}
@Override
public int hashCode() {
return Objects.hash(host, port, database, username, password, url_params, connection_string,
port_explicit, mysql_compat_mode, jdbc_driver_class, jdbc_driver_paths, ssl, ca_cert_path, client_cert_path, client_key_path, gbase_server, informix_server, sessionRole);
port_explicit, mysql_compat_mode, jdbc_driver_class, jdbc_driver_paths, ssl, ca_cert_path, client_cert_path, client_key_path, gbase_server, informix_server, sessionRole, driver_profile);
}
@Override
@@ -260,6 +270,7 @@ public final class ConnectParams {
+ ", gbase_server=" + gbase_server
+ ", informix_server=" + informix_server
+ ", sessionRole=" + sessionRole
+ ", driver_profile=" + driver_profile
+ ")";
}
}