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

Function omniStatementText

backend/plugin/parser/mysql/resource_change.go:211–217  ·  view source on GitHub ↗

omniStatementText returns the text of a statement, ensuring it ends with a semicolon.

(a *OmniAST)

Source from the content-addressed store, hash-verified

209
210// omniStatementText returns the text of a statement, ensuring it ends with a semicolon.
211func omniStatementText(a *OmniAST) string {
212 text := strings.TrimSpace(a.Text)
213 if !strings.HasSuffix(text, ";") {
214 text += ";"
215 }
216 return text
217}

Callers 1

extractChangedResourcesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected