Equal checks if the node ordering is equivalent to other.
(other *Order)
| 687 | |
| 688 | // Equal checks if the node ordering is equivalent to other. |
| 689 | func (node *Order) Equal(other *Order) bool { |
| 690 | return node.Expr.String() == other.Expr.String() && node.Direction == other.Direction && |
| 691 | node.Table == other.Table && node.OrderType == other.OrderType && |
| 692 | node.NullsOrder == other.NullsOrder |
| 693 | } |
| 694 | |
| 695 | // Limit represents a LIMIT clause. |
| 696 | type Limit struct { |