Copy - deep copy, shared nothing
()
| 828 | |
| 829 | // Copy - deep copy, shared nothing |
| 830 | func (m *Column) Copy() *Column { |
| 831 | return &Column{ |
| 832 | sourceQuoteByte: m.sourceQuoteByte, |
| 833 | asQuoteByte: m.asQuoteByte, |
| 834 | originalAs: m.originalAs, |
| 835 | ParentIndex: m.ParentIndex, |
| 836 | Index: m.Index, |
| 837 | SourceField: m.SourceField, |
| 838 | As: m.right, |
| 839 | Comment: m.Comment, |
| 840 | Order: m.Order, |
| 841 | Star: m.Star, |
| 842 | Expr: m.Expr, |
| 843 | Guard: m.Guard, |
| 844 | } |
| 845 | } |
| 846 | func (m *Column) ToPB() *ColumnPb { |
| 847 | n := ColumnPb{} |
| 848 | n.SourceQuote = []byte{m.sourceQuoteByte} |
no outgoing calls
no test coverage detected