get_all_table_references
Extract all table and CTE references from any SQL statement. Specify the SQL dialect for accurate parsing.
Instructions
Extract table and CTE names from SQL statement
Args:
sql: SQL statement to analyze
dialect: Optional SQL dialect (e.g., 'mysql', 'postgres')
Returns:
JSON object containing tables with catalog, database, and alias attributes
CTEs are returned as "cte" type
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| dialect | No |