IsDataChangingStatement reports whether the node is a DML statement.
(node ast.Node)
| 97 | |
| 98 | // IsDataChangingStatement reports whether the node is a DML statement. |
| 99 | func IsDataChangingStatement(node ast.Node) bool { |
| 100 | queryType, _ := getQueryType(node) |
| 101 | return queryType == base.DML |
| 102 | } |
| 103 | |
| 104 | // IsSchemaChangingStatement reports whether the node is a DDL statement. |
| 105 | func IsSchemaChangingStatement(node ast.Node) bool { |