Skip to content

Commit baaaf70

Browse files
committed
delete graph
1 parent 69e267f commit baaaf70

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

redisgraph/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,9 @@ def execution_plan(self, query):
153153
Get the execution plan for given query.
154154
"""
155155
return self.redis_con.execute_command("GRAPH.EXPLAIN", self.name, query)
156+
157+
def delete(self):
158+
"""
159+
Deletes graph.
160+
"""
161+
return self.redis_con.execute_command("GRAPH.DELETE", self.name)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22
setup(
33
name='redisgraph',
4-
version='1.4',
4+
version='1.5',
55

66
description='RedisGraph Python Client',
77
url='https://github.com/swilly22/redisgraph-py',

0 commit comments

Comments
 (0)