def add_deleted_pipeline_id(pipeline_id: str): Session.execute( f"INSERT INTO deleted_pipelines VALUES ('{pipeline_id}') ON CONFLICT DO NOTHING" ) Session.commit()
def remove_deleted_pipeline_id(pipeline_id: str): Session.execute( f"DELETE FROM deleted_pipelines WHERE pipeline_id = '{pipeline_id}'") Session.commit()
def get_deleted_pipeline_ids() -> list: return Session.execute('SELECT * FROM deleted_pipelines')