summaryrefslogtreecommitdiff
path: root/src-py/neo4j_test_util.py
blob: 8edac1b22f7df435686e81705564c0cf5fe44690 (plain)
1
2
3
4
5
6
7
8
9
10
import uuid

def rand_id():
    return str(uuid.uuid4())

def flush_db(db_ctl):
    """
    complete DB flush: remove all nodes & links
    """
    db_ctl.exec_cypher_query('match (n) optional match (n)-[r]-() delete n,r')