Skip to main content

Module db

Module db 

Source

Structs§

Connection
A connection to a SQLite database.

Enums§

DbError

Functions§

checkpoint_truncate
Safely flushes all committed transactions from the WAL file into the main database file and truncates the WAL to zero bytes. Returns an error if the database is busy and unable to truncate.
ensure_fts_index
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.
ensure_fts_index_path
Ensures the FTS5 index on symbols exists at the specified database file path.
local_variable_predicate
SQL predicate that is true for a symbols row that is a local variable or a parameter: a variable declared inside a function, method, or constructor, directly or through enclosing variables such as closures.
open_read_only
Opens a read-only SQLite connection configured for low-overhead WAL reads.
open_read_write
Opens a read-write SQLite connection (used when creating fresh or test databases).
retarget_artifact_root
Retargets the root_path key in artifact_metadata to a new workspace canonical root. This is essential when cloning or copying an artifact database (e.g. into a git worktree), ensuring julie-extract update, delete, and scan recognize the new root without root mismatch errors.