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