diff --git a/private/i18n.ts b/private/i18n.ts index a36b80e..8f00670 100644 --- a/private/i18n.ts +++ b/private/i18n.ts @@ -54,7 +54,7 @@ export default { 'Dec-Dcm_Connection_Form_Database_URL': '数据连接URL', 'Dec-Dcm_Connection_Form_Place_Input': '请输入', 'Dec-Dcm_Connection_Form_OriginalCharsetName': '编码', - 'Dec-Dcm_Connection_Form_Auto': '自动', + 'Dec-Dcm_Connection_Form_Default': '默认', 'Dec-Dcm_Connection_Form_Host': '主机', 'Dec-Dcm_Connection_Form_AuthType': '认证方式', 'Dec-Dcm_Connection_Form_UserName': '用户名', diff --git a/src/modules/constants/constant.ts b/src/modules/constants/constant.ts index c519031..5bb3778 100644 --- a/src/modules/constants/constant.ts +++ b/src/modules/constants/constant.ts @@ -550,6 +550,17 @@ export const DATA_BASE_TYPES = [ hasSchema: true, kerberos: false, fetchSize: 10000, + }, { + text: 'Tidb', + databaseType: 'tidb', + driver: 'com.mysql.jdbc.Driver', + drivers: ['com.mysql.jdbc.Driver'], + url: 'jdbc:mysql://hostname:port/database', + commonly: false, + internal: true, + type: 'jdbc', + hasSchema: false, + kerberos: false, }, { text: 'Presto', databaseType: 'presto', @@ -653,7 +664,7 @@ export const DATA_BASE_TYPES = [ export const CONNECT_CHARSET = [ { - text: BI.i18nText('Dec-Dcm_Connection_Form_Auto'), + text: BI.i18nText('Dec-Dcm_Connection_Form_Default'), value: '', }, { diff --git a/src/modules/pages/connection/connection_jdbc/connection_jdbc.ts b/src/modules/pages/connection/connection_jdbc/connection_jdbc.ts index eff5383..6f97be8 100644 --- a/src/modules/pages/connection/connection_jdbc/connection_jdbc.ts +++ b/src/modules/pages/connection/connection_jdbc/connection_jdbc.ts @@ -84,7 +84,7 @@ export class ConnectionJdbc extends BI.Widget { { type: FormItem.xtype, name: BI.i18nText('Dec-Dcm_Connection_Form_OriginalCharsetName'), - value: originalCharsetName ? originalCharsetName : BI.i18nText('Dec-Dcm_Connection_Form_Auto'), + value: originalCharsetName ? originalCharsetName : BI.i18nText('Dec-Dcm_Connection_Form_Default'), }, { type: FormItem.xtype, diff --git a/src/modules/pages/connection/connection_jndi/connection_jndi.ts b/src/modules/pages/connection/connection_jndi/connection_jndi.ts index 874120a..54d30a6 100644 --- a/src/modules/pages/connection/connection_jndi/connection_jndi.ts +++ b/src/modules/pages/connection/connection_jndi/connection_jndi.ts @@ -92,7 +92,7 @@ export class ConnectionJndi extends BI.Widget { type: FormItem.xtype, nameWidth: 200, name: BI.i18nText('Dec-Dcm_Connection_Form_OriginalCharsetName'), - value: originalCharsetName ? originalCharsetName : BI.i18nText('Dec-Dcm_Connection_Form_Auto'), + value: originalCharsetName ? originalCharsetName : BI.i18nText('Dec-Dcm_Connection_Form_Default'), }, { type: Collapse.xtype,