Multiply a value to a key
The key to multiply the value to
The value to multiply
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.multiply('key', 2); Copy
const db = new GoodDB(new JSONDriver({path: './database.json'}));db.multiply('key', 2);
const db = new GoodDB(new MongoDBDriver({uri: "..."}));await db.connect();await db.multiply('key', 2); Copy
const db = new GoodDB(new MongoDBDriver({uri: "..."}));await db.connect();await db.multiply('key', 2);
Multiply a value to a key