Basis: Certvia dev@a48c5fb als Fundament für Craftvia
Unveränderter Stand von certvia/dev (a48c5fb) plus Craftvia-Spezifikation und Brandbook unter docs/craftvia/. ISMS-Module werden im Folgecommit entfernt. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import "dotenv/config";
|
||||
import { PrismaClient } from "@prisma/client";
|
||||
import { PrismaPg } from "@prisma/adapter-pg";
|
||||
import { importImplementationHints } from "../prisma/import-hints";
|
||||
|
||||
// Standalone-Import der C6-Umsetzungshinweise (Story B5-1). Idempotent.
|
||||
const prisma = new PrismaClient({ adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) });
|
||||
|
||||
async function main() {
|
||||
const n = await importImplementationHints(prisma);
|
||||
const total = await prisma.implementationHint.count();
|
||||
const proc = await prisma.implementationHint.count({ where: { procurement: true } });
|
||||
console.log(JSON.stringify({ parsed: n, inDb: total, procurement: proc }));
|
||||
}
|
||||
main().finally(() => prisma.$disconnect());
|
||||
Reference in New Issue
Block a user