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); } }