ffi_panic_boundary

Function ffi_panic_boundary 

Source
pub fn ffi_panic_boundary<F>(operation: F) -> c_int
where F: FnOnce() -> Result<(), c_int>,
Expand description

Runs an operation behind a panic boundary suitable for the SQLite FFI.

Any panic is translated to SQLITE_INTERNAL, mirroring SQLite’s expectation that FFI callbacks never unwind across the boundary.