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

Function SqlWhereFromPb

rel/sql.go:1754–1765  ·  view source on GitHub ↗
(pb *SqlWherePb)

Source from the content-addressed store, hash-verified

1752 return &s
1753}
1754func SqlWhereFromPb(pb *SqlWherePb) *SqlWhere {
1755 w := SqlWhere{
1756 Op: lex.TokenType(pb.GetOp()),
1757 }
1758 if pb.Source != nil {
1759 w.Source = SqlSelectFromPb(pb.Source)
1760 }
1761 if pb.Expr != nil {
1762 w.Expr = expr.NodeFromNodePb(pb.GetExpr())
1763 }
1764 return &w
1765}
1766
1767func (m *SqlInto) Keyword() lex.TokenType { return lex.TokenInto }
1768func (m *SqlInto) String() string { return fmt.Sprintf("%s", m.Table) }

Callers 1

SqlSelectFromPbFunction · 0.85

Calls 5

TokenTypeTypeAlias · 0.92
NodeFromNodePbFunction · 0.92
SqlSelectFromPbFunction · 0.85
GetOpMethod · 0.45
GetExprMethod · 0.45

Tested by

no test coverage detected