Skip to main content

ensure_fts_index

Function ensure_fts_index 

Source
pub fn ensure_fts_index(conn: &Connection) -> Result<(), Error>
Expand description

Ensures the symbols_fts FTS5 virtual table and synchronization triggers exist in the SQLite database, and that it holds every symbol except locals and parameters. An index built under an earlier rule, or one left without content, is repopulated once. julie may write a local before its enclosing function, so the insert trigger also drops any same-file variable that became local when its parent arrived.