def __init__(self): self.dbfile = os.path.join(AppFolders.appData(), "comicdb.sqlite") self.engine = create_engine('sqlite:///' + self.dbfile, echo=False) session_factory = sessionmaker(bind=self.engine) self.Session = scoped_session(session_factory)
def __init__(self): self.dbfile = os.path.join(AppFolders.appData(), "comicdb.sqlite") self.engine = create_engine('sqlite:///'+ self.dbfile, echo=False) session_factory = sessionmaker(bind=self.engine) self.Session = scoped_session(session_factory)
def __init__(self): self.dbfile = os.path.join(AppFolders.appData(), "comicdb.sqlite")