Struct libsql_sys::wal::Sqlite3Wal
source · pub struct Sqlite3Wal { /* private fields */ }Expand description
SQLite3 wal implementation
Implementations§
source§impl Sqlite3Wal
impl Sqlite3Wal
pub fn db_file(&mut self) -> &mut Sqlite3File
Trait Implementations§
source§impl Wal for Sqlite3Wal
impl Wal for Sqlite3Wal
source§fn begin_read_txn(&mut self) -> Result<bool>
fn begin_read_txn(&mut self) -> Result<bool>
start a read transaction. Returns whether the in-memory page cache should be invalidated.
fn end_read_txn(&mut self)
source§fn find_frame(&mut self, page_no: NonZeroU32) -> Result<Option<NonZeroU32>>
fn find_frame(&mut self, page_no: NonZeroU32) -> Result<Option<NonZeroU32>>
locate the frame containing page
page_nosource§fn read_frame(&mut self, frame_no: NonZeroU32, buffer: &mut [u8]) -> Result<()>
fn read_frame(&mut self, frame_no: NonZeroU32, buffer: &mut [u8]) -> Result<()>
reads frame
frame_no into buffer.fn db_size(&self) -> u32
fn begin_write_txn(&mut self) -> Result<()>
fn end_write_txn(&mut self) -> Result<()>
fn undo<U: UndoHandler>(&mut self, undo_handler: Option<&mut U>) -> Result<()>
fn savepoint(&mut self, rollback_data: &mut [u32])
fn savepoint_undo(&mut self, rollback_data: &mut [u32]) -> Result<()>
fn insert_frames( &mut self, page_size: c_int, page_headers: &mut PageHeaders, size_after: u32, is_commit: bool, sync_flags: c_int ) -> Result<()>
source§fn checkpoint<B: BusyHandler>(
&mut self,
db: &mut Sqlite3Db,
mode: CheckpointMode,
busy_handler: Option<&mut B>,
sync_flags: u32,
buf: &mut [u8]
) -> Result<(u32, u32)>
fn checkpoint<B: BusyHandler>( &mut self, db: &mut Sqlite3Db, mode: CheckpointMode, busy_handler: Option<&mut B>, sync_flags: u32, buf: &mut [u8] ) -> Result<(u32, u32)>
Returns the number of frames in the log and the number of checkpointed frames in the WAL.
fn exclusive_mode(&mut self, op: c_int) -> Result<()>
fn uses_heap_memory(&self) -> bool
fn set_db(&mut self, db: &mut Sqlite3Db)
source§fn callback(&self) -> i32
fn callback(&self) -> i32
Return the value to pass to a sqlite3_wal_hook callback, the
number of frames in the WAL at the point of the last commit since
sqlite3WalCallback() was called. If no commits have occurred since
the last call, then return 0.
fn last_fame_index(&self) -> u32
impl Send for Sqlite3Wal
Auto Trait Implementations§
impl RefUnwindSafe for Sqlite3Wal
impl !Sync for Sqlite3Wal
impl Unpin for Sqlite3Wal
impl UnwindSafe for Sqlite3Wal
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