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

Function getOmniStatementText

backend/plugin/parser/pg/resource_change.go:302–308  ·  view source on GitHub ↗

getOmniStatementText returns the text of a statement from OmniAST, including semicolon.

(omniAST *OmniAST)

Source from the content-addressed store, hash-verified

300
301// getOmniStatementText returns the text of a statement from OmniAST, including semicolon.
302func getOmniStatementText(omniAST *OmniAST) string {
303 text := strings.TrimSpace(omniAST.Text)
304 if !strings.HasSuffix(text, ";") {
305 text += ";"
306 }
307 return text
308}

Callers 1

extractChangedResourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected