MCPcopy Create free account
hub / github.com/araddon/qlbridge / columnFromPb

Function columnFromPb

rel/sql.go:883–900  ·  view source on GitHub ↗
(c *ColumnPb)

Source from the content-addressed store, hash-verified

881 return &n
882}
883func 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

Callers 3

resultColumnFromPbFunction · 0.85
SqlSourceFromPbFunction · 0.85
ColumnsFromPbFunction · 0.85

Calls 15

NodeFromNodePbFunction · 0.92
optionalByteFunction · 0.85
GetSourceQuoteMethod · 0.80
GetAsQuoteByteMethod · 0.80
GetOriginalAsMethod · 0.80
GetParentIndexMethod · 0.80
GetIndexMethod · 0.80
GetSourceIndexMethod · 0.80
GetSourceFieldMethod · 0.80
GetOrderMethod · 0.80
GetGuardMethod · 0.80
GetLeftMethod · 0.45

Tested by

no test coverage detected