pub fn detect_dialect_from_file(path: &Path) -> Result<DialectDetectionResult>Expand description
Detect dialect from a file, reading its first 8KB. Goes through
crate::splitter::open_input so compressed and zipped inputs are
transparently decoded before sniffing — without that, detection would
see raw compressed bytes instead of SQL text.