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