(c *ColumnPb)
| 881 | return &n |
| 882 | } |
| 883 | func columnFromPb(c *ColumnPb) *Column { |
| 884 | return &Column{ |
| 885 | sourceQuoteByte: optionalByte(c.GetSourceQuote()), |
| 886 | asQuoteByte: optionalByte(c.GetAsQuoteByte()), |
| 887 | originalAs: c.GetOriginalAs(), |
| 888 | left: c.GetLeft(), |
| 889 | right: c.GetRight(), |
| 890 | ParentIndex: int(c.GetParentIndex()), |
| 891 | Index: int(c.GetIndex()), |
| 892 | SourceIndex: int(c.GetSourceIndex()), |
| 893 | SourceField: c.GetSourceField(), |
| 894 | As: c.GetAs(), |
| 895 | Order: c.GetOrder(), |
| 896 | Star: c.GetStar(), |
| 897 | Expr: expr.NodeFromNodePb(c.GetExpr()), |
| 898 | Guard: expr.NodeFromNodePb(c.GetGuard()), |
| 899 | } |
| 900 | } |
| 901 | |
| 902 | // Return left, right values if is of form `table.column` and |
| 903 | // also return true/false for if it even has left/right |
no test coverage detected