Expand description
Diff module for comparing two SQL dumps.
This module provides:
- Schema comparison (tables added/removed/modified, columns, PKs, FKs)
- Data comparison (row counts: added/removed/modified)
- Memory-bounded operation using PK hashing
- Multiple output formats (text, json, sql)
Structs§
- Column
Change - Change to a column definition
- Column
Info - Column info for serialization
- Data
Diff - Complete data diff result
- Data
Diff Options - Options for data comparison
- Data
Differ - Data differ engine that accumulates state across file scans
- Diff
Config - Configuration for the diff operation
- Diff
Result - Complete diff result
- Diff
Summary - Summary of differences
- Diff
Warning - A warning generated during diff operation
- Differ
- Main differ engine
- FkInfo
- Foreign key info for serialization
- Index
Info - Index info for serialization
- Schema
Diff - Differences between two schemas
- Table
Data Diff - Data differences for a single table
- Table
Info - Basic info about a table for added tables
- Table
Modification - Modifications to an existing table
Enums§
- Diff
Output Format - Output format for diff results
Functions§
- compare_
schemas - Compare two schemas and return the differences
- format_
diff - Format diff result according to the specified format
- format_
json - Format diff result as JSON
- format_
sql - Format diff result as SQL migration script
- format_
text - Format diff result as human-readable text
- should_
include_ table - Check if a table should be included based on filter config