Update enum
This commit is contained in:
parent
c6fb04673e
commit
a2ca409583
|
@ -6,6 +6,7 @@ public enum StorageType {
|
||||||
|
|
||||||
H2("H2", "h2"),
|
H2("H2", "h2"),
|
||||||
YAML("YAML", "yml"),
|
YAML("YAML", "yml"),
|
||||||
|
SQLITE("SQLite", "sqlite"),
|
||||||
MARIADB("MariaDB", "mariadb");
|
MARIADB("MariaDB", "mariadb");
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
|
@ -23,11 +23,11 @@ public class StorageFactory {
|
||||||
|
|
||||||
private StorageImpl create(StorageType type) {
|
private StorageImpl create(StorageType type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case H2 -> {
|
case SQLITE -> {
|
||||||
return new SqlStorage(new SqliteConnection(new File(CrazyAuctions.get().getDataFolder(), "users.db")));
|
return new SqlStorage(new SqliteConnection(new File(CrazyAuctions.get().getDataFolder(), "users.db")));
|
||||||
}
|
}
|
||||||
|
|
||||||
case MARIADB -> {
|
case MARIADB, H2 -> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue