Try query

This commit is contained in:
WQY\qiong
2023-03-02 21:32:22 +08:00
parent bb3cd2bb7f
commit 43e0f8189a

View File

@@ -163,11 +163,11 @@ def execute_redo(name: str) -> ChangeSet:
def have_snapshot(name: str, tag: str) -> bool:
return read(name, f"select id from snapshot_operation where tag = '{tag}'") != None
return try_read(name, f"select id from snapshot_operation where tag = '{tag}'") != None
def have_snapshot_for_operation(name: str, operation: int) -> bool:
return read(name, f"select id from snapshot_operation where id = {operation}") != None
return try_read(name, f"select id from snapshot_operation where id = {operation}") != None
def have_snapshot_for_current_operation(name: str) -> bool: