|
|
|
@ -1,11 +1,10 @@
|
|
|
|
|
import { DATA_BASE_TYPES, DATA_BASE_TYPES_OTHER, DESIGN_DRIVER_TYPE, OTHER_JDBC } from '@constants/constant'; |
|
|
|
|
import { CONSTANT_PLUGIN_TYPES } from './app.constant'; |
|
|
|
|
import { DatabaseType } from './app.typings'; |
|
|
|
|
import { Connection } from './crud/crud.typings'; |
|
|
|
|
export function getAllDatabaseTypes():DatabaseType[] { |
|
|
|
|
return [ |
|
|
|
|
...DATA_BASE_TYPES, |
|
|
|
|
...BI.Constants.getConstant(CONSTANT_PLUGIN_TYPES).map(item => { |
|
|
|
|
...BI.Providers.getProvider('dec.connection.provider.datebase').customDatabaseType.map(item => { |
|
|
|
|
return { |
|
|
|
|
...item, |
|
|
|
|
internal: false, |
|
|
|
@ -15,7 +14,7 @@ export function getAllDatabaseTypes():DatabaseType[] {
|
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
function getPlugin(type: string) { |
|
|
|
|
return BI.Constants.getConstant(CONSTANT_PLUGIN_TYPES).find(item => item.databaseType === type); |
|
|
|
|
return BI.Providers.getProvider('dec.connection.provider.datebase').customDatabaseType.find(item => item.databaseType === type); |
|
|
|
|
} |
|
|
|
|
export function getPluginWidgetShow(plugin: string) { |
|
|
|
|
return BI.get(getPlugin(plugin), 'show'); |
|
|
|
|