Check if a key exists
The key to check if it exists
Optional
The options to use
A promise if the driver is async, otherwise a boolean
const db = new GoodDB(new JSONDriver({path: './database.json'}));db.has('key'); Copy
const db = new GoodDB(new JSONDriver({path: './database.json'}));db.has('key');
const db = new GoodDB(new MongoDBDriver({uri: "..."}));await db.connect();await db.has('key'); Copy
const db = new GoodDB(new MongoDBDriver({uri: "..."}));await db.connect();await db.has('key');
Check if a key exists