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

Function SqlWhereToPb

rel/sql.go:1743–1753  ·  view source on GitHub ↗
(m *SqlWhere)

Source from the content-addressed store, hash-verified

1741 return true
1742}
1743func SqlWhereToPb(m *SqlWhere) *SqlWherePb {
1744 s := SqlWherePb{}
1745 s.Op = int32(m.Op)
1746 if m.Source != nil {
1747 s.Source = SqlSelectToPb(m.Source)
1748 }
1749 if m.Expr != nil {
1750 s.Expr = m.Expr.NodePb()
1751 }
1752 return &s
1753}
1754func SqlWhereFromPb(pb *SqlWherePb) *SqlWhere {
1755 w := SqlWhere{
1756 Op: lex.TokenType(pb.GetOp()),

Callers 1

sqlSelectToPbDepthFunction · 0.85

Calls 2

SqlSelectToPbFunction · 0.85
NodePbMethod · 0.65

Tested by

no test coverage detected