/** 类型字典 */
export const DSTYPE_DICT_LIST = [
  { label: 'Oracle', value: 1 },
  { label: 'DB2', value: 2 },
  { label: 'Hbase', value: 3 },
  { label: 'XCloud', value: 4 },
  { label: 'MySQL', value: 5 },
  { label: 'SQLServer', value: 6 },
  { label: 'PostgreSQL', value: 9 },
  { label: 'DM', value: 10 }
]
/** 是否开启链接遗漏检测字典 */
export const REMOVEABANDONED_DICT_LIST = [
  { label: '是', value: 1 },
  { label: '否', value: 0 }
]
/** 是否开启缓存游标字典 */
export const POOLPREPAREDSTATEMENTS_DICT_LIST = [
  { label: '是', value: 1 },
  { label: '否', value: 0 }
]
export const DB = {
  // Oracle
  '1': {
    dsdriver: 'oracle.jdbc.driver.OracleDriver',
    dsurl: 'jdbc:oracle:thin:@127.0.0.1:1521:db'
  },
  //db2 url后面的 , 分号不能去掉
  '2': {
    dsdriver: 'com.ibm.db2.jcc.DB2Driver',
    dsurl: 'jdbc:db2://127.0.0.1:50000/db:currentSchema=dbschema,'
  },
  '3': {
    dsdriver: 'org.apache.phoenix.jdbc.PhoenixDriver',
    dsurl: 'jdbc:phoenix:hadoop0,hadoop1,hadoop2:2181'
  },
  '4': { dsdriver: 'com.bonc.xcloud.jdbc.XCloudDriver', dsurl: 'jdbc:xcloud:@127.0.0.1:1803/db' },
  //mySql
  '5': {
    dsdriver: 'com.mysql.jdbc.Driver',
    dsurl: 'jdbc:mysql://127.0.0.1:3306'
  },
  '6': {
    dsdriver: 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
    dsurl: 'jdbc:sqlserver://127.0.0.1:1433,DatabaseName=db'
  },
  '7': {
    dsdriver: 'org.apache.hive.jdbc.HiveDriver',
    dsurl: 'jdbc:hive2://localhost:10000/default'
  },
  '9': { dsdriver: 'org.postgresql.Driver', dsurl: 'jdbc:postgresql://127.0.0.1:5432/db' },
  // 达梦
  '10': { dsdriver: 'dm.jdbc.driver.DmDriver', dsurl: 'jdbc:dm://127.0.0.1:5236/DMSERVER' }
}
