VerseRepository

interface VerseRepository

The Repository for accessing VerseEntity objects.

Functions

Link copied to clipboard
abstract suspend fun getVersesByIds(ids: List<String>, limit: Long, offset: Long): List<VerseEntity>

Returns a list of VerseEntity objects with the given IDs.

Link copied to clipboard
abstract suspend fun getVersesInRange(startVerse: String, endVerse: String, limit: Long, offset: Long): List<VerseEntity>

Returns a list of VerseEntity objects within the specified verse range.

Link copied to clipboard
abstract suspend fun insertAll(verses: List<VerseEntity>)

Inserts a list of VerseEntity objects into the database.

Link copied to clipboard
abstract suspend fun searchVerses(text: String, limit: Long, offset: Long): List<VerseEntity>

Returns a list of VerseEntity objects with the given IDs.

Link copied to clipboard
abstract suspend fun searchVersesByIDs(text: String, ids: List<String>, limit: Long, offset: Long): List<VerseEntity>

Returns a list of VerseEntity objects with the given IDs.

Link copied to clipboard
abstract suspend fun searchVersesInRange(text: String, startVerse: String, endVerse: String, limit: Long, offset: Long): List<VerseEntity>

Returns a list of VerseEntity objects within the specified verse range that contain the search text.