Skip to main content

Sqlite3Wal

Trait Sqlite3Wal 

Source
pub unsafe trait Sqlite3Wal: Sqlite3Api {
    // Required methods
    unsafe fn wal_checkpoint(
        &self,
        db: NonNull<Self::Db>,
        db_name: Option<&str>,
    ) -> Result<()>;
    unsafe fn wal_checkpoint_v2(
        &self,
        db: NonNull<Self::Db>,
        db_name: Option<&str>,
        mode: i32,
    ) -> Result<(i32, i32)>;
    unsafe fn wal_frame_count(
        &self,
        db: NonNull<Self::Db>,
    ) -> Result<Option<u32>>;
}
Expand description

Optional backend extension for WAL helpers.

§Safety

Implementations must only operate on valid database handles and obey SQLite checkpoint and WAL-state semantics.

Required Methods§

Source

unsafe fn wal_checkpoint( &self, db: NonNull<Self::Db>, db_name: Option<&str>, ) -> Result<()>

Source

unsafe fn wal_checkpoint_v2( &self, db: NonNull<Self::Db>, db_name: Option<&str>, mode: i32, ) -> Result<(i32, i32)>

Source

unsafe fn wal_frame_count(&self, db: NonNull<Self::Db>) -> Result<Option<u32>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§