import { PrismaClient , User } from '@prisma/client' ; async function main ( ) { const prisma = new PrismaClient ( ) ; await prisma . $transaction ( [ prisma . user . aggregate ( { where : { email : '' } } ) , prisma . user . count ( ) , prisma . user . create ( { data : { email : '' } } ) , prisma . user . delete ( { where : { email : '' } } ) , prisma . user . findMany ( ) , prisma . user . update ( { data : { email : '' } , where : { email : '' } } ) , prisma . user . upsert ( { create : { email : '' } , update : { email : '' } , where : { email : '' } , } ) , prisma . $queryRaw `SELECT 1` , prisma . $executeRawUnsafe ( '' ) , ] ) ; const txs = [ prisma . user . findMany ( ) , prisma . user . findFirst ( ) ] ; const res = await prisma . $transaction ( txs ) ; } main ( ) . catch ( ( e ) => { console . error ( e ) ; } ) ;