export const OTHER_CONNECT = 'other'; export const JNDI_CONNECT = 'JNDI'; export const MYSQL_CONNECT = 'mysql'; export const DEFAULT_INFO = 'DESIGNER'; export const ACTION_DELETE = 'ACTION_DELETE'; export const ACTION_COPY = 'ACTION_COPY'; export const ACTION_TEST = 'ACTION_TEST'; export const TAB_LINK_SET = 'TAB_LINK_SET'; export const TAB_LINK_POOL = 'TAB_LINK_POOL'; export const DATA_LINKS = ['APACHE KYLIN', 'DERBY', 'HP Vertica', 'IBM DB2', 'INFORMIX', 'Microsoft SQL Server', 'MySQL', 'Oracle', 'Privotal Greenplum Database', 'Postgresql', 'GaussDB 200', 'JNDI']; export const DATA_BASE_TYPE_OTHER = [ { text: 'ADS', databaseType: 'ads', driver: 'com.mysql.jdbc.Driver', url: 'jdbc:mysql://hostname:port/my_ads_db', }, { text: 'Amazon Redshift', databaseType: 'amazon-redshift', driver: 'com.amazon.redshift.jdbc4.Driver', drivers: ['com.amazon.redshift.jdbc4.Driver', 'com.amazon.redshift.jdbc41.Driver'], url: 'jdbc:redshift://endpoint:port/database', }, { text: 'APACHE IMPALA', databaseType: 'apache-impala', driver: 'com.cloudera.impala.jdbc41.Driver', url: 'jdbc:impala://hostname:port/_impala_builtins', }, { text: 'APACHE KYLIN', databaseType: 'apache-kylin', driver: 'org.apache.kylin.jdbc.Driver', url: 'jdbc:kylin://:/', }, { text: 'APACHE Phoenix', databaseType: 'apache-phoenix', driver: 'org.apache.phoenix.jdbc.PhoenixDriver', url: 'jdbc:phoenix:hostname:port/dbname', }, { text: 'DERBY', databaseType: 'derby', driver: 'org.apache.derby.jdbc.ClientDriver', url: 'jdbc:derby://localhost:1527/', }, { text: 'Gbase 8A', databaseType: 'gbase-8a', driver: 'com.gbase.jdbc.Driver', url: 'jdbc:gbase://hostname:port/dbname', }, { text: 'Gbase 8S', databaseType: 'gbase-8s', driver: 'com.gbasedbt.jdbc.IfxDriver', url: 'jdbc:gbasedbt-sqli://{host}:{port}/{database}', }, { text: 'Gbase 8T', databaseType: 'gbase-8t', driver: 'com.informix.jdbc.IfxDriver', url: 'jdbc:informix-sqli://{host}:{port}/{database}:INFORMIXSERVER={server}', }, { text: 'H2', databaseType: 'h2', driver: 'org.h2.Driver', url: 'jdbc:h2://${ENV_HOME}/../databaseName', }, { text: '华为云DWS', databaseType: 'hw-dws', driver: 'org.postgresql.Driver', url: 'jdbc:postgresql://hostname:port/dbname', }, { text: 'FusionInsight elk', databaseType: 'hw-elk', driver: 'org.postgresql.Driver', url: 'jdbc:postgresql://hostname:port/dbname', }, { text: 'FusionInsight HD', databaseType: 'hw-fusioninsight-hd', driver: 'org.apache.hive.jdbc.HiveDriver', url: 'jdbc:hive2://10.135.0.110:24002,10.135.0.67:24002,10.135.0.66:24002/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;sasl.qop=auth-conf;auth=KERBEROS;zk.principal=zookeeper/hadoop;principal=hive/hadoop.hadoop.com@HADOOP.COM;', }, { text: 'GaussDB 200', databaseType: 'hw-libr-a', driver: 'org.postgresql.Driver', url: 'jdbc:postgresql://hostname:port/dbname', }, { text: 'Hadoop Hive', databaseType: 'hadoop-hive', driver: 'org.apache.hive.jdbc.HiveDriver', url: 'jdbc:hive2://hostname:port/databasename', }, { text: 'Hbase', databaseType: 'hbase', driver: 'org.apache.phoenix.jdbc.PhoenixDriver', url: 'jdbc:phoenix:hostname:port/dbname', }, { text: 'HP Vertica', databaseType: 'hp-vertica', driver: 'com.vertica.jdbc.Driver', url: 'jdbc:vertica://ip:port/databaseName', }, { text: 'Hsql', databaseType: 'hsql', driver: 'com.fr.third.org.hsqldb.jdbcDriver', url: 'jdbc:hsqldb:file:[PATH_TO_DB_FILES]', }, { text: 'IBM DB2', databaseType: 'ibm-db2', driver: 'com.ibm.db2.jcc.DB2Driver', url: 'jdbc:db2://hostname:port/dbname', }, { text: 'INFORMIX', databaseType: 'informix', driver: 'com.informix.jdbc.IfxDriver', url: 'jdbc:informix-sqli://{host}:{port}/{database}:INFORMIXSERVER={server}', }, { text: 'KINGBASE', databaseType: 'kingbase', driver: 'com.kingbase.Driver', url: 'jdbc:kingbase://hostname:port', }, { text: 'Microsoft SQL Server', databaseType: 'sql-server', driver: 'com.microsoft.sqlserver.jdbc.SQLServerDriver', url: 'jdbc:sqlserver://localhost:1433;databaseName=', }, { text: 'MySQL', databaseType: 'mysql', driver: 'com.mysql.jdbc.Driver', drivers: ['com.mysql.jdbc.Driver', 'org.gjt.mm.mysql.Driver'], url: 'jdbc:mysql://localhost/dbname', }, { text: 'Oracle', databaseType: 'oracle', driver: 'oracle.jdbc.driver.OracleDriver', url: 'jdbc:oracle:thin:@localhost:1521:databaseName', }, { text: 'Pivotal Greenplum Database', databaseType: 'pivotal-greenplum-database', driver: 'org.postgresql.Driver', url: 'jdbc:postgresql://hostname:port/dbname', }, { text: 'Postgresql', databaseType: 'postgresql', driver: 'org.postgresql.Driver', url: 'jdbc:postgresql://hostname:port/dbname', }, { text: 'Presto', databaseType: 'presto', driver: 'com.facebook.presto.jdbc.PrestoDriver', url: 'jdbc:presto://host:port/catalog', }, { text: 'SAP HANA', databaseType: 'sap-hana', driver: 'com.sap.db.jdbc.Driver', url: 'jdbc:sap://hostname:port?reconnect=true', }, { text: 'SAP Sybase', databaseType: 'sap-sybase', driver: 'com.sybase.jdbc4.jdbc.SybDriver', url: 'jdbc:sybase:Tds:hostname:2638/databasename', }, { text: 'SPARK', databaseType: 'spark', driver: 'org.apache.hive.jdbc.HiveDriver', url: 'jdbc:hive2://hostname:port/databasename', }, { text: 'Sqlite', databaseType: 'sqlite', driver: 'org.sqlite.JDBC', url: 'jdbc:sqlite:[PATH_TO_DB_FILES]', }, { text: 'TeraData', databaseType: 'teradata', driver: 'com.ncr.teradata.TeraDriver', url: 'jdbc:teradata://localhost/CLIENT_CHARSET=EUC_CN,TMODE=TERA,CHARSET=ASCII,LOB_SUPPORT', }, { text: 'TRANSWARP INCEPTOR', databaseType: 'transwarp-inceptor', driver: 'org.apache.hive.jdbc.HiveDriver', url: 'jdbc:hive2://hostname:port/databasename', }, ]; export const DATA_BASE_TYPE = [ { text: 'APACHE KYLIN', databaseType: 'apache-kylin', driver: 'org.apache.kylin.jdbc.Driver', url: 'jdbc:kylin://:/', }, { text: 'DERBY', databaseType: 'derby', driver: 'org.apache.derby.jdbc.ClientDriver', url: 'jdbc:derby://localhost:1527/', }, { text: 'HP Vertica', databaseType: 'hp-vertica', driver: 'com.vertica.jdbc.Driver', url: 'jdbc:vertica://ip:port/databaseName', }, { text: 'IBM DB2', databaseType: 'ibm-db2', driver: 'com.ibm.db2.jcc.DB2Driver', url: 'jdbc:db2://hostname:port/dbname', }, { text: 'INFORMIX', databaseType: 'informix', driver: 'com.informix.jdbc.IfxDriver', url: 'jdbc:informix-sqli://{host}:{port}/{database}:INFORMIXSERVER={server}', }, { text: 'Microsoft SQL Server', databaseType: 'sql-server', driver: 'com.microsoft.sqlserver.jdbc.SQLServerDriver', url: 'jdbc:sqlserver://localhost:1433;databaseName=', }, { text: 'Oracle', databaseType: 'oracle', driver: 'oracle.jdbc.driver.OracleDriver', url: 'jdbc:oracle:thin:@localhost:1521:databaseName', }, { text: 'Privotal Greenplum Database', databaseType: 'pivotal-greenplum-database', driver: 'org.postgresql.Driver', url: 'jdbc:postgresql://hostname:port/dbname', }, { text: 'Postgresql', databaseType: 'postgresql', driver: 'org.postgresql.Driver', url: 'jdbc:postgresql://hostname:port/dbname', }, { text: 'GaussDB 200', databaseType: 'hw-libr-a', driver: 'org.postgresql.Driver', url: 'jdbc:postgresql://hostname:port/dbname', }, { text: 'MySQL', databaseType: 'mysql', driver: 'com.mysql.jdbc.Driver', drivers: ['com.mysql.jdbc.Driver', 'org.gjt.mm.mysql.Driver'], url: 'jdbc:mysql://localhost/dbname', }, { text: OTHER_CONNECT, databaseType: 'other', driver: 'org.h2.Driver', drivers: ['org.h2.Driver', 'com.fr.third.org.hsqldb.jdbcDriver', 'org.sqlite.JDBC'], url: 'jdbc:h2://${ENV_HOME}/../databaseName', }, ...DATA_BASE_TYPE_OTHER, { text: JNDI_CONNECT, }, ]; export const JNDI_FACTORYS = ['', 'weblogic.jndi.WLInitialContextFactory', 'com.ibm.websphere.naming.WsnInitialContextFactory', 'org.jboss.naming.HttpNamingContextFactory', 'org.jnp.interfaces.NamingContextFactory', 'com.caucho.burlap.BurlapContextFactory']; export const OTHER_ATTRIBUTES = [ { text: 'OBJECT_FACTORIES', name: 'objectFactories', }, { text: 'STATE_FACTORIES', name: 'stateFactories', }, { text: 'URL_PKG_PREFIXES', name: 'urlPkgPrefixes', }, { text: 'DNS_URL', name: 'dnsUrl', }, { text: 'AUTHORITATIVE', name: 'authoritative', }, { text: 'BATCHSIZE', name: 'batchSize', }, { text: 'REFERRAL', name: 'referral', }, { text: 'SECURITY_PROTOCOL', name: 'securityProtocol', }, { text: 'SECURITY_AUTHENTICATION', name: 'securityAuthentication', }, { text: 'LANGUAGE', name: 'language', }, { text: 'APPLET', name: 'applet', }, ]; export const CONNECT_CHARSET = [ { text: 'GBK', value: 'GBK', }, { text: 'BIG5', value: 'BIG5', }, { text: 'ISO-8859-1', value: 'ISO-8859-1', }, { text: 'UTF-8', value: 'UTF-8', }, { text: 'UTF-16', value: 'UTF-16', }, { text: 'EUC_JP', value: 'EUC_JP', }, { text: 'EUC_KR', value: 'EUC_KR', }, { text: 'CP850', value: 'CP850', }, ]; const DecDcm = { TEST_STATUS_WAITING: 1, TEST_STATUS_SUCCESS: 2, TEST_STATUS_FAIL: 3, }; export default DecDcm;