Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbeaver/dbeaver-vscode#7 Driver downloads API #3069

Open
wants to merge 8 commits into
base: devel
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,18 @@ type DatabaseAuthModel {
}

type DriverInfo {
# Driver unique full ID. It is `providerId + "." + driverId`.
# It is recommended to use providerId and driverId separately.
id: ID!
name: String
description: String
icon: String
iconBig: String

# Driver provider ID
providerId: ID
# Driver ID. It is unique within provider
driverId: ID!
# Driver provider ID. It is globally unique
providerId: ID!
# Driver Java class name
driverClassName: String
defaultHost: String
Expand Down Expand Up @@ -271,6 +275,7 @@ type DriverInfo {

configurationTypes: [DriverConfigurationType]!

driverInstalled: Boolean!
driverLibraries: [DriverLibraryInfo!]!
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public String getIconBig() {
return WebServiceUtils.makeIconId(driver.getIconBig());
}

@Property
public String getDriverId() {
return driver.getId();
}

@Property
public String getProviderId() {
return driver.getProviderId();
Expand Down Expand Up @@ -295,6 +300,11 @@ public WebDriverLibraryInfo[] getDriverLibraries() {
.toArray(WebDriverLibraryInfo[]::new);
}

@Property
public boolean isDriverInstalled() {
return driver.needsExternalDependencies();
}

@Property
public boolean getUseCustomPage() {
return !ArrayUtils.isEmpty(driver.getMainPropertyDescriptors());
Expand Down