Ensure Virtual tables can be declared outside rusqlite crate

Not sure it is the way to go.
This commit is contained in:
gwenn
2018-07-14 11:01:19 +02:00
parent ce39b9a3c0
commit 823f3c96aa
5 changed files with 149 additions and 17 deletions

View File

@@ -216,12 +216,12 @@ impl error::Error for Error {
}
}
// These are public but not re-exported by lib.rs, so only visible within crate.
pub fn error_from_sqlite_code(code: c_int, message: Option<String>) -> Error {
Error::SqliteFailure(ffi::Error::new(code), message)
}
// These are public but not re-exported by lib.rs, so only visible within crate.
pub fn error_from_handle(db: *mut ffi::sqlite3, code: c_int) -> Error {
let message = if db.is_null() {
None