pub struct Database { /* private fields */ }Implementations§
Source§impl Database
impl Database
pub fn open(db_path: &Path) -> Result<Self>
pub fn open_in_memory() -> Result<Self>
pub fn insert_or_update_project(&self, project: &ProjectRecord) -> Result<()>
pub fn get_project(&self, hash: &str) -> Result<Option<ProjectRecord>>
pub fn list_projects(&self) -> Result<Vec<ProjectRecord>>
pub fn count_sessions_for_project(&self, project_hash: &str) -> Result<usize>
pub fn insert_or_update_session(&self, session: &SessionRecord) -> Result<()>
pub fn get_session_by_id( &self, session_id: &str, ) -> Result<Option<SessionSummary>>
pub fn list_sessions( &self, project_hash: Option<&ProjectHash>, limit: Option<usize>, ) -> Result<Vec<SessionSummary>>
pub fn find_session_by_prefix(&self, prefix: &str) -> Result<Option<String>>
pub fn insert_or_update_log_file(&self, log_file: &LogFileRecord) -> Result<()>
pub fn get_session_files(&self, session_id: &str) -> Result<Vec<LogFileRecord>>
pub fn get_all_log_files(&self) -> Result<Vec<LogFileRecord>>
pub fn vacuum(&self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for Database
impl !RefUnwindSafe for Database
impl Send for Database
impl !Sync for Database
impl Unpin 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