pub struct DbRef {
pub conn: i64,
pub basis_tx: i64,
pub as_of: Option<i64>,
pub since: Option<i64>,
}Expand description
A destructured db value: which conn, its basis tx, and any temporal bound.
conn is the opaque handle from mentat.store/open. The SQLite backend
keys its store table by it; pg_mentat has exactly one database and uses 1.
Fields§
§conn: i64§basis_tx: i64§as_of: Option<i64>§since: Option<i64>Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbRef
impl RefUnwindSafe for DbRef
impl Send for DbRef
impl Sync for DbRef
impl Unpin for DbRef
impl UnsafeUnpin for DbRef
impl UnwindSafe for DbRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more