|
|
|
@ -5,7 +5,7 @@ import { FormItemXtype } from '../../components/form_item/form_item';
|
|
|
|
|
import { Connection, ConnectionJDBC, ConnectionPoolJDBC } from 'src/modules/crud/crud.typings'; |
|
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
|
import { CONNECT_CHARSET } from '@constants/constant'; |
|
|
|
|
import { getAllDatabaseTypes, getJdbcDatabaseType, resolveUrlInfo } from '../../../../app.service'; |
|
|
|
|
import { getAllDatabaseTypes, getJdbcDatabaseType, resolveUrlInfo, splitUrl } from '../../../../app.service'; |
|
|
|
|
|
|
|
|
|
export const FormJdbcXtype = 'dec.dcm.maintain.form.jdbc'; |
|
|
|
|
@shortcut(FormJdbcXtype) |
|
|
|
@ -652,8 +652,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
const host = this.form.host.getValue(); |
|
|
|
|
const port = this.form.port.getValue(); |
|
|
|
|
const database = this.form.database.getValue(); |
|
|
|
|
this.form.url.setValue(url.replace('hostname', host).replace(':port', port ? `:${port}` : '') |
|
|
|
|
.replace('database', database)); |
|
|
|
|
this.form.url.setValue(splitUrl(host, port, database, url)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public setSchemas(schemas: string[]) { |
|
|
|
|