Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
af496d7
feat: add SQL Server connection
littleniannian Dec 26, 2025
2288469
feat: add SQL Server show databases
littleniannian Dec 26, 2025
553feea
fix: SQLServerConnection cast exception and sql query
littleniannian Dec 26, 2025
5f9a068
feat: show table ddl and columns
littleniannian Dec 29, 2025
ccd4ff5
feat: add column_data_type for sql server
littleniannian Dec 30, 2025
1434e0b
feat: 完成打开表中数据tab的查询功能
littleniannian Dec 30, 2025
834f538
feat: 给SQLServer增加视图,函数,存储过程的能力
littleniannian Dec 30, 2025
67eac74
feat: 完成查询数据库下的表列表 表的列 表下的indexes 分区表 表约束 接口
littleniannian Dec 30, 2025
36afe32
feat: 完成视图列表查询接口
littleniannian Dec 30, 2025
ee47338
feat: 完成函数列表查询接口
littleniannian Dec 30, 2025
9b6980f
feat: 完成存储过程列表查询接口
littleniannian Dec 30, 2025
4ba01a0
feat: 完成查询视图详情接口
littleniannian Dec 30, 2025
3a5df52
feat: 完成函数详情接口
littleniannian Dec 30, 2025
a27f2df
feat: 完成查询存储过程详情接口
littleniannian Dec 30, 2025
70bd898
fix: 增加unique枚举 sql server schema插件中增加connect插件依赖 防止编译报错
littleniannian Dec 30, 2025
57abb96
fix: 增加cluster索引枚举
littleniannian Dec 30, 2025
0159111
fix: 重写新增的buildForSqlServer 接口
littleniannian Dec 30, 2025
1c52bcc
feat: 增加SQLServer的函数 存储过程 视图 拓展类
littleniannian Dec 30, 2025
6f1ed4f
fix: 去除Editor类导致的编译报错问题
littleniannian Dec 31, 2025
e5cf7ed
fix: 修复catalogName非空校验
littleniannian Dec 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libs/db-browser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<oracle.jdbc.version>21.1.0.0</oracle.jdbc.version>
<caffeine.version>2.8.0</caffeine.version>
<postgres.jdbc.version>42.7.3</postgres.jdbc.version>
<mssql.jdbc.version>12.8.2.jre8</mssql.jdbc.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -226,6 +227,11 @@
<artifactId>postgresql</artifactId>
<version>${postgres.jdbc.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>${mssql.jdbc.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public T create() {
return buildForOdpSharding();
case POSTGRESQL:
return buildForPostgres();
case SQL_SERVER:
return buildForSqlServer();
default:
throw new IllegalStateException("Not supported for the type, " + type);
}
Expand All @@ -63,4 +65,6 @@ public T create() {

public abstract T buildForPostgres();

public abstract T buildForSqlServer();

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public interface DBBrowserFactory<T> {
String DORIS = "DORIS";
String ODP_SHARDING_OB_MYSQL = "ODP_SHARDING_OB_MYSQL";
String POSTGRESQL = "POSTGRESQL";
String SQL_SERVER = "SQL_SERVER";

T create();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public DBMViewEditor buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBMViewEditor buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

private DBTableIndexEditor getMViewIndexEditor() {
DBMViewIndexEditorFactory indexFactory = new DBMViewIndexEditorFactory();
indexFactory.setType(this.type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,9 @@ public DBTableIndexEditor buildForOdpSharding() {
public DBTableIndexEditor buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBTableIndexEditor buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public DBObjectOperator buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBObjectOperator buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

private JdbcOperations getJdbcOperations() {
if (this.jdbcOperations != null) {
return this.jdbcOperations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,9 @@ public DBObjectEditor<DBSequence> buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBObjectEditor<DBSequence> buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,9 @@ public DBObjectEditor<DBSynonym> buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBObjectEditor<DBSynonym> buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,9 @@ public DBTableColumnEditor buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBTableColumnEditor buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ public DBTableConstraintEditor buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBTableConstraintEditor buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ public DBTableEditor buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBTableEditor buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

private DBTableIndexEditor getTableIndexEditor() {
DBTableIndexEditorFactory indexFactory = new DBTableIndexEditorFactory();
indexFactory.setType(this.type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.oceanbase.tools.dbbrowser.editor.mysql.OBMySQLIndexEditor;
import com.oceanbase.tools.dbbrowser.editor.oracle.OBOracleIndexEditor;
import com.oceanbase.tools.dbbrowser.editor.oracle.OracleIndexEditor;
import com.oceanbase.tools.dbbrowser.editor.sqlserver.SqlServerIndexEditor;

import lombok.Setter;
import lombok.experimental.Accessors;
Expand Down Expand Up @@ -63,4 +64,9 @@ public DBTableIndexEditor buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBTableIndexEditor buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,9 @@ public DBTablePartitionEditor buildForPostgres() {
throw new UnsupportedOperationException("Not supported yet");
}

@Override
public DBTablePartitionEditor buildForSqlServer() {
throw new UnsupportedOperationException("Not supported yet");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public enum DBConstraintType {
INDEX("INDEX"),
CHECK("CHECK", "C"),
NOT_NULL("NOT NULL", "NOT_NULL"),
UNIQUE("UNIQUE"),
UNKNOWN("UNKNOWN"),
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public enum DBIndexType {
FUNCTION_BASED_BITMAP("FUNCTION-BASED BITMAP"),
DOMAIN("DOMAIN"),
SPATIAL("SPATIAL"),
CLUSTERED("CLUSTERED"),
UNKNOWN("UNKNOWN");

private String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import com.oceanbase.tools.dbbrowser.schema.oracle.OBOracleSchemaAccessor;
import com.oceanbase.tools.dbbrowser.schema.oracle.OracleSchemaAccessor;
import com.oceanbase.tools.dbbrowser.schema.postgre.PostgresSchemaAccessor;
import com.oceanbase.tools.dbbrowser.schema.sqlserver.SqlServerSchemaAccessor;
import com.oceanbase.tools.dbbrowser.util.ALLDataDictTableNames;
import com.oceanbase.tools.dbbrowser.util.VersionUtils;

Expand Down Expand Up @@ -161,6 +162,11 @@ public DBSchemaAccessor buildForPostgres() {
return new PostgresSchemaAccessor(getJdbcOperations());
}

@Override
public DBSchemaAccessor buildForSqlServer() {
return new SqlServerSchemaAccessor(getJdbcOperations());
}

private JdbcOperations getJdbcOperations() {
if (this.jdbcOperations != null) {
return this.jdbcOperations;
Expand Down
Loading