GoodDB
    Preparing search index...
    • Make table for the database

      Parameters

      • this: GoodDB
      • name: string

        The name of the tableName

      Returns GoodDB | Promise<GoodDB>

      A promise if the driver is async, otherwise a boolean

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