Daedalus Dock - Modules - TypesVar Details - Proc Details

codex

Vars

all_entriesAll entries. Unkeyed.
codex_categoriesAll categories.
codex_indexCodex Database Connection
entries_by_pathAll STATIC entries, By path. Does not include dynamic entries.
entries_by_stringAll entries, by name.
index_fileThe same as above, but sorted (?)
search_cacheSearch result cache, so we don't need to hit the DB every time.

Procs

build_db_indexHolds the revision the index was compiled for. If it's different then live, we need to regenerate the index.
get_codex_entryReturns a codex entry for the given query. May return a list if multiple are found, or null if none.
prepare_search_databasePrepare the search database.
present_codex_entryPresents a codex entry to a mob. If it receives a list of entries, it will prompt them to choose one.
present_codex_searchPresents a list of codex entries to a mob.
retrieve_entries_for_stringPerform a full-text search through all codex entries. Entries matching the query by name will be shown first. Results are cached. Relies on the index database.
text_search_no_dbStraight-DM implimentation of full text search. Objectively garbage. Does not use the DB. Used when database loading is skipped. Argument has already been sanitized. Safety checks have already been done. Cache has already been checked.

Var Details

all_entries

All entries. Unkeyed.

codex_categories

All categories.

codex_index

Codex Database Connection

entries_by_path

All STATIC entries, By path. Does not include dynamic entries.

entries_by_string

All entries, by name.

index_file

The same as above, but sorted (?)

search_cache

Search result cache, so we don't need to hit the DB every time.

Proc Details

build_db_index

Holds the revision the index was compiled for. If it's different then live, we need to regenerate the index.

get_codex_entry

Returns a codex entry for the given query. May return a list if multiple are found, or null if none.

prepare_search_database

Prepare the search database.

present_codex_entry

Presents a codex entry to a mob. If it receives a list of entries, it will prompt them to choose one.

Presents a list of codex entries to a mob.

retrieve_entries_for_string

Perform a full-text search through all codex entries. Entries matching the query by name will be shown first. Results are cached. Relies on the index database.

text_search_no_db

Straight-DM implimentation of full text search. Objectively garbage. Does not use the DB. Used when database loading is skipped. Argument has already been sanitized. Safety checks have already been done. Cache has already been checked.