pub struct NativeWriter { /* private fields */ }Expand description
原生 SQLite 写入器
Implementations§
Source§impl NativeWriter
impl NativeWriter
Source§impl NativeWriter
impl NativeWriter
Sourcepub async fn allocate_page(&self) -> Result<u32, DsError>
pub async fn allocate_page(&self) -> Result<u32, DsError>
分配一个新页面 (优先从 FreeList 获取)
Source§impl NativeWriter
impl NativeWriter
Source§impl NativeWriter
impl NativeWriter
Sourcepub async fn checkpoint(&self) -> Result<(), DsError>
pub async fn checkpoint(&self) -> Result<(), DsError>
执行 WAL Checkpoint,将 WAL 中的页面同步回主数据库
Auto Trait Implementations§
impl Freeze for NativeWriter
impl RefUnwindSafe for NativeWriter
impl Send for NativeWriter
impl Sync for NativeWriter
impl Unpin for NativeWriter
impl UnwindSafe for NativeWriter
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