MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / stmtSQL

Function stmtSQL

pkg/sql/ast/sql.go:1265–1273  ·  view source on GitHub ↗

stmtSQL dispatches to the SQL() method of any statement

(s Statement)

Source from the content-addressed store, hash-verified

1263
1264// stmtSQL dispatches to the SQL() method of any statement
1265func stmtSQL(s Statement) string {
1266 if s == nil {
1267 return ""
1268 }
1269 if sq, ok := s.(interface{ SQL() string }); ok {
1270 return sq.SQL()
1271 }
1272 return s.TokenLiteral()
1273}
1274
1275func exprListSQL(exprs []Expression) string {
1276 parts := make([]string, len(exprs))

Callers 11

SQLMethod · 0.70
SQLMethod · 0.70
SQLMethod · 0.70
SQLMethod · 0.70
SQLMethod · 0.70
SQLMethod · 0.70
SQLMethod · 0.70
SQLMethod · 0.70
SQLMethod · 0.70
SQLMethod · 0.70
cteSQLFunction · 0.70

Calls 2

TokenLiteralMethod · 0.65
SQLMethod · 0.45

Tested by

no test coverage detected