Evalkeeper
    Preparing search index...

    Function prismaReadCheck

    • A read-only check of your eval tables through a store's map: each suite's cases, answers, tests, and outputs, read as the table holds them, with anything that doesn't parse listed by row (an unknown status, a cost that isn't a number, a missing column), with counts. The store itself reads such a value as a default (an unknown status as a known one), so this is how to see them. With suites (not just keys), each case's input and answer is also checked against the suite's schemas. It only reads.

      Parameters

      • db: object

        Your Prisma client.

      • map: PrismaStoreMap

        The map you pass prismaStore ({} for Evalkeeper's own tables).

      • opts: ReadCheckOptions

        Which suites, and how many tests of each.

      Returns Promise<ReadCheckReport>

      import { prismaReadCheck } from "@crowandraven/evalkeeper/prisma";
      import { readCheckSummary } from "../index.js";

      const report = await prismaReadCheck(prisma, map, { suites: SUITES });
      console.log(readCheckSummary(report).join("\n"));