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) 392 B
import { BunSqliteOrmError } from './bun-sqlite-orm-error'; export class QueryError extends BunSqliteOrmError { public readonly sql?: string; public readonly parameters?: unknown[]; constructor(message: string, entityName?: string, sql?: string, parameters?: unknown[]) { super(message, entityName); this.sql = sql; this.parameters = parameters; } }