Expand description
Lightweight regex-based DDL extraction from SQL content.
Used by lint, changelog, and conflict detection features.
Structs§
- Located
Ddl - A DDL operation together with its position in the source SQL.
Enums§
- DdlOperation
- A DDL operation extracted from SQL.
Functions§
- blank_
string_ literals - Blank out the contents of every string literal, preserving byte offsets, line breaks and the surrounding quotes.
- extract_
ddl_ operations - Extract DDL operations from SQL content.
- extract_
ddl_ operations_ located - Extract DDL operations along with their source positions.
- line_
number_ at - The 1-based line number containing the given byte offset.
- split_
mysql_ statements - Split MySQL SQL into individual statements at top-level
;terminators. - split_
statements - Split SQL into individual statements, respecting dollar-quoted blocks, string literals, quoted identifiers, and comments.
- strip_
comments - Blank out every comment in
sql, preserving byte offsets and line breaks.