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
A DuckDB extension that exposes SQL parsing functionality for building IDEs, SQL editors, query analyzers, and other developer tools.
Features
API shape: parse_* returns detailed rows (table functions), while parse_*_names returns names-only lists (scalars).
Tokenization
Function
Kind
Returns
Description
Deprecated alias of
parse_tokens(query)
table
byte_position bigint, category varchar
Returns tokens with byte positions and categories (KEYWORD, IDENTIFIER, OPERATOR, NUMERIC_CONSTANT, STRING_CONSTANT). Uses DuckDB's internal tokenizer for accurate syntax highlighting. Note: comments are stripped before tokenization.
The current source targets DuckDB v2.0.0. The DuckDB and extension-ci-tools
submodules are pinned to the revisions used by CI and the release workflow.
Binaries built against older DuckDB versions must be rebuilt for 2.0.
# Clone with submodules
git clone --recurse-submodules https://github.com/sidequery/poached.git
cd poached
# After updating an existing checkout
git submodule update --init --recursive
# Build release
make release
# Run tests
make test_release