Skip to content

Commit

Permalink
support Apache Doris database connector
Browse files Browse the repository at this point in the history
  • Loading branch information
gdliu3 committed Feb 16, 2024
1 parent 185ba75 commit 1b090d1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You can find the list of all databases supported in commercial versions

* Has a lot of <a href="https://github.com/dbeaver/dbeaver/wiki">features</a> including metadata editor, SQL editor, rich data editor, ERD, data export/import/migration, SQL execution plans, etc.
* Based on <a href="https://wiki.eclipse.org/Rich_Client_Platform">Eclipse</a> platform.
* Uses plugins architecture and provides additional functionality for the following databases: MySQL/MariaDB, PostgreSQL, Greenplum, Oracle, IBM Db2, Exasol, SQL Server, Sybase/SAP ASE, SQLite, Firebird, H2, HSQLDB, Derby, Teradata, Vertica, Netezza, Informix, etc.
* Uses plugins architecture and provides additional functionality for the following databases: MySQL/MariaDB/Doris, PostgreSQL, Greenplum, Oracle, IBM Db2, Exasol, SQL Server, Sybase/SAP ASE, SQLite, Firebird, H2, HSQLDB, Derby, Teradata, Vertica, Netezza, Informix, etc.

<a href="https://dbeaver.io/product/dbeaver-ss-mock.png"><img src="https://dbeaver.io/product/dbeaver-ss-mock.png" width="400"/></a>
<a href="https://dbeaver.io/product/dbeaver-ss-erd.png"><img src="https://dbeaver.io/product/dbeaver-ss-erd.png" width="400"/></a>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ public class MySQLConnectionPage extends ConnectionPageWithAuth implements IDial

private final Image LOGO_MYSQL;
private final Image LOGO_MARIADB;
private final Image LOGO_DORIS;
private boolean needsPort;

public MySQLConnectionPage() {
LOGO_MYSQL = createImage("icons/mysql_logo.png");
LOGO_MARIADB = createImage("icons/mariadb_logo.png");
LOGO_DORIS = createImage("icons/doris_logo.png");
}

@Override
Expand All @@ -79,6 +81,7 @@ public void dispose()
super.dispose();
UIUtils.dispose(LOGO_MYSQL);
UIUtils.dispose(LOGO_MARIADB);
UIUtils.dispose(LOGO_DORIS);
}

@Override
Expand All @@ -90,9 +93,11 @@ public Image getImage() {
if (logoImage != null) {
return DBeaverIcons.getImage(logoImage);
}
if (driver.getId().equalsIgnoreCase(MySQLConstants.DRIVER_ID_MARIA_DB)) {
if (driver.getId().equalsIgnoreCase(MySQLConstants.DRIVER_ID_MARIADB)) {
return LOGO_MARIADB;
} else {
} else if (driver.getId().equalsIgnoreCase(MySQLConstants.DRIVER_ID_DORIS)) {
return LOGO_DORIS;
} else {
return LOGO_MYSQL;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class MySQLConstants {
public static final String DRIVER_ID_MYSQL = "mysql5";
public static final String DRIVER_ID_MYSQL8 = "mysql8";
public static final String DRIVER_ID_MARIA_DB = "mariaDB";
public static final String DRIVER_ID_DORIS = "doris";
public static final String DRIVER_CLASS_MARIA_DB = "org.mariadb.jdbc.Driver";
public static final String DRIVER_PARAM_CLIENTS = "supportsClients";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public DBPNativeClientLocation getDefaultLocalClientLocation() {

@Override
public String getProductName(DBPNativeClientLocation location) {
return "MySQL/MariaDB";
return "MySQL/MariaDB/Doris";
}

@Override
Expand Down

0 comments on commit 1b090d1

Please sign in to comment.