mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-05 23:37:20 -04:00
added dispose() for StaticPool
This commit is contained in:
@@ -660,6 +660,10 @@ class StaticPool(Pool):
|
||||
def status(self):
|
||||
return "StaticPool"
|
||||
|
||||
def dispose(self):
|
||||
self._conn.close()
|
||||
self._conn = None
|
||||
|
||||
def create_connection(self):
|
||||
return self._conn
|
||||
|
||||
|
||||
Reference in New Issue
Block a user