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

Function writeDropProcedure

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

Source from the content-addressed store, hash-verified

895}
896
897func writeDropProcedure(out *strings.Builder, schema, procedure string) {
898 _, _ = out.WriteString(`DROP PROCEDURE `)
899 if schema != "" {
900 _, _ = out.WriteString(`"`)
901 _, _ = out.WriteString(schema)
902 _, _ = out.WriteString(`".`)
903 }
904 _, _ = out.WriteString(`"`)
905 _, _ = out.WriteString(procedure)
906 _, _ = out.WriteString(`";`)
907 _, _ = out.WriteString("\n")
908}
909
910func writeDropView(out *strings.Builder, schema, view string) {
911 _, _ = out.WriteString(`DROP VIEW `)

Callers 1

dropObjectsInOrderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected