mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 10:43:06 +08:00
feat:support system database and schemas
This commit is contained in:
@ -17,6 +17,7 @@ import ai.chat2db.spi.jdbc.DefaultMetaService;
|
||||
import ai.chat2db.spi.model.*;
|
||||
import ai.chat2db.spi.sql.SQLExecutor;
|
||||
import ai.chat2db.spi.util.SortUtils;
|
||||
import com.google.common.collect.Lists;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
@ -398,4 +399,14 @@ public class SqlServerMetaData extends DefaultMetaService implements MetaData {
|
||||
public CommandExecutor getCommandExecutor() {
|
||||
return new SqlServerCommandExecutor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getSystemDatabases() {
|
||||
return systemDatabases;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getSystemSchemas() {
|
||||
return systemSchemas;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user