pub struct Database { /* private fields */ }Implementations§
Source§impl Database
impl Database
pub fn initialize(path: impl AsRef<Path>) -> Result<Self>
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn clear_all(&self) -> Result<()>
pub fn insert_file(&self, file: &FileRecord) -> Result<()>
pub fn insert_nodes(&self, nodes: &[Node]) -> Result<()>
pub fn insert_edges(&self, edges: &[Edge]) -> Result<()>
pub fn insert_unresolved_refs(&self, refs: &[UnresolvedReference]) -> Result<()>
pub fn resolve_references_by_name(&self) -> Result<()>
pub fn edge_count(&self) -> Result<i64>
pub fn stats(&self) -> Result<GraphStats>
pub fn search_nodes( &self, query: &str, options: SearchOptions, ) -> Result<Vec<SearchResult>>
pub fn get_node(&self, id: &str) -> Result<Option<Node>>
pub fn get_nodes_by_name(&self, name: &str, limit: i64) -> Result<Vec<Node>>
pub fn get_all_files(&self) -> Result<Vec<FileRecord>>
pub fn get_nodes_in_file(&self, file_path: &str) -> Result<Vec<Node>>
pub fn get_incoming_edges( &self, node_id: &str, kinds: Option<&[EdgeKind]>, ) -> Result<Vec<Edge>>
pub fn get_outgoing_edges( &self, node_id: &str, kinds: Option<&[EdgeKind]>, ) -> Result<Vec<Edge>>
pub fn get_file_dependents(&self, file_path: &str) -> Result<Vec<String>>
Auto Trait Implementations§
impl !Freeze for Database
impl !RefUnwindSafe for Database
impl Send for Database
impl !Sync for Database
impl Unpin for Database
impl UnsafeUnpin for Database
impl !UnwindSafe for Database
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