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