예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
 def __init__(self):
     self.dbfile = os.path.join(AppFolders.appData(), "comicdb.sqlite")