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

Function writeDropView

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

Source from the content-addressed store, hash-verified

908}
909
910func writeDropView(out *strings.Builder, schema, view string) {
911 _, _ = out.WriteString(`DROP VIEW `)
912 if schema != "" {
913 _, _ = out.WriteString(`"`)
914 _, _ = out.WriteString(schema)
915 _, _ = out.WriteString(`".`)
916 }
917 _, _ = out.WriteString(`"`)
918 _, _ = out.WriteString(view)
919 _, _ = out.WriteString(`";`)
920 _, _ = out.WriteString("\n")
921}
922
923func writeDropMaterializedView(out *strings.Builder, schema, view string) {
924 _, _ = out.WriteString(`DROP MATERIALIZED VIEW `)

Callers 1

dropObjectsInOrderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected