Skip to content

Commit

Permalink
dbeaver/dbeaver-vscode#7 Driver downloads API (#3069)
Browse files Browse the repository at this point in the history
* dbeaver/dbeaver-vscode#7 Driver downloads API

* dbeaver/dbeaver-vscode#7 Bring short driver ID into GQL

* #7 fix: make required fields required

* dbeaver/dbeaver-vscode#7 fix check driver maven library validation

---------

Co-authored-by: Alexey <wrouds@gmail.com>
Co-authored-by: Ainur <ainur.iagudin@dbeaver.com>
  • Loading branch information
3 people authored Dec 2, 2024
1 parent 85bfcc0 commit 74dbd50
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,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 @@ -272,6 +276,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(webSession.getProgressMonitor());
}

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

0 comments on commit 74dbd50

Please sign in to comment.