# The MySQL dialect does not parse DELIMITER blocks, routine bodies, or ${nostro_scale}. Parse
# and lex errors are ignored, so those bodies are not linted. The test suite applies these files
# to a real server.
[sqlfluff]
dialect = mysql
ignore = parsing,lexing
# Routine files are larger than sqlfluff's default skip limit.
large_file_skip_byte_limit = 0
# Continuation clauses sit under the column type, which the indent rule rejects.
exclude_rules = RF04, ST05, AM04, AM05, LT02

# Columns are aligned by hand. The MySQL dialect parses DATETIME as a keyword, not a data type.
[sqlfluff:layout:type:keyword]
spacing_before = any

[sqlfluff:layout:type:data_type]
spacing_before = any

# Table options are written ENGINE=InnoDB, with no spaces around the equals sign.
[sqlfluff:layout:type:comparison_operator]
spacing_before = any
spacing_after = any

# Built-in functions and types are upper case in these files.
[sqlfluff:rules:capitalisation.functions]
extended_capitalisation_policy = upper

[sqlfluff:rules:capitalisation.types]
extended_capitalisation_policy = upper
