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

Function dropPlaceholderStmt

backend/plugin/db/starrocks/dump.go:235–237  ·  view source on GitHub ↗

dropPlaceholderStmt returns the statement that drops the temporary placeholder emitted for a view or materialized view before its real definition. The placeholder is always a regular view (see getTemporaryMaterializedView), so it is dropped with DROP VIEW regardless of the final object type.

(name string)

Source from the content-addressed store, hash-verified

233// regular view (see getTemporaryMaterializedView), so it is dropped with DROP VIEW
234// regardless of the final object type.
235func dropPlaceholderStmt(name string) string {
236 return fmt.Sprintf("DROP VIEW IF EXISTS `%s`;\n", name)
237}
238
239func getTemporaryView(name string, columns []string) string {
240 var parts []string

Callers 2

DumpMethod · 0.85

Calls

no outgoing calls