parse_file
Parse a SQL file on disk and return its parse tree, automatically honoring .sqlfluff config. Optionally layer an extra config file to adjust parsing rules.
Instructions
Parse a SQL file on disk and return its parse tree, honoring discovered .sqlfluff config.
Args: path: Path to the SQL file to parse. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||