pub struct CodeGraphManager { /* private fields */ }Expand description
Manages CodeGraph index for a project.
Implementations§
Source§impl CodeGraphManager
impl CodeGraphManager
Sourcepub fn with_auto_detect(start_path: &Path) -> Self
pub fn with_auto_detect(start_path: &Path) -> Self
Create manager with automatic project root detection.
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Check if CodeGraph is initialized for this project.
Sourcepub fn connect(&self) -> Result<Connection>
pub fn connect(&self) -> Result<Connection>
Get SQLite connection (read-only for safety).
Sourcepub async fn reinit(&self) -> Result<()>
pub async fn reinit(&self) -> Result<()>
Reinitialize CodeGraph - delete old index and rebuild.
Sourcepub async fn ensure_initialized(&self) -> Result<()>
pub async fn ensure_initialized(&self) -> Result<()>
Initialize CodeGraph for this project (check CLI and auto-install if needed).
Sourcepub fn search(&self, pattern: &str, limit: usize) -> Result<Vec<Node>>
pub fn search(&self, pattern: &str, limit: usize) -> Result<Vec<Node>>
Search symbols by name pattern.
Sourcepub fn callers(&self, symbol_id: &str, limit: usize) -> Result<Vec<Node>>
pub fn callers(&self, symbol_id: &str, limit: usize) -> Result<Vec<Node>>
Find callers of a symbol.
Sourcepub fn callees(&self, symbol_id: &str, limit: usize) -> Result<Vec<Node>>
pub fn callees(&self, symbol_id: &str, limit: usize) -> Result<Vec<Node>>
Find callees of a symbol.
Sourcepub fn status(&self) -> Result<IndexStatus>
pub fn status(&self) -> Result<IndexStatus>
Get index status.
Auto Trait Implementations§
impl Freeze for CodeGraphManager
impl RefUnwindSafe for CodeGraphManager
impl Send for CodeGraphManager
impl Sync for CodeGraphManager
impl Unpin for CodeGraphManager
impl UnsafeUnpin for CodeGraphManager
impl UnwindSafe for CodeGraphManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more