Commit b77d42c1 authored by André Anjos's avatar André Anjos

Use NullPool to avoid SingletonThreadPool bug

parent 9e464005
......@@ -105,7 +105,8 @@ class SQLiteConnector(object):
"""Returns an SQLAlchemy engine"""
from sqlalchemy import create_engine
return create_engine('sqlite://', creator=self, echo=echo)
from sqlalchemy.pool import NullPool
return create_engine('sqlite://', creator=self, echo=echo, poolclass=NullPool)
def session(self, echo=False):
"""Returns an SQLAlchemy session"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment