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

Function dmlTrailingClause

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

Source from the content-addressed store, hash-verified

342}
343
344func dmlTrailingClause(source string, searchStart int, stmtLoc ast.Loc, where ast.ExprNode, option *ast.List) string {
345 end := trimDMLStatementEnd(source, stmtLoc.End)
346 start := dmlTailStart(source, searchStart, stmtLoc, where, option)
347 if start < 0 || start >= end {
348 return ""
349 }
350 return strings.TrimSpace(source[start:end])
351}
352
353func dmlTailStart(source string, searchStart int, _ ast.Loc, where ast.ExprNode, option *ast.List) int {
354 if where != nil {

Callers 1

buildDMLFromClauseFunction · 0.85

Calls 2

trimDMLStatementEndFunction · 0.85
dmlTailStartFunction · 0.85

Tested by

no test coverage detected