mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-59 Drivers in CB EE
This commit is contained in:
+3
@@ -152,6 +152,9 @@ public class WebDatabaseDriverConfig {
|
||||
cfg.setHostPort(driver.getDefaultPort());
|
||||
cfg.setUrl(driver.getDataSourceProvider().getConnectionURL(driver, cfg));
|
||||
DBPPropertyDescriptor[] properties = driver.getDataSourceProvider().getConnectionProperties(webSession.getProgressMonitor(), driver, cfg);
|
||||
if (properties == null) {
|
||||
return new WebPropertyInfo[0];
|
||||
}
|
||||
|
||||
PropertySourceCustom propertySource = new PropertySourceCustom(
|
||||
properties,
|
||||
|
||||
@@ -155,7 +155,7 @@ public class CBPlatform extends BasePlatformImpl {
|
||||
continue;
|
||||
}
|
||||
List<? extends DBPDriverLibrary> libraries = driver.getDriverLibraries();
|
||||
if (!libraries.isEmpty()) {
|
||||
{
|
||||
boolean hasAllFiles = true;
|
||||
for (DBPDriverLibrary lib : libraries) {
|
||||
if (!lib.isOptional() && lib.getType() != DBPDriverLibrary.FileType.license &&
|
||||
@@ -172,7 +172,7 @@ public class CBPlatform extends BasePlatformImpl {
|
||||
}
|
||||
}
|
||||
}
|
||||
log.info("Available drivers: " + applicableDrivers.stream().map(DBPDriver::getId).collect(Collectors.joining(",")));
|
||||
log.info("Available drivers: " + applicableDrivers.stream().map(DBPDriver::getFullName).collect(Collectors.joining(",")));
|
||||
|
||||
sessionManager = WebSessionManager.getInstance();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user