Daedalus Dock - Modules - TypesVar Details - Proc Details

codex

Vars

all_entriesAll entries. Unkeyed.
codex_categoriesAll categories.
codex_indexCodex Database Connection
dynamic_entriesAll dynamic codex entries, Unkeyed.
entries_by_pathAll STATIC entries, By path. Does not include dynamic entries.
entries_by_stringAll entries, by name.
index_disabledSearch Index breaker var, Automatically set if the DB index ever throws an error.
index_fileThe same as above, but sorted (?)
index_generatingIf the index is being built and a dynamic entry tries to register, queue it.
search_cacheSearch result cache, so we don't need to hit the DB every time.
unregistered_dynamic_entriesQueued dynamic codex entries, Unkeyed.

Procs

build_db_indexHolds the revision the index was compiled for. If it's different then live, we need to regenerate the index.
cache_dynamic_recordQueue a new dynamic record for insertion to the dynamic search 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

dynamic_entries

All dynamic codex entries, Unkeyed.

entries_by_path

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

entries_by_string

All entries, by name.

index_disabled

Search Index breaker var, Automatically set if the DB index ever throws an error.

index_file

The same as above, but sorted (?)

index_generating

If the index is being built and a dynamic entry tries to register, queue it.

search_cache

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

unregistered_dynamic_entries

Queued dynamic codex entries, Unkeyed.

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.

cache_dynamic_record

Queue a new dynamic record for insertion to the dynamic search 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.