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)
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)