MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _oracle_drop_db

Function _oracle_drop_db

lib/sqlalchemy/dialects/oracle/provision.py:125–134  ·  view source on GitHub ↗
(cfg, eng, ident)

Source from the content-addressed store, hash-verified

123
124@drop_db.for_db("oracle")
125def _oracle_drop_db(cfg, eng, ident):
126 with eng.begin() as conn:
127 # cx_Oracle seems to occasionally leak open connections when a large
128 # suite it run, even if we confirm we have zero references to
129 # connection objects.
130 # while there is a "kill session" command in Oracle Database,
131 # it unfortunately does not release the connection sufficiently.
132 _ora_drop_ignore(conn, ident)
133 _ora_drop_ignore(conn, "%s_ts1" % ident)
134 _ora_drop_ignore(conn, "%s_ts2" % ident)
135
136
137@stop_test_class_outside_fixtures.for_db("oracle")

Callers

nothing calls this directly

Calls 2

_ora_drop_ignoreFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected