Support fetch all keys and data

This commit is contained in:
WQY\qiong
2023-05-02 18:19:13 +08:00
parent 96e61224f1
commit abcc450781
5 changed files with 58 additions and 24 deletions

View File

@@ -75,6 +75,18 @@ def delete_vertex(name: str, cs: ChangeSet) -> ChangeSet:
return execute_command(name, result)
def get_all_vertex_links(name: str) -> list[str]:
result : list[str] = []
rows = read_all(name, 'select link from vertices order by link')
for row in rows:
result.append(str(row['link']))
return result
def get_all_vertices(name: str) -> list[dict[str, Any]]:
return read_all(name, 'select * from vertices order by link')
#--------------------------------------------------------------
# [EPA2][IN][OUT]
# id x y