| sql_diff | R Documentation |
Compares the ASTs of two statements and reports inserted, removed, moved and updated nodes.
sql_diff(sql_from, sql_to, dialect = "generic", delta_only = TRUE)
sql_from, sql_to |
Single SQL statements to compare. |
dialect |
Dialect used for parsing. |
delta_only |
If |
A data frame with columns op ("insert", "remove", "move",
"update", "keep"), expression (SQL of the affected node) and
target (for updates, the new SQL).
sql_diff("SELECT a FROM t", "SELECT a, b FROM t WHERE a > 1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.