Class: EnrichmentRepository
Defined in: Data/Repositories/EnrichmentRepository.ts:9
Repository for the enrichments database (enrichments_*.db). Provides access to AI-generated enrichment units (section topics) and enrichment tags (tag-to-verse strength mappings).
Implements
Constructors
Constructor
new EnrichmentRepository(
sql):EnrichmentRepository
Defined in: Data/Repositories/EnrichmentRepository.ts:10
Parameters
sql
Returns
EnrichmentRepository
Methods
getBookTopics()
getBookTopics(
bookNumber):EnrichmentUnit[]
Defined in: Data/Repositories/EnrichmentRepository.ts:12
Get enrichment units (section topics) for a given book. Returns rows with non-null titles ordered by start_verse_id.
Parameters
bookNumber
number
Returns
Implementation of
IEnrichmentRepository.getBookTopics
getTagStrengthsForVerses()
getTagStrengthsForVerses(
tag,types,unitIds):EnrichmentTagMatch[]
Defined in: Data/Repositories/EnrichmentRepository.ts:46
Look up tag strengths for a specific tag across a set of verse unit IDs.
Parameters
tag
string
The tag name to look up
types
string[]
Array of tag types to match (e.g. ['theme', 'emotion', 'event', 'imagery'])
unitIds
string[]
Array of unit_id strings to filter (e.g. ['v_43003016', 'v_1001001'])
Returns
Implementation of
IEnrichmentRepository.getTagStrengthsForVerses
getVersesByTag()
getVersesByTag(
tag,tagType,limit):EnrichmentTagMatch[]
Defined in: Data/Repositories/EnrichmentRepository.ts:36
Look up verses matching a tag name and type, ordered by strength descending.
Parameters
tag
string
tagType
string
limit
number