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

      Parameters

      Returns string[] | Promise<string[]>

      A promise if the driver is async, otherwise an array

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