UNPKG

bun-sqlite-orm

Version:

A lightweight TypeScript ORM for Bun runtime with Bun SQLite, featuring Active Record pattern and decorator-based entities

13 lines (10 loc) 471 B
import { BunSqliteOrmError } from './bun-sqlite-orm-error'; export class TransactionError extends BunSqliteOrmError { public readonly transactionId?: string; public readonly operation: 'begin' | 'commit' | 'rollback' | 'savepoint'; constructor(message: string, operation: 'begin' | 'commit' | 'rollback' | 'savepoint', transactionId?: string) { super(message); this.operation = operation; this.transactionId = transactionId; } }