mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-28 18:22:54 +08:00
support drop table
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package ai.chat2db.plugin.clickhouse;
|
||||
|
||||
import ai.chat2db.spi.DBManage;
|
||||
import ai.chat2db.spi.sql.SQLExecutor;
|
||||
|
||||
public class ClickHouseDBManage implements DBManage {
|
||||
@Override
|
||||
@ -39,6 +40,9 @@ public class ClickHouseDBManage implements DBManage {
|
||||
|
||||
@Override
|
||||
public void dropTable(String databaseName, String schemaName, String tableName) {
|
||||
|
||||
String sql = "DROP TABLE IF EXISTS " + databaseName + "." + tableName;
|
||||
SQLExecutor.getInstance().executeSql(sql, resultSet -> null);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user