typedb-driver
typedb-driver copied to clipboard
Database clean commands
Problem to Solve
Previously, we've had functions to clean the database via the Console. From the docs:
Cleaning a Database
Cleaning the database, not to be confused with deletion, wipes out both the data and the schema contained within the database. We can clean a database via TypeDB Console.
We don't support this currently.
Current Workaround
To clean the database, define an empty schema and delete all data via queries. To clean the data from a database, delete all data via a query.
Proposed Solution
Provide a function on Database
that automatically performs the cleaning functions.