|
|
@ -1,6 +1,7 @@ |
|
|
|
import { Connection, ConnectionJDBC, ConnectionJNDI, ConnectionPlugin } from '../../../crud/crud.typings'; |
|
|
|
import { Connection, ConnectionJDBC, ConnectionJNDI, ConnectionPlugin } from '../../../crud/crud.typings'; |
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
import { getAllDatabaseTypes, getJdbcDatabaseType } from 'src/modules/app.service'; |
|
|
|
import { getAllDatabaseTypes, getJdbcDatabaseType } from 'src/modules/app.service'; |
|
|
|
|
|
|
|
import { DATA_BASE_TYPES_OTHER } from '@constants/constant'; |
|
|
|
|
|
|
|
|
|
|
|
export function getCreator(connection: Connection) { |
|
|
|
export function getCreator(connection: Connection) { |
|
|
|
switch (connection.connectionType) { |
|
|
|
switch (connection.connectionType) { |
|
|
@ -31,6 +32,8 @@ export function hasRegistered(databaseType: string) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
case connectionType.JNDI: |
|
|
|
case connectionType.JNDI: |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
case DATA_BASE_TYPES_OTHER.text: |
|
|
|
|
|
|
|
return true; |
|
|
|
default: |
|
|
|
default: |
|
|
|
return allDatabaseTypes.some(item => item.databaseType === databaseType); |
|
|
|
return allDatabaseTypes.some(item => item.databaseType === databaseType); |
|
|
|
} |
|
|
|
} |
|
|
|