MCPcopy Index your code
hub / github.com/bytebase/bytebase / joinOracleSuffix

Function joinOracleSuffix

backend/plugin/parser/plsql/backup.go:390–398  ·  view source on GitHub ↗
(parts ...string)

Source from the content-addressed store, hash-verified

388}
389
390func joinOracleSuffix(parts ...string) string {
391 var nonEmpty []string
392 for _, part := range parts {
393 if part != "" {
394 nonEmpty = append(nonEmpty, part)
395 }
396 }
397 return strings.Join(nonEmpty, " ")
398}
399
400func extractOmniStatementText(sql string, loc oracleast.Loc) string {
401 return strings.TrimSpace(strings.TrimSuffix(oracleLocText(sql, loc.Start, loc.End), ";"))

Callers 1

writeSuffixSelectClauseFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected