Skip to main content

Module queries

Module queries 

Source

Enums§

QueryError

Functions§

compute_blast_radius
Compute blast radius and likely tests for given seed symbols or seed file paths.
compute_blast_radius_scoped
Compute blast radius and likely tests for given seed symbols or seed file paths. Recursively walks reverse reachability (transitive callers) up to max_depth in SQLite.
find_callee_signatures
Resolve callee signatures directly in a single joined query, avoiding N+1 queries and preserving ambiguous methods across types. Prioritizes functions/methods over enum variants.
find_literals
Find literals (endpoints, SQL queries, configs) matching category.
find_literals_scoped
Find literals (endpoints, SQL queries, configs) matching category, optionally scoped by path.
find_references
Find callers or callees of a symbol (filters unresolved external stdlib/runtime primitives by default).
find_references_ext
Find callers or callees with option to include external runtime/stdlib primitives.
find_references_for_symbol
find_references_scoped
Find callers or callees with optional file path disambiguation filter and external symbols toggle.
find_related_tests
Find tests related to a target symbol by caller relationships, naming pattern, or FTS matching.
find_structural_facts
Find structural facts by category (e.g. route, query, model, config).
find_structural_facts_scoped
Find structural facts by category (e.g. route, query, model, config), optionally scoped by path.
find_type_facts
Find type facts for a symbol.
fts_search_symbols_scoped
Conceptual full-text search with optional path scoping filter.
get_file
Lookup single file metadata by path with slash-boundary matching.
get_symbol_by_name
Find a specific symbol by name, with an optional path filter for disambiguation.
get_symbol_by_name_exact
Find a specific symbol by name, requiring exact path match (used for atomic edits).
is_test_path
Helper to determine if a relative path looks like a test file across ecosystems.
list_structural_fact_categories
List all available structural fact and literal categories with counts.
list_structural_fact_categories_scoped
List available structural fact and literal categories with counts, optionally scoped by path.
load_file_symbols
Load all symbols declared inside a specific file.
load_scoped_files
Retrieve indexed files optionally scoped by path filter, pushed down to SQLite.
load_scoped_outline_symbols
Load up to limit_per_file symbols per file for scoped files, directly aggregated in SQLite. Files deeper than depth are filtered out in SQLite to keep memory strictly bounded.
normalize_kind
Normalizes common symbol kind aliases to their canonical database representation.
sanitize_fts5_query
Sanitizes a free-form user query into (and_query, or_query) formatted for SQLite FTS5. Each alphanumeric/underscore token is quoted and given a prefix wildcard: "token"*.
search_symbols
Search symbols by name query, kind filter, and test flag.
search_symbols_scoped
Search symbols with optional path scoping filter.