Support fetch all keys and data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user