Expand description
Backup spec extraction (backup/extractor.ts port): what to capture
before a mutation so it can be undone.
Structs§
Enums§
Functions§
- extract_
backup_ spec - Build the backup spec for a statement.
ast_typeis the legacy name from the classifier. - is_
backup_ required - quote_
ident - table_
ref_ sql - with_
limit - Append
LIMIT nto a backup SELECT, preserving any trailing lock clause. ReturnsNonewhen the query cannot be safely rewritten (existing LIMIT/OFFSET, set operations, CTE, trailing semicolon or comment, parenthesized tail, or an unmatched lock clause) — callers must DENY in that case rather than execute the unbounded original.