GoodDB
    Preparing search index...
    • Shift a value from a key

      Parameters

      • this: GoodDB
      • key: string

        The key to shift the value from

      • Optionaloptions: methodOptions

        The options to use

      Returns any

      A promise if the driver is async, otherwise a value

      const db = new GoodDB(new JSONDriver({
      path: './database.json'
      }));
      db.shift('key');
      const db = new GoodDB(new MongoDBDriver({
      uri: "..."
      }));
      await db.connect();
      await db.shift('key');