RawDbHandle

Trait RawDbHandle 

Source
pub trait RawDbHandle: Send + Sync {
    // Required method
    fn raw_write_handle<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<*mut sqlite3, DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Access to the host’s raw write connection, which the session extension attaches to. The same connection the host writes through.

Required Methods§

Source

fn raw_write_handle<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<*mut sqlite3, DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Acquire the raw sqlite3 write connection pointer the session extension attaches to. The same connection the host writes through.

§Safety

The pointer must outlive all sync sessions; the caller serializes session operations on it.

Implementors§