pub struct Db { /* private fields */ }Implementations§
Source§impl Db
impl Db
pub fn new(driver: impl Driver) -> Self
pub fn with_clock(self, clock: Clock) -> Self
Sourcepub fn sharing_arrivals(self, other: &Db) -> Self
pub fn sharing_arrivals(self, other: &Db) -> Self
Wakes, hooks and screens of other then see this one’s commits as their own.
pub fn with_signing_keys(self, keys: Arc<SigningKeys>) -> Self
pub fn clock(&self) -> Clock
pub fn read(&self) -> Read
pub fn schema(&self) -> Schema<'_>
Sourcepub async fn commit(&self, outcome: &mut dyn Outcome) -> Result<()>
pub async fn commit(&self, outcome: &mut dyn Outcome) -> Result<()>
Opens no transaction when there is nothing to write.
Sourcepub async fn commit_with(
&self,
outcome: &mut dyn Outcome,
steps: Vec<Step>,
reach: Reach,
) -> Result<()>
pub async fn commit_with( &self, outcome: &mut dyn Outcome, steps: Vec<Step>, reach: Reach, ) -> Result<()>
steps run first; nothing is written when it would reach a record beyond reach.
pub async fn ping(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Db
impl !UnwindSafe for Db
impl Freeze for Db
impl Send for Db
impl Sync for Db
impl Unpin for Db
impl UnsafeUnpin 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