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

Method DropAllTables

common/persistence/sql/sqlplugin/sqlite/admin.go:83–94  ·  view source on GitHub ↗

DropAllTables drops all tables from this database

(database string)

Source from the content-addressed store, hash-verified

81
82// DropAllTables drops all tables from this database
83func (mdb *db) DropAllTables(database string) error {
84 tables, err := mdb.ListTables(database)
85 if err != nil {
86 return err
87 }
88 for _, tab := range tables {
89 if err := mdb.DropTable(tab); err != nil {
90 return err
91 }
92 }
93 return nil
94}
95
96// CreateDatabase creates a database if it doesn't exist
97func (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