MCPcopy
hub / github.com/go-gorm/gorm / DropView

Method DropView

migrator/migrator.go:684–686  ·  view source on GitHub ↗

DropView drop view

(name string)

Source from the content-addressed store, hash-verified

682
683// DropView drop view
684func (m Migrator) DropView(name string) error {
685 return m.DB.Exec("DROP VIEW IF EXISTS ?", clause.Table{Name: name}).Error
686}
687
688// GuessConstraintAndTable guess statement's constraint and it's table based on name
689//

Callers

nothing calls this directly

Implementers 1

Migratormigrator/migrator.go

Calls 1

ExecMethod · 0.65

Tested by

no test coverage detected