MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _drop_dbs_w_ident

Function _drop_dbs_w_ident

lib/sqlalchemy/dialects/sqlite/provision.py:179–184  ·  view source on GitHub ↗
(databasename, driver, ident)

Source from the content-addressed store, hash-verified

177
178
179def _drop_dbs_w_ident(databasename, driver, ident):
180 for path in os.listdir("."):
181 fname, ext = os.path.split(path)
182 if ident in fname and ext in [".db", ".db.enc"]:
183 log.info("deleting SQLite database file: %s", path)
184 os.remove(path)
185
186
187@stop_test_class_outside_fixtures.for_db("sqlite")

Callers 2

_sqlite_drop_dbFunction · 0.85
_reap_sqlite_dbsFunction · 0.85

Calls 3

splitMethod · 0.80
infoMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected