@@ -18,7 +18,6 @@ public open class H2(public val dialect: DbType = MySql) : DbType("h2") {
1818 require(dialect::class != H2 ::class ) { " H2 database could not be specified with H2 dialect!" }
1919 }
2020
21-
2221 /* *
2322 * It contains constants related to different database modes.
2423 *
@@ -30,36 +29,16 @@ public open class H2(public val dialect: DbType = MySql) : DbType("h2") {
3029 * @see [createH2Instance]
3130 */
3231 public companion object {
33- /* *
34- * Represents the compatibility modes supported by an H2 database.
35- *
36- * @property value The string value used in H2 JDBC URL and settings.
37- */
38- public enum class Mode (public val value : String ) {
39- MySql (" MySQL" ),
40- PostgreSql (" PostgreSQL" ),
41- MsSqlServer (" MSSQLServer" ),
42- MariaDb (" MariaDB" );
43-
44- public companion object {
45- /* *
46- * Finds a Mode by its string value (case-insensitive).
47- *
48- * @param value The string value to search for.
49- * @return The matching Mode, or null if not found.
50- */
51- public fun fromValue (value : String ): Mode ? =
52- entries.find { it.value.equals(value, ignoreCase = true ) }
53- }
54- }
55-
56- @Deprecated(" Use Mode.MySql.value instead" , ReplaceWith (" Mode.MySql.value" ))
32+ /* * It represents the mode value "MySQL" for the H2 database. */
5733 public const val MODE_MYSQL : String = " MySQL"
58- @Deprecated(" Use Mode.PostgreSql.value instead" , ReplaceWith (" Mode.PostgreSql.value" ))
34+
35+ /* * It represents the mode value "PostgreSQL" for the H2 database. */
5936 public const val MODE_POSTGRESQL : String = " PostgreSQL"
60- @Deprecated(" Use Mode.MsSqlServer.value instead" , ReplaceWith (" Mode.MsSqlServer.value" ))
37+
38+ /* * It represents the mode value "MSSQLServer" for the H2 database. */
6139 public const val MODE_MSSQLSERVER : String = " MSSQLServer"
62- @Deprecated(" Use Mode.MariaDb.value instead" , ReplaceWith (" Mode.MariaDb.value" ))
40+
41+ /* * It represents the mode value "MariaDB" for the H2 database. */
6342 public const val MODE_MARIADB : String = " MariaDB"
6443 }
6544
0 commit comments