Enum Dialect
- java.lang.Object
-
- java.lang.Enum<Dialect>
-
- com.github.vertical_blank.sqlformatter.languages.Dialect
-
- All Implemented Interfaces:
Serializable
,Comparable<Dialect>
public enum Dialect extends Enum<Dialect>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Db2
MariaDb
MySql
N1ql
PlSql
PostgreSql
Redshift
SparkSql
StandardSql
TSql
-
Field Summary
Fields Modifier and Type Field Description List<String>
aliases
Function<FormatConfig,AbstractFormatter>
func
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<Dialect>
nameOf(String name)
static Dialect
valueOf(String name)
Returns the enum constant of this type with the specified name.static Dialect[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Db2
public static final Dialect Db2
-
MariaDb
public static final Dialect MariaDb
-
MySql
public static final Dialect MySql
-
N1ql
public static final Dialect N1ql
-
PlSql
public static final Dialect PlSql
-
PostgreSql
public static final Dialect PostgreSql
-
Redshift
public static final Dialect Redshift
-
SparkSql
public static final Dialect SparkSql
-
StandardSql
public static final Dialect StandardSql
-
TSql
public static final Dialect TSql
-
-
Field Detail
-
func
public final Function<FormatConfig,AbstractFormatter> func
-
-
Method Detail
-
values
public static Dialect[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Dialect c : Dialect.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Dialect valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-