(improvement)(Headless) Support optimizing and generating SQL based on the engine type. (#666)

This commit is contained in:
lexluo09
2024-01-19 22:32:28 +08:00
committed by GitHub
parent 20c8456705
commit 9c6bd7cf19
30 changed files with 309 additions and 277 deletions

View File

@@ -28,4 +28,14 @@ public enum EngineType {
public String getName() {
return name;
}
public static EngineType fromString(String value) {
for (EngineType engineType : EngineType.values()) {
if (engineType.name().equalsIgnoreCase(value)) {
return engineType;
}
}
throw new IllegalArgumentException("Invalid value: " + value);
}
}