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

Method DropAllTables

common/persistence/sql/sqlplugin/postgresql/admin.go:104–115  ·  view source on GitHub ↗

DropAllTables drops all tables from this database

(database string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ListTablesMethod · 0.95
DropTableMethod · 0.95

Tested by

no test coverage detected