"""Shared database columns used to build search-result records.""" from python.orm.richie import EbookChapter, EbookChunk, EbookSource CHUNK_RECORD_COLUMNS = ( EbookChunk.id.label("chunk_id"), EbookChunk.text.label("text"), EbookSource.id.label("source_id"), EbookSource.title.label("source_title"), EbookSource.author.label("source_author"), EbookChapter.title.label("chapter_title"), EbookChunk.page_label.label("page_label"), )