chore: update GraphDBInterface to not throw NotImplementedError for count_nodes()
This commit is contained in:
parent
9e38a30c49
commit
a854e4f426
1 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,8 @@ class GraphDBInterface(ABC):
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def count_nodes(self) -> int:
|
async def count_nodes(self) -> int:
|
||||||
raise NotImplementedError
|
logger.warning("count_nodes is not implemented")
|
||||||
|
return 1 # dummy value to not fail search()
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def query(self, query: str, params: dict) -> List[Any]:
|
async def query(self, query: str, params: dict) -> List[Any]:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue