UNPKG

nodedb-json

Version:

A lightweight JSON-based database for Node.js with TypeScript support, indexing, and complex query capabilities

11 lines 416 B
import { DatabaseError } from './database-error.js'; /** * Raised when a unique index sees the same field value more than once. */ export class DuplicateIndexError extends DatabaseError { constructor(key, field, value) { super(`Duplicate value "${String(value)}" for unique index "${key}.${field}".`); this.name = 'DuplicateIndexError'; } } //# sourceMappingURL=duplicate-index-error.js.map