コード例 #1
0
 def _make_new_connection(self):
     # TODO: should have error handling here, but what should we do?
     connection = sqlite3.connect(self.db_path,
                                  isolation_level=None,
                                  detect_types=sqlite3.PARSE_DECLTYPES)
     dbcollations.setup_collations(connection)
     self.free_connections.append(connection)
     self.all_connections.add(connection)
コード例 #2
0
ファイル: connectionpool.py プロジェクト: bluezone/miro
 def _make_new_connection(self):
     # TODO: should have error handling here, but what should we do?
     connection = sqlite3.connect(self.db_path,
                                  isolation_level=None,
                                  detect_types=sqlite3.PARSE_DECLTYPES)
     dbcollations.setup_collations(connection)
     self.free_connections.append(connection)
     self.all_connections.add(connection)
コード例 #3
0
ファイル: connectionpool.py プロジェクト: ktan2020/miro
 def _make_new_connection(self):
     # TODO: should have error handling here, but what should we do?
     connection = Connection(self.db_path)
     dbcollations.setup_collations(connection)
     self.free_connections.append(connection)
     self.all_connections.add(connection)
コード例 #4
0
 def _make_new_connection(self):
     # TODO: should have error handling here, but what should we do?
     connection = Connection(self.db_path)
     dbcollations.setup_collations(connection)
     self.free_connections.append(connection)
     self.all_connections.add(connection)