cloneNode deep-copies an AST node so an operand can appear at several positions in the emitted expression without sharing mutable state.
(node *pg_query.Node)
| 855 | // cloneNode deep-copies an AST node so an operand can appear at several |
| 856 | // positions in the emitted expression without sharing mutable state. |
| 857 | func cloneNode(node *pg_query.Node) *pg_query.Node { |
| 858 | return proto.Clone(node).(*pg_query.Node) |
| 859 | } |
| 860 | |
| 861 | // createJSONContainsFuncCall rewrites `a @> b` to json_contains(a, b), matching |
| 862 | // Postgres jsonb containment for the common object/array cases. |
no outgoing calls
no test coverage detected