pub struct SqliteStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl GraphStore for SqliteStore
impl GraphStore for SqliteStore
fn replace_graph(&self, nodes: &[GraphNode], edges: &[GraphEdge]) -> Result<()>
fn node_type_stats(&self) -> Result<HashMap<String, TypeStats>>
fn edge_type_stats(&self) -> Result<HashMap<String, TypeStats>>
fn node_by_id(&self, id: &str) -> Result<Option<GraphNode>>
fn neighbors( &self, node: &str, limit: usize, ) -> Result<(Vec<GraphNode>, Vec<GraphEdge>)>
fn shortest_path( &self, from: &str, to: &str, max_depth: usize, ) -> Result<Vec<GraphEdge>>
fn nodes_by_type( &self, node_type: GraphNodeType, limit: usize, offset: usize, ) -> Result<Vec<GraphNode>>
fn all_graph_nodes(&self) -> Result<Vec<GraphNode>>
fn edges_by_type( &self, edge_type: GraphEdgeType, limit: usize, offset: usize, ) -> Result<Vec<GraphEdge>>
fn graph_counts(&self) -> Result<GraphCounts>
fn graph_schema_counts(&self) -> Result<GraphSchemaCounts>
fn graph_edges_between( &self, from: &str, to: &str, limit: usize, ) -> Result<Vec<GraphEdge>>
Source§impl HistoryStore for SqliteStore
impl HistoryStore for SqliteStore
fn put_history_snapshot(&self, snapshot: &HistorySnapshot) -> Result<()>
fn history_for_file(&self, path: &Path, limit: usize) -> Result<HistorySummary>
fn provenance_for_path( &self, path: &Path, limit: usize, ) -> Result<FileProvenance>
fn churn_for_file(&self, path: &Path) -> Result<ChurnSummary>
fn churn_for_module(&self, module: &Path) -> Result<ChurnSummary>
fn churn_for_symbol(&self, symbol_id: &SymbolId) -> Result<ChurnSummary>
fn provenance_for_symbol( &self, symbol_id: &SymbolId, limit: usize, ) -> Result<SymbolProvenance>
fn similar_changes( &self, query: &SimilarChangeQuery, limit: usize, ) -> Result<SimilarChangeReport>
fn cochange_neighbors( &self, path: &Path, limit: usize, ) -> Result<Vec<GitCochangeEdge>>
fn recent_commits(&self, limit: usize) -> Result<Vec<GitCommitRecord>>
fn history_score_components( &self, query: &HistorySignalQuery, limit: usize, ) -> Result<HistorySignalSummary, OkError>
Source§impl MetadataStore for SqliteStore
impl MetadataStore for SqliteStore
fn initialize(&self) -> Result<()>
fn put_manifest(&self, manifest: &IndexManifest) -> Result<()>
fn manifest(&self) -> Result<Option<IndexManifest>>
fn replace_index(&self, data: IndexData<'_>) -> Result<()>
fn replace_files_index(&self, update: PartialIndexUpdate<'_>) -> Result<()>
fn list_files(&self, limit: usize, offset: usize) -> Result<Vec<File>>
fn get_file_by_path(&self, path: &Path) -> Result<Option<File>>
fn list_symbols( &self, query: Option<&str>, limit: usize, offset: usize, ) -> Result<Vec<Symbol>>
fn symbol_by_id(&self, id: &SymbolId) -> Result<Option<Symbol>>
fn chunks_for_file(&self, file_id: &FileId) -> Result<Vec<CodeChunk>>
fn all_chunks(&self) -> Result<Vec<CodeChunk>>
fn tests(&self) -> Result<Vec<TestTarget>>
fn imports(&self) -> Result<Vec<Import>>
fn analysis_facts( &self, source_type: Option<EvidenceSourceType>, limit: usize, ) -> Result<Vec<AnalysisFact>>
fn references_for_symbol( &self, id: &SymbolId, limit: usize, ) -> Result<Vec<SymbolOccurrence>>
fn occurrences_for_file( &self, file_id: &FileId, ) -> Result<Vec<SymbolOccurrence>>
fn symbols_for_file(&self, file_id: &FileId) -> Result<Vec<Symbol>>
fn find_chunks_containing( &self, query: &str, limit: usize, ) -> Result<Vec<CodeChunk>>
fn find_files_by_path_pattern(&self, pattern: &str) -> Result<Vec<File>>
fn tests_for_files(&self, file_ids: &[FileId]) -> Result<Vec<TestTarget>>
Auto Trait Implementations§
impl !Freeze for SqliteStore
impl RefUnwindSafe for SqliteStore
impl Send for SqliteStore
impl Sync for SqliteStore
impl Unpin for SqliteStore
impl UnsafeUnpin for SqliteStore
impl UnwindSafe for SqliteStore
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