mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-19 06:18:56 +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:
@@ -163,7 +163,7 @@ mod test {
|
||||
use SqliteConnection;
|
||||
|
||||
fn checked_memory_handle() -> SqliteConnection {
|
||||
let db = SqliteConnection::open(":memory:").unwrap();
|
||||
let db = SqliteConnection::open_in_memory().unwrap();
|
||||
db.execute_batch("CREATE TABLE foo (x INTEGER)").unwrap();
|
||||
db
|
||||
}
|
||||
|
Reference in New Issue
Block a user