SqlDialectSourcePatterns
class SqlDialectSourcePatterns(val patterns: Set<SqlDialectSourcePattern> = SourceScannerDefault.patterns, val blockPatterns: SqlDialectSourceBlockPatterns = SqlDialectSourceBlockPatterns.Default)
Dialect-specific source patterns used by conservative source-text scanners.
These patterns are used by source-text rules; they are not a full parser grammar. Each pattern declares the scanner role it fulfills, so custom dialect integrations can register engine-specific syntax once and rules can ask for the meaning they need.
Dialect presets intentionally describe broad dialect-family syntax rather than exact engine-version validity. SQLDelight's parser is responsible for accepting or rejecting concrete SQL. These patterns only help source scanners avoid misreading supported-looking syntax while linting.
Constructors
Link copied to clipboard
constructor(patterns: Set<SqlDialectSourcePattern> = SourceScannerDefault.patterns, blockPatterns: SqlDialectSourceBlockPatterns = SqlDialectSourceBlockPatterns.Default)