Skip to main content

Module db

Module db 

Source

Modulesยง

conversion
models

Structsยง

AuthorSortRow ๐Ÿ”’
Lightweight row fetched by Db::fetch_author_sort_rows for binary search.
Db
FileNameSortRow ๐Ÿ”’
Lightweight row fetched by Db::fetch_filename_sort_rows for binary search.
FilePathSortRow ๐Ÿ”’
Lightweight row fetched by Db::fetch_filepath_sort_rows for binary search.
SeriesSortRow ๐Ÿ”’
Lightweight row fetched by Db::fetch_series_sort_rows for binary search.
StoredBookRow ๐Ÿ”’
TitleSortRow ๐Ÿ”’
Lightweight row fetched by Db::fetch_title_sort_rows for binary search.

Constantsยง

SORT_RANK_STRIDE ๐Ÿ”’
Gap between adjacent sort ranks assigned by Db::compute_sort_keys.

Functionsยง

midpoint_rank ๐Ÿ”’
Computes the rank to assign to a new book being inserted at position pos in a list of existing ranks (which may be None for books whose ranks have not yet been computed).