Skip to main content

cancel_auto_extension

Function cancel_auto_extension 

Source
pub fn cancel_auto_extension<F>(extension: F) -> bool
where F: Fn(&mut SqliteConnection) -> QueryResult<()> + Sync + 'static,
Available on crate feature __sqlite-shared only.
Expand description

Removes a previously registered auto-extension, returning true if it was found (docs).

Pass the same fn item given to register_auto_extension. A closure cannot be cancelled this way, because its type cannot be named again. Use reset_auto_extension to clear everything instead.