示例#1
0
    def remove_vehicle(self, vehicle_id):
        """
        Wraps a `run_transaction` call that "removes" a vehicle.

        Arguments:
            id {UUID} -- The vehicle's unique ID.
        """
        return run_transaction(
            self.sessionfactory,
            lambda session: remove_vehicle_txn(session, vehicle_id))
示例#2
0
    def remove_vehicle(self, vehicle_id):
        """
        Wraps a `run_transaction` call that "removes" a vehicle. No rows are deleted by this function.

        Arguments:
            id {UUID} -- The vehicle's unique ID.
        """
        return run_transaction(
            self.sessionmaker,
            lambda session: remove_vehicle_txn(session, vehicle_id))
示例#3
0
    def remove_vehicle(self, city, vehicle_id):
        """
        Wraps a `run_transaction` call that "removes" a vehicle. No rows are deleted by this function.

        Arguments:
            city {String} -- The vehicle's city.
            id {UUID} -- The vehicle's unique ID.
        """
        return run_transaction(
            sessionmaker(bind=self.engine),
            lambda session: remove_vehicle_txn(session, city, vehicle_id))