content: package dev.aikido.agent_api.vulnerabilities.sql_injection;
  
  import java.util.Objects;
  
  public class Dialect {
      private final int rustDialectInt;
      private final String humanName;
      public Dialect(String dialect) {
          if (Objects.equals(dialect, "postgresql")) {
              rustDialectInt = 9;
              humanName = "PostgreSQL";
          } else if (Objects.equals(dialect, "mysql")) {
              rustDialectInt = 8;
              humanName = "MySQL";
          } else if (Objects.equals(dialect, "microsoft sql server")) {
              rustDialectInt = 7;
              humanName = "Microsoft SQL";
          } else if(Objects.equals(dialect, "sqlite")) {
            rustDialectInt = 12;
            humanName = "SQLite";
          } else if(Objects.equals(dialect, "hsql database engine")) {
              // HyperSQL dialect doesn't exist yet on our tokenizer, so we use generic dialect,
              // which is SQL:2016, HyperSQL is closest to this variant.
            rustDialectInt = 0;
            humanName = "HyperSQL";
          } else {
              rustDialectInt = 0; // Default option
              humanName = "Generic";
          }
      }
  
      public int getDialectInteger() {
          return rustDialectInt;
      }
      public String getHumanName() {
          return humanName;
      }
  }
  