Esempio n. 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)
Esempio n. 2
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)
Esempio n. 3
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)
Esempio n. 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)