UNPKG

bun-sqlite-orm

Version:

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

12 lines (10 loc) 341 B
export abstract class BunSqliteOrmError extends Error { public readonly entityName?: string; public readonly timestamp: Date; constructor(message: string, entityName?: string) { super(message); this.name = this.constructor.name; this.entityName = entityName; this.timestamp = new Date(); } }