def _init_db(self):
    self.models = {}
    self.engine = create_engine(self.options['database_url'])
    self.metadata = MetaData()
    self.metadata.bind = self.engine
    self._create_tables()
    self.base = automap_base(bind=self.engine, metadata=self.metadata)
    self.base.prepare(self.engine, reflect=True)
    self.session = create_session(bind=self.engine, autocommit=False)
def _init_db(self):
    self.models = {}
    self.engine = create_engine(self.options['database_url'])
    self.metadata = MetaData()
    self.metadata.bind = self.engine
    self._create_tables()
    self.base = automap_base(bind=self.engine, metadata=self.metadata)
    self.base.prepare(self.engine, reflect=True)
    self.session = create_session(bind=self.engine, autocommit=False)