mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-29 21:08:55 +08:00
SqliteConnection::open takes a std::path.
Add new constructors, `open_in_memory` and `open_in_memory_with_flags`, for opening in-memory databases. Closes #13.
This commit is contained in:
@@ -228,7 +228,7 @@ mod test {
|
||||
use super::time;
|
||||
|
||||
fn checked_memory_handle() -> SqliteConnection {
|
||||
let db = SqliteConnection::open(":memory:").unwrap();
|
||||
let db = SqliteConnection::open_in_memory().unwrap();
|
||||
db.execute_batch("CREATE TABLE foo (b BLOB, t TEXT)").unwrap();
|
||||
db
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user