mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-19 12:29:34 +08:00
Loadable extension
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
//! Ensure we reject connections when SQLite is in single-threaded mode, as it
|
||||
//! would violate safety if multiple Rust threads tried to use connections.
|
||||
|
||||
use rusqlite::ffi;
|
||||
use rusqlite::Connection;
|
||||
|
||||
#[cfg(not(feature = "loadable_extension"))]
|
||||
#[test]
|
||||
fn test_error_when_singlethread_mode() {
|
||||
use rusqlite::ffi;
|
||||
use rusqlite::Connection;
|
||||
// put SQLite into single-threaded mode
|
||||
unsafe {
|
||||
// Note: macOS system SQLite seems to return an error if you attempt to
|
||||
|
Reference in New Issue
Block a user