Added more drops
This commit is contained in:
@@ -1019,6 +1019,12 @@ class PGGraphStorage(BaseGraphStorage):
|
|||||||
) -> KnowledgeGraph:
|
) -> KnowledgeGraph:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
async def drop(self) -> None:
|
||||||
|
"""Drop the storage"""
|
||||||
|
drop_sql = SQL_TEMPLATES["drop_vdb_entity"]
|
||||||
|
await self.db.execute(drop_sql)
|
||||||
|
drop_sql = SQL_TEMPLATES["drop_vdb_relation"]
|
||||||
|
await self.db.execute(drop_sql)
|
||||||
|
|
||||||
NAMESPACE_TABLE_MAP = {
|
NAMESPACE_TABLE_MAP = {
|
||||||
NameSpace.KV_STORE_FULL_DOCS: "LIGHTRAG_DOC_FULL",
|
NameSpace.KV_STORE_FULL_DOCS: "LIGHTRAG_DOC_FULL",
|
||||||
|
Reference in New Issue
Block a user