| 123456789101112 |
- const { PrismaClient } = require('@prisma/client');
- const p = new PrismaClient();
- (async () => {
- const books = await p.book.findMany({
- where: { id: { in: [40, 41, 42, 43, 44, 45, 46, 47, 48] } },
- select: { id: true, title: true, genStage: true, failedStage: true, progress: true, updatedAt: true, errorMsg: true }
- });
- books.forEach(b => {
- console.log(`[${b.id}] ${(b.title||'').substring(0,30).padEnd(30)} genStage=${(b.genStage||'').padEnd(25)} progress=${b.progress} failedStage=${b.failedStage||'-'} err=${(b.errorMsg||'').substring(0,50)}`);
- });
- await p.$disconnect();
- })();
|