Struct rusqlite::LoadExtensionGuard [] [src]

pub struct LoadExtensionGuard<'conn> { /* fields omitted */ }

RAII guard temporarily enabling SQLite extensions to be loaded.


fn load_my_extension(conn: &Connection) -> Result<()> {
    let _guard = try!(LoadExtensionGuard::new(conn));

    conn.load_extension(Path::new("my_sqlite_extension"), None)


impl<'conn> LoadExtensionGuard<'conn>


Attempt to enable loading extensions. Loading extensions will be disabled when this guard goes out of scope. Cannot be meaningfully nested.

Trait Implementations

impl<'conn> Drop for LoadExtensionGuard<'conn>


Executes the destructor for this type. Read more