pub struct Db {
conn: Mutex<Connection>,
}Fields§
§conn: Mutex<Connection>Implementations§
Source§impl Db
impl Db
Sourcepub fn open(path: &Path) -> Result<Self>
pub fn open(path: &Path) -> Result<Self>
Creates parent dirs; enables WAL + FK before migrations.
Sourcepub fn open_in_memory() -> Result<Self>
pub fn open_in_memory() -> Result<Self>
In-memory SQLite for integration tests; trivial wrapper around
Connection::open_in_memory() exposed as a public API so
integration tests under tests/ can construct an isolated Db.
fn conn(&self) -> Result<MutexGuard<'_, Connection>>
pub fn tokens(&self) -> Tokens<'_>
pub fn probe_failures(&self) -> ProbeFailures<'_>
Sourcepub fn revocations(&self) -> Revocations<'_>
pub fn revocations(&self) -> Revocations<'_>
Hard state.
pub fn quarantined_closures(&self) -> QuarantinedClosures<'_>
pub fn rollouts(&self) -> Rollouts<'_>
pub fn dispatch_queue(&self) -> DispatchQueue<'_>
pub fn event_log(&self) -> EventLog<'_>
pub fn host_rollout_records(&self) -> HostRolloutRecords<'_>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Db
impl RefUnwindSafe for Db
impl Send for Db
impl Sync for Db
impl Unpin for Db
impl UnwindSafe for Db
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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