UNPKG

@myfunc/prisma-transactional

Version:

Decorator that wraps all prisma queries along the whole call stack to a single transaction.

10 lines (8 loc) 354 B
import { ILoggerService } from '../type'; export class EmptyLogger implements ILoggerService { log(message: any, ...optionalParams: any[]) {} error(message: any, ...optionalParams: any[]) {} warn(message: any, ...optionalParams: any[]) {} debug?(message: any, ...optionalParams: any[]) {} verbose?(message: any, ...optionalParams: any[]) {} }