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

Function statementFromPb

rel/sql.go:1992–2002  ·  view source on GitHub ↗
(s *SqlStatementPb)

Source from the content-addressed store, hash-verified

1990 return statementFromPb(s), nil
1991}
1992func statementFromPb(s *SqlStatementPb) SqlStatement {
1993 switch {
1994 case s.Select != nil:
1995 var ss *SqlSelect
1996 return ss.FromPB(s.Select)
1997 case s.Source != nil:
1998 var ss *SqlSource
1999 return ss.FromPB(s.Source)
2000 }
2001 return nil
2002}
2003func MapIntFromPb(kv []KvInt) map[string]int {
2004 m := make(map[string]int, len(kv))
2005 for _, kv := range kv {

Callers 1

SqlFromPbFunction · 0.85

Calls 1

FromPBMethod · 0.95

Tested by

no test coverage detected