Skip to main content

Module sql_parser

Module sql_parser 

Source
Expand description

Lightweight regex-based DDL extraction from SQL content.

Used by lint, changelog, and conflict detection features.

Enums§

DdlOperation
A DDL operation extracted from SQL.

Functions§

extract_ddl_operations
Extract DDL operations from SQL content.
line_number_at
Count the approximate line number for a byte offset.
split_statements
Split SQL into individual statements, respecting dollar-quoted blocks, string literals, and comments.