pub struct UnifiedGraphStore {
pub codebase_path: PathBuf,
pub db_path: PathBuf,
pub backend_kind: BackendKind,
/* private fields */
}Fields§
§codebase_path: PathBuf§db_path: PathBuf§backend_kind: BackendKindImplementations§
Source§impl UnifiedGraphStore
impl UnifiedGraphStore
pub async fn insert_symbol(&self, symbol: &Symbol) -> Result<SymbolId>
pub async fn insert_reference(&self, reference: &Reference) -> Result<()>
pub async fn query_symbols(&self, name: &str) -> Result<Vec<Symbol>>
pub async fn get_symbol(&self, _id: SymbolId) -> Result<Symbol>
pub async fn symbol_exists(&self, id: SymbolId) -> Result<bool>
pub async fn query_references( &self, symbol_id: SymbolId, ) -> Result<Vec<Reference>>
pub async fn get_all_symbols(&self) -> Result<Vec<Symbol>>
pub async fn symbol_count(&self) -> Result<usize>
pub async fn index_cross_file_references(&self) -> Result<usize>
pub async fn query_references_for_symbol( &self, symbol_name: &str, ) -> Result<Vec<Reference>>
Source§impl UnifiedGraphStore
impl UnifiedGraphStore
pub async fn open( codebase_path: impl AsRef<Path>, backend_kind: BackendKind, ) -> Result<Self>
pub async fn open_with_path( codebase_path: impl AsRef<Path>, db_path: impl AsRef<Path>, backend_kind: BackendKind, ) -> Result<Self>
pub fn backend_kind(&self) -> BackendKind
pub fn db_path(&self) -> &Path
pub fn is_connected(&self) -> bool
pub fn needs_indexing(&self) -> bool
Trait Implementations§
Source§impl Clone for UnifiedGraphStore
impl Clone for UnifiedGraphStore
Auto Trait Implementations§
impl !Freeze for UnifiedGraphStore
impl RefUnwindSafe for UnifiedGraphStore
impl Send for UnifiedGraphStore
impl Sync for UnifiedGraphStore
impl Unpin for UnifiedGraphStore
impl UnsafeUnpin for UnifiedGraphStore
impl UnwindSafe for UnifiedGraphStore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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