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