pub struct Db { /* private fields */ }Implementations§
Source§impl Db
impl Db
pub fn open() -> Result<Self>
pub fn migrate(&self) -> Result<()>
pub fn record_message(&self, record: MessageRecord<'_>) -> Result<i64>
pub fn record_cli( &self, ts_utc: DateTime<Utc>, bin: &str, argv_json: &str, exit_code: Option<i64>, duration_ms: Option<i64>, host: &str, ) -> Result<i64>
pub fn record_crash( &self, ts_utc: DateTime<Utc>, kind: &str, agent: &str, detail_json: &str, ) -> Result<i64>
pub fn record_tick( &self, ts_utc: DateTime<Utc>, source: &str, detail_json: &str, ) -> Result<i64>
pub fn record_workspace( &self, ts_utc_created: DateTime<Utc>, name: &str, branch: &str, ts_utc_deleted: Option<DateTime<Utc>>, verdict: Option<&str>, ) -> Result<i64>
pub fn record_session( &self, ts_utc: DateTime<Utc>, agent: &str, session_num: i64, event: SessionEvent, ) -> Result<i64>
Auto Trait Implementations§
impl !Freeze for Db
impl !RefUnwindSafe for Db
impl Send for Db
impl !Sync for Db
impl Unpin for Db
impl UnsafeUnpin for Db
impl !UnwindSafe for Db
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