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

Function writeDropFunction

backend/plugin/schema/oracle/generate_migration.go:884–895  ·  view source on GitHub ↗
(out *strings.Builder, schema, function string)

Source from the content-addressed store, hash-verified

882}
883
884func writeDropFunction(out *strings.Builder, schema, function string) {
885 _, _ = out.WriteString(`DROP FUNCTION `)
886 if schema != "" {
887 _, _ = out.WriteString(`"`)
888 _, _ = out.WriteString(schema)
889 _, _ = out.WriteString(`".`)
890 }
891 _, _ = out.WriteString(`"`)
892 _, _ = out.WriteString(function)
893 _, _ = out.WriteString(`";`)
894 _, _ = out.WriteString("\n")
895}
896
897func writeDropProcedure(out *strings.Builder, schema, procedure string) {
898 _, _ = out.WriteString(`DROP PROCEDURE `)

Callers 1

dropObjectsInOrderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected