Update enum

This commit is contained in:
Ryder Belserion 2024-02-19 22:04:18 -05:00
parent c6fb04673e
commit a2ca409583
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ public enum StorageType {
H2("H2", "h2"),
YAML("YAML", "yml"),
SQLITE("SQLite", "sqlite"),
MARIADB("MariaDB", "mariadb");
private final String name;

View File

@ -23,11 +23,11 @@ public class StorageFactory {
private StorageImpl create(StorageType type) {
switch (type) {
case H2 -> {
case SQLITE -> {
return new SqlStorage(new SqliteConnection(new File(CrazyAuctions.get().getDataFolder(), "users.db")));
}
case MARIADB -> {
case MARIADB, H2 -> {
}