Clear the database
A promise if the driver is async, otherwise a boolean
const db = new GoodDB(new JSONDriver({path: './database.json'}));db.clear(); Copy
const db = new GoodDB(new JSONDriver({path: './database.json'}));db.clear();
const db = new GoodDB(new MongoDBDriver({uri: "..."}));await db.connect();await db.clear(); Copy
const db = new GoodDB(new MongoDBDriver({uri: "..."}));await db.connect();await db.clear();
Clear the database