UNPKG

@mwcp/kmore

Version:

midway component for knex, supports declarative transaction and OpenTelemetry

11 lines 577 B
import type { DecoratorContext, DecoratorTraceDataResp } from '@mwcp/otel'; import type { TransactionHookOptions } from 'kmore'; import type { KmoreAttrNames } from '../types.js'; export interface ProcessTrxCommitAndRollbackData { eventName: KmoreAttrNames; hook: string; stage: 'before' | 'after'; op: 'commit' | 'rollback'; } export declare function processTrxCommitAndRollback(options: TransactionHookOptions, decoratorContext: DecoratorContext, data: ProcessTrxCommitAndRollbackData): DecoratorTraceDataResp; //# sourceMappingURL=db-hook.trx.helper.d.ts.map