|
|
@ -51,7 +51,7 @@ export function getJdbcDatabaseType(database: string, driver: string): DatabaseT |
|
|
|
|
|
|
|
|
|
|
|
export function resolveUrlInfo(url: string, database?: string) { |
|
|
|
export function resolveUrlInfo(url: string, database?: string) { |
|
|
|
if (BI.isNull(url)) return {}; |
|
|
|
if (BI.isNull(url)) return {}; |
|
|
|
|
|
|
|
|
|
|
|
return BI.Providers.getProvider('dec.connection.provider.datebase').getJdbcResolveByType(database)(url) || { |
|
|
|
return BI.Providers.getProvider('dec.connection.provider.datebase').getJdbcResolveByType(database)(url) || { |
|
|
|
host: '', |
|
|
|
host: '', |
|
|
|
port: '', |
|
|
|
port: '', |
|
|
@ -77,6 +77,7 @@ export function splitUrl(host: string, port: string, database: string, baseUrl: |
|
|
|
|
|
|
|
|
|
|
|
return baseUrl.replace('hostname', host).replace(':port', port ? `:${port}` : '') |
|
|
|
return baseUrl.replace('hostname', host).replace(':port', port ? `:${port}` : '') |
|
|
|
.replace('/database', `/${database}`) |
|
|
|
.replace('/database', `/${database}`) |
|
|
|
|
|
|
|
.replace(':database', `:${database}`) |
|
|
|
.replace('dbname', database); |
|
|
|
.replace('dbname', database); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|