001/* 002 * Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com). 003 * <p> 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * <p> 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * <p> 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package com.mybatisflex.core.dialect; 017 018 019public enum DbType { 020 021 /** 022 * MYSQL 023 */ 024 MYSQL("mysql", "MySql 数据库"), 025 026 /** 027 * MARIADB 028 */ 029 MARIADB("mariadb", "MariaDB 数据库"), 030 031 /** 032 * ORACLE 033 */ 034 ORACLE("oracle", "Oracle11g 及以下数据库"), 035 036 /** 037 * oracle12c 038 */ 039 ORACLE_12C("oracle12c", "Oracle12c 及以上数据库"), 040 041 /** 042 * DB2 043 */ 044 DB2("db2", "DB2 数据库"), 045 046 /** 047 * H2 048 */ 049 H2("h2", "H2 数据库"), 050 051 /** 052 * HSQL 053 */ 054 HSQL("hsql", "HSQL 数据库"), 055 056 /** 057 * SQLITE 058 */ 059 SQLITE("sqlite", "SQLite 数据库"), 060 061 /** 062 * POSTGRE 063 */ 064 POSTGRE_SQL("postgresql", "PostgreSQL 数据库"), 065 066 /** 067 * SQLSERVER 068 */ 069 SQLSERVER("sqlserver", "SQLServer 数据库"), 070 071 /** 072 * SqlServer 2005 数据库 073 */ 074 SQLSERVER_2005("sqlserver_2005", "SQLServer 数据库"), 075 076 /** 077 * DM 078 */ 079 DM("dm", "达梦数据库"), 080 081 /** 082 * xugu 083 */ 084 XUGU("xugu", "虚谷数据库"), 085 086 /** 087 * Kingbase 088 */ 089 KINGBASE_ES("kingbasees", "人大金仓数据库"), 090 091 /** 092 * Phoenix 093 */ 094 PHOENIX("phoenix", "Phoenix HBase 数据库"), 095 096 /** 097 * Gauss 098 */ 099 GAUSS("gauss", "Gauss 数据库"), 100 101 /** 102 * ClickHouse 103 */ 104 CLICK_HOUSE("clickhouse", "clickhouse 数据库"), 105 106 /** 107 * GBase 108 */ 109 GBASE("gbase", "南大通用(华库)数据库"), 110 111 /** 112 * GBase-8s 113 */ 114 GBASE_8S("gbase-8s", "南大通用数据库 GBase 8s"), 115 116 /** 117 * Oscar 118 */ 119 OSCAR("oscar", "神通数据库"), 120 121 /** 122 * Sybase 123 */ 124 SYBASE("sybase", "Sybase ASE 数据库"), 125 126 /** 127 * OceanBase 128 */ 129 OCEAN_BASE("oceanbase", "OceanBase 数据库"), 130 131 /** 132 * Firebird 133 */ 134 FIREBIRD("Firebird", "Firebird 数据库"), 135 136 /** 137 * derby 138 */ 139 DERBY("derby", "Derby 数据库"), 140 141 /** 142 * HighGo 143 */ 144 HIGH_GO("highgo", "瀚高数据库"), 145 146 /** 147 * CUBRID 148 */ 149 CUBRID("cubrid", "CUBRID 数据库"), 150 151 /** 152 * GOLDILOCKS 153 */ 154 GOLDILOCKS("goldilocks", "GOLDILOCKS 数据库"), 155 156 /** 157 * CSIIDB 158 */ 159 CSIIDB("csiidb", "CSIIDB 数据库"), 160 161 /** 162 * CSIIDB 163 */ 164 SAP_HANA("hana", "SAP_HANA 数据库"), 165 166 /** 167 * Impala 168 */ 169 IMPALA("impala", "impala 数据库"), 170 171 /** 172 * Vertica 173 */ 174 VERTICA("vertica", "vertica数据库"), 175 176 /** 177 * 东方国信 xcloud 178 */ 179 XCloud("xcloud", "行云数据库"), 180 181 /** 182 * redshift 183 */ 184 REDSHIFT("redshift", "亚马逊 redshift 数据库"), 185 186 /** 187 * openGauss 188 */ 189 OPENGAUSS("openGauss", "华为 openGauss 数据库"), 190 191 /** 192 * TDengine 193 */ 194 TDENGINE("TDengine", "TDengine 数据库"), 195 196 /** 197 * Informix 198 */ 199 INFORMIX("informix", "Informix 数据库"), 200 201 /** 202 * sinodb 203 */ 204 SINODB("sinodb", "SinoDB 数据库"), 205 206 /** 207 * uxdb 208 */ 209 UXDB("uxdb", "优炫数据库"), 210 211 /** 212 * greenplum 213 */ 214 GREENPLUM("greenplum", "greenplum 数据库"), 215 216 /** 217 * lealone 218 */ 219 LEALONE("lealone", "lealone 数据库"), 220 221 /** 222 * Hive SQL 223 */ 224 HIVE("Hive", "Hive SQL"), 225 226 /** 227 * Doris 兼容 Mysql,使用 MySql 驱动和协议 228 */ 229 DORIS("doris", "doris 数据库"), 230 231 /** 232 * UNKNOWN DB 233 */ 234 OTHER("other", "其他数据库"); 235 236 /** 237 * 数据库名称 238 */ 239 private final String name; 240 241 /** 242 * 描述 243 */ 244 private final String remarks; 245 246 247 DbType(String name, String remarks) { 248 this.name = name; 249 this.remarks = remarks; 250 } 251 252 public String getName() { 253 return name; 254 } 255}