Module conversion

Module conversion 

Source

Functionsยง

decode_location
Decode the (location_kind, location_exact, location_uri) column triple back to a TocLocation.
encode_location
Encode a TocLocation into the (location_kind, location_exact, location_uri) column triple.
extract_authors
Extract authors from Info.author (comma-separated string)
info_to_book_row
Convert Info struct to BookRow for database insertion.
reader_info_to_reading_state_row
Convert ReaderInfo to ReadingStateRow for database insertion.
rows_to_toc_entries
Reconstruct a Vec<SimpleTocEntry> tree from a flat list of rows ordered by id.