MCPcopy Create free account
hub / github.com/bytebase/bytebase / buildDMLFromClause

Function buildDMLFromClause

backend/plugin/parser/tsql/backup.go:333–342  ·  view source on GitHub ↗
(source, fromSource string, searchStart int, stmtLoc ast.Loc, where ast.ExprNode, option *ast.List)

Source from the content-addressed store, hash-verified

331}
332
333func buildDMLFromClause(source, fromSource string, searchStart int, stmtLoc ast.Loc, where ast.ExprNode, option *ast.List) string {
334 if fromSource == "" {
335 return ""
336 }
337 tail := dmlTrailingClause(source, searchStart, stmtLoc, where, option)
338 if tail == "" {
339 return "FROM " + fromSource
340 }
341 return "FROM " + fromSource + " " + tail
342}
343
344func dmlTrailingClause(source string, searchStart int, stmtLoc ast.Loc, where ast.ExprNode, option *ast.List) string {
345 end := trimDMLStatementEnd(source, stmtLoc.End)

Callers 1

Calls 1

dmlTrailingClauseFunction · 0.85

Tested by

no test coverage detected