MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / reset_database

Method reset_database

vector/beir/dgraph_client.py:64–69  ·  view source on GitHub ↗

Drop all data and schema.

(self)

Source from the content-addressed store, hash-verified

62 print("Schema setup complete")
63
64 def reset_database(self):
65 """Drop all data and schema."""
66 print("Dropping all data and schema...")
67 op = pydgraph.Operation(drop_all=True)
68 self.client.alter(op)
69 print("Database reset complete")
70
71 def insert_documents(
72 self,

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected