Skip to main content

Module index_discovery

Module index_discovery 

Source
Expand description

Index discovery module for finding unified graph in ancestor directories.

This module implements git-like behavior where sqry walks up the directory tree to find the nearest graph index, enabling queries from subdirectories to automatically use a parent index with appropriate scope filtering.

Structs§

IndexLocation
Result of index discovery, containing location and scope information.

Constants§

INDEX_FILE_NAME
Legacy index file name constant (deprecated).

Functions§

augment_query_with_scope
Augment a query with an implicit path filter when using ancestor index.
find_nearest_index
Find the nearest .sqry-index by walking up from the given path.