This commit is contained in:
Sam Rose 2024-11-06 10:42:50 +00:00
parent 85d42002f9
commit a344f2216c
No known key found for this signature in database
2 changed files with 3558 additions and 3467 deletions

File diff suppressed because it is too large Load Diff

View File

@ -52,6 +52,7 @@ export interface DatasourceDescribeReturn {
dsProvider: Promise<DatasourceDescribeReturnPromise> dsProvider: Promise<DatasourceDescribeReturnPromise>
isInternal: boolean isInternal: boolean
isExternal: boolean isExternal: boolean
isSql: boolean
isMySQL: boolean isMySQL: boolean
isPostgres: boolean isPostgres: boolean
isMongodb: boolean isMongodb: boolean
@ -118,6 +119,13 @@ export function datasourceDescribe(
dsProvider: createDatasources(config, name), dsProvider: createDatasources(config, name),
isInternal: name === DatabaseName.SQS, isInternal: name === DatabaseName.SQS,
isExternal: name !== DatabaseName.SQS, isExternal: name !== DatabaseName.SQS,
isSql: [
DatabaseName.MARIADB,
DatabaseName.MYSQL,
DatabaseName.POSTGRES,
DatabaseName.SQL_SERVER,
DatabaseName.ORACLE,
].includes(name),
isMySQL: name === DatabaseName.MYSQL, isMySQL: name === DatabaseName.MYSQL,
isPostgres: name === DatabaseName.POSTGRES, isPostgres: name === DatabaseName.POSTGRES,
isMongodb: name === DatabaseName.MONGODB, isMongodb: name === DatabaseName.MONGODB,