Session extension (#459)

Session extension bindings
This commit is contained in:
gwenn
2019-01-13 12:46:19 +01:00
committed by GitHub
parent f6a4feecea
commit dbc4eef657
11 changed files with 996 additions and 116 deletions

View File

@@ -290,3 +290,12 @@ pub fn error_from_handle(db: *mut ffi::sqlite3, code: c_int) -> Error {
};
error_from_sqlite_code(code, message)
}
macro_rules! check {
($funcall:expr) => {{
let rc = $funcall;
if rc != crate::ffi::SQLITE_OK {
Err(crate::error::error_from_sqlite_code(rc, None))?;
}
}};
}