pub struct IndexDatabase {
pub active_commit_sha: String,
pub active_worktree_id: String,
/* private fields */
}Fields§
§active_commit_sha: String§active_worktree_id: StringImplementations§
Source§impl IndexDatabase
impl IndexDatabase
pub fn open(path: &Path) -> Result<Self>
pub fn database_path(&self) -> &Path
pub fn open_config(config: &Config) -> Result<Self>
pub fn migrate(path: &Path) -> Result<SchemaStatus>
pub fn migration_check(path: &Path) -> Result<SchemaStatus>
pub fn set_context(&mut self, commit_sha: &str, worktree_id: &str) -> Result<()>
pub fn rebuild(config: &Config) -> Result<Self>
pub fn rebuild_with_progress<F>(config: &Config, progress: F) -> Result<Self>where
F: FnMut(IndexProgress),
pub fn index_changed(config: &Config) -> Result<Self>
pub fn index_changed_with_progress<F>(
config: &Config,
progress: F,
) -> Result<Self>where
F: FnMut(IndexProgress),
pub fn index_discover(config: &Config) -> Result<Self>
pub fn index_discover_with_progress<F>(
config: &Config,
progress: F,
) -> Result<Self>where
F: FnMut(IndexProgress),
pub fn index_targets(&self, config: &Config) -> Result<()>
pub fn status(&self, database: &Path) -> Result<IndexStatus>
pub fn storage_status(&self) -> Result<StorageStatus>
pub fn discovery_status(&self, config: &Config) -> Result<DiscoveryStatus>
pub fn search( &self, query: &str, limit: u32, include_generated: bool, ) -> Result<Vec<SearchHit>>
pub fn search_explain( &self, query: &str, limit: u32, include_generated: bool, ) -> Result<Vec<SearchHit>>
pub fn search_with_graph_meta( &self, query: &str, limit: u32, include_generated: bool, graph_mode: GraphMetaMode, graph_limit: u32, ) -> Result<Vec<SearchHit>>
pub fn search_with_graph_meta_options( &self, query: &str, limit: u32, include_generated: bool, graph_mode: GraphMetaMode, graph_limit: u32, options: SearchOptions, ) -> Result<Vec<SearchHit>>
pub fn search_explain_with_graph_meta( &self, query: &str, limit: u32, include_generated: bool, graph_mode: GraphMetaMode, graph_limit: u32, ) -> Result<Vec<SearchHit>>
pub fn search_explain_with_graph_meta_options( &self, query: &str, limit: u32, include_generated: bool, graph_mode: GraphMetaMode, graph_limit: u32, options: SearchOptions, ) -> Result<Vec<SearchHit>>
pub fn symbols( &self, name: &str, language: Option<Language>, limit: u32, ) -> Result<Vec<SymbolHit>>
pub fn symbol_candidates( &self, selector: &SymbolSelector, ) -> Result<SymbolLookup>
pub fn select_symbol( &self, selector: &SymbolSelector, ) -> Result<Result<Option<SymbolHit>, SymbolDisambiguation>>
pub fn read_chunk(&self, chunk_id: i64) -> Result<Option<ReadChunk>>
pub fn read_chunk_with_graph( &self, chunk_id: i64, graph_mode: GraphMetaMode, graph_limit: u32, ) -> Result<Option<ReadChunk>>
pub fn read_chunk_with_graph_and_memories( &self, chunk_id: i64, graph_mode: GraphMetaMode, graph_limit: u32, include_memories: bool, ) -> Result<Option<ReadChunk>>
pub fn search_hash_baseline( &self, query: &str, limit: u32, include_generated: bool, ) -> Result<Vec<SearchHit>>
pub fn docs_for_symbol( &self, symbol: &str, limit: u32, ) -> Result<Vec<SearchHit>>
pub fn docs_for_selected_symbol( &self, symbol: &SymbolHit, limit: u32, ) -> Result<Vec<SearchHit>>
pub fn commit_search( &self, query: &str, limit: u32, ) -> Result<Vec<CommitSearchHit>>
pub fn git_history_for_path( &self, path: &str, limit: u32, ) -> Result<Vec<PathHistoryItem>>
pub fn git_history_for_symbol( &self, symbol: &str, language: Option<Language>, limit: u32, ) -> Result<Vec<SymbolHistoryItem>>
pub fn commits_touching_query( &self, query: &str, limit: u32, ) -> Result<Vec<QueryCommitHit>>
pub fn git_blame_chunk( &self, chunk_id: i64, ) -> Result<Option<ChunkBlameSummary>>
pub fn github_sync_from_refs(&self, offline: bool) -> Result<GitHubSyncReport>
pub fn github_sync_from_refs_with_progress( &self, offline: bool, progress: impl FnMut(GitHubSyncProgress), ) -> Result<GitHubSyncReport>
pub fn github_sync_issue( &self, issue_ref: &str, offline: bool, ) -> Result<GitHubSyncReport>
pub fn github_issue_search( &self, query: &str, limit: u32, ) -> Result<Vec<GitHubEvidence>>
pub fn rationale_search( &self, query: &str, limit: u32, ) -> Result<Vec<GitHubEvidence>>
pub fn github_refs_for_path( &self, path: &str, limit: u32, ) -> Result<Vec<GitHubRef>>
pub fn github_sync_status(&self) -> Result<GitHubStatus>
pub fn papertrail_for_chunk( &self, chunk_id: i64, limit: u32, ) -> Result<Option<Papertrail>>
pub fn papertrail_for_symbol( &self, symbol: &str, language: Option<Language>, limit: u32, ) -> Result<Option<Papertrail>>
pub fn papertrail_for_selected_symbol( &self, symbol: &SymbolHit, limit: u32, ) -> Result<Papertrail>
pub fn papertrail_for_commit( &self, commit_hash: &str, limit: u32, ) -> Result<Papertrail>
pub fn local_ai_status(&self) -> Result<LocalAiStatus>
pub fn list_models(&self) -> Result<Vec<ModelInfo>>
pub fn install_model(&self, model_id: &str) -> Result<ModelInfo>
pub fn reconcile( &self, limit: Option<u32>, batch_size: Option<u32>, ) -> Result<ReconcileReport>
pub fn reconcile_plan(&self) -> Result<ReconcilePlan>
pub fn reconcile_with_progress( &self, limit: Option<u32>, batch_size: Option<u32>, force: bool, progress: impl FnMut(ReconcileProgress), ) -> Result<ReconcileReport>
pub fn reconcile_with_options_progress( &self, options: ReconcileOptions, progress: impl FnMut(ReconcileProgress), ) -> Result<ReconcileReport>
pub fn current_embedding_count(&self, model_id: &str) -> Result<u64>
pub fn heal_index(&self, limit: Option<u32>) -> Result<HealIndexReport>
pub fn ffi_surface(&self, limit: u32) -> Result<Vec<ImpactItem>>
pub fn find_callers(&self, symbol: &str, limit: u32) -> Result<Vec<GraphHop>>
pub fn find_callers_with_options( &self, symbol: &str, limit: u32, options: &GraphTraversalOptions, ) -> Result<Vec<GraphHop>>
pub fn trace_callees(&self, symbol: &str, limit: u32) -> Result<Vec<GraphHop>>
pub fn trace_callees_with_options( &self, symbol: &str, limit: u32, options: &GraphTraversalOptions, ) -> Result<Vec<GraphHop>>
pub fn graph_traversal_report( &self, tool: &str, symbol: &SymbolHit, reverse: bool, limit: u32, options: &GraphTraversalOptions, ) -> Result<GraphTraversalReport>
pub fn compare_graph_to_text( &self, symbol: &SymbolHit, pattern: &str, limit: u32, options: &GraphTraversalOptions, include_tests: bool, ) -> Result<CompareGraphTextReport>
pub fn impact_surface(&self, query: &str, limit: u32) -> Result<Vec<ImpactItem>>
pub fn impact_surface_with_options( &self, query: &str, limit: u32, resolution_mode: GraphResolutionMode, ) -> Result<Vec<ImpactItem>>
pub fn impact_surface_for_selected_symbol( &self, symbol: &SymbolHit, limit: u32, resolution_mode: GraphResolutionMode, ) -> Result<Vec<ImpactItem>>
pub fn impact_surface_report_for_selected_symbol( &self, symbol: &SymbolHit, limit: u32, options: &ImpactSurfaceOptions, ) -> Result<ImpactSurfaceReport>
pub fn repo_brief(&self, options: RepoBriefOptions) -> Result<RepoBrief>
pub fn memory_create( &self, request: RepoMemoryCreate, ) -> Result<RepoMemoryCreateResult>
pub fn memory_update(&self, update: RepoMemoryUpdate) -> Result<RepoMemory>
pub fn memory_mark_obsolete(&self, memory_id: &str) -> Result<RepoMemory>
pub fn memory_search(&self, query: &str, limit: u32) -> Result<Vec<RepoMemory>>
pub fn memory_for_symbol( &self, symbol: &SymbolHit, limit: u32, ) -> Result<Vec<RepoMemory>>
pub fn memory_for_path(&self, path: &str, limit: u32) -> Result<Vec<RepoMemory>>
pub fn memory_for_edges( &self, edge_ids: &[i64], limit: u32, ) -> Result<Vec<RepoMemory>>
pub fn memory_evidence_for_symbol_and_edges( &self, symbol: &SymbolHit, edge_ids: &[i64], limit: u32, ) -> Result<RepoMemoryEvidence>
pub fn memory_for_call_path_hash( &self, edge_sequence_hash: &str, limit: u32, ) -> Result<Vec<RepoMemory>>
pub fn memory_validate(&self) -> Result<RepoMemoryValidationReport>
pub fn rebuild_fts(&self) -> Result<()>
pub fn sync_fts(&self) -> Result<()>
pub fn heal_file(&self, path: &Path) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IndexDatabase
impl !RefUnwindSafe for IndexDatabase
impl !Sync for IndexDatabase
impl !UnwindSafe for IndexDatabase
impl Send for IndexDatabase
impl Unpin for IndexDatabase
impl UnsafeUnpin for IndexDatabase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more