MCPcopy Create free account
hub / github.com/temporalio/temporal / DropAllTables

Method DropAllTables

common/persistence/sql/sqlplugin/mysql/admin.go:103–114  ·  view source on GitHub ↗

DropAllTables drops all tables from this database

(database string)

Source from the content-addressed store, hash-verified

101
102// DropAllTables drops all tables from this database
103func (mdb *db) DropAllTables(database string) error {
104 tables, err := mdb.ListTables(database)
105 if err != nil {
106 return err
107 }
108 for _, tab := range tables {
109 if err := mdb.DropTable(tab); err != nil {
110 return err
111 }
112 }
113 return nil
114}
115
116// CreateDatabase creates a database if it doesn't exist
117func (mdb *db) CreateDatabase(name string) error {

Callers

nothing calls this directly

Calls 2

ListTablesMethod · 0.95
DropTableMethod · 0.95

Tested by

no test coverage detected