File size: 466 Bytes
a8f4b72 | 1 2 3 4 5 6 7 8 9 10 | import { CanonRepository, type CanonEntryInput } from '@projectos/storage-fabric/sqlite/repositories';
import type { DatabaseSync } from 'node:sqlite';
export class CanonService {
readonly repository: CanonRepository;
constructor(db: DatabaseSync, repository = new CanonRepository(db)) { this.repository = repository; }
create(entry: CanonEntryInput) { return this.repository.create(entry); }
get(entryId: string) { return this.repository.get(entryId); }
}
|