in theory:

        engine.dispose()

or the engine (or just its underlying pool) getting garbage collected  
should do it too (theres nothing module-level being held onto).

this hasnt been tested so your mileage may vary !


On Jun 14, 2006, at 5:25 PM, Mike Orr wrote:

> Is there a proper way to close a SQLAlchemy database?  This is for a
> test suite that wants to create a database, close it, delete the
> database file, then recreate it again for another test.  I don't care
> whether the metadata or engine remain or have to be recreated, but I
> want the engine to close all connections.  This is for SQLite and
> MySQL.
>
> -- 
> Mike Orr <[EMAIL PROTECTED]>
>
>
> _______________________________________________
> Sqlalchemy-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users



_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to