15 lines
No EOL
318 B
TypeScript
15 lines
No EOL
318 B
TypeScript
import { PrismaClient } from '@prisma/client'
|
|
|
|
const prisma = new PrismaClient()
|
|
|
|
async function testDb() {
|
|
try {
|
|
const count = await prisma.media.count()
|
|
console.log('Total media entries:', count)
|
|
await prisma.$disconnect()
|
|
} catch (error) {
|
|
console.error('Database error:', error)
|
|
}
|
|
}
|
|
|
|
testDb() |