Skip to main content

Module diff

Module diff 

Source
Expand description

AST Diff - Compare SQL expressions

This module provides functionality to compare two SQL ASTs and generate a list of differences (edit script) between them, using the ChangeDistiller algorithm with Dice coefficient matching.

Structs§

DiffConfig
Configuration for the diff algorithm

Enums§

Edit
Types of edits that can occur between two ASTs

Functions§

changes_only
Get only the changes from an edit list
diff
Compare two expressions and return a list of edits
diff_with_config
Compare two expressions with custom configuration
has_changes
Check if the diff contains any changes