You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89-2Lines changed: 89 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,14 @@ An experimental DuckDB extension that exposes functionality from DuckDB's native
4
4
5
5
## Overview
6
6
7
-
`parser_tools` is a DuckDB extension designed to provide SQL parsing capabilities within the database. It allows you to analyze SQL queries and extract structural information directly in SQL. This extension provides parsing functions for tables, WHERE clauses, and function calls (see [Functions](#functions) below).
7
+
`parser_tools` is a DuckDB extension designed to provide SQL parsing capabilities within the database. It allows you to analyze SQL queries and extract structural information directly in SQL. This extension provides parsing functions for tables, WHERE clauses, function calls, and statements.
8
8
9
9
## Features
10
10
11
11
-**Extract table references** from a SQL query with context information (e.g. `FROM`, `JOIN`, etc.)
12
12
-**Extract function calls** from a SQL query with context information (e.g. `SELECT`, `WHERE`, `HAVING`, etc.)
13
13
-**Parse WHERE clauses** to extract conditions and operators
14
+
-**Parse multi-statement SQL** to extract individual statements or count the number of statements
14
15
- Support for **window functions**, **nested functions**, and **CTEs**
15
16
- Includes **schema**, **name**, and **context** information for all extractions
16
17
- Built on DuckDB's native SQL parser
@@ -94,7 +95,7 @@ Context helps identify where elements are used in the query.
94
95
95
96
## Functions
96
97
97
-
This extension provides parsing functions for tables, functions, and WHERE clauses. Each category includes both table functions (for detailed results) and scalar functions (for programmatic use).
98
+
This extension provides parsing functions for tables, functions, WHERE clauses, and statements. Each category includes both table functions (for detailed results) and scalar functions (for programmatic use).
98
99
99
100
In general, errors (e.g. Parse Exception) will not be exposed to the user, but instead will result in an empty result. This simplifies batch processing. When validity is needed, [is_parsable](#is_parsablesql_query--scalar-function) can be used.
0 commit comments