예제 #1
0
파일: Database.py 프로젝트: woisy00/pymygw
 def __init__(self):
     self._log = getLogger('pymygw')
     self._engine = create_engine(config.Database,
                                  #echo=True,
                                  connect_args={'check_same_thread': False},
                                  poolclass=StaticPool)
     self._schema = Entities.getSchema(self._engine)
     self._dbsession = scoped_session(sessionmaker(bind=self._engine))