GoodDB
    Preparing search index...
    • Get all the keys and values

      Parameters

      • this: GoodDB
      • type: "object" | "array" | undefined = 'object'

      Returns any

      A promise if the driver is async, otherwise an object

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