Skip to main content

Module extractor

Module extractor 

Source
Expand description

Backup spec extraction (backup/extractor.ts port): what to capture before a mutation so it can be undone.

Structs§

BackupTable
SchemaTable

Enums§

BackupSpec
ExtractError

Functions§

extract_backup_spec
Build the backup spec for a statement. ast_type is the legacy name from the classifier.
is_backup_required
quote_ident
table_ref_sql
with_limit
Append LIMIT n to a backup SELECT, preserving any trailing lock clause. Returns None when 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.