pub struct AutoincrementLedger { /* private fields */ }Expand description
Ledger for autoincrement values, used by tables with autoincrement columns.
Implementations§
Source§impl AutoincrementLedger
impl AutoincrementLedger
Sourcepub fn init<TS>(page: Page, mm: &mut impl MemoryAccess) -> MemoryResult<Self>where
TS: TableSchema,
pub fn init<TS>(page: Page, mm: &mut impl MemoryAccess) -> MemoryResult<Self>where
TS: TableSchema,
Initialize the AutoincrementLedger for the given table schema, and write it to the given page.
Each autoincrement column in the table schema will be initialized in the registry with the appropriate zero value.
Sourcepub fn load(page: Page, mm: &mut impl MemoryAccess) -> MemoryResult<Self>
pub fn load(page: Page, mm: &mut impl MemoryAccess) -> MemoryResult<Self>
Load the AutoincrementLedger from the given page.
Sourcepub fn next(
&mut self,
column: &str,
mm: &mut impl MemoryAccess,
) -> MemoryResult<Value>
pub fn next( &mut self, column: &str, mm: &mut impl MemoryAccess, ) -> MemoryResult<Value>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoincrementLedger
impl RefUnwindSafe for AutoincrementLedger
impl Send for AutoincrementLedger
impl Sync for AutoincrementLedger
impl Unpin for AutoincrementLedger
impl UnsafeUnpin for AutoincrementLedger
impl UnwindSafe for AutoincrementLedger
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