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:
John Gallagher
2015-02-06 20:07:23 -05:00
parent 4ca7b4964f
commit 1dc78b66da
3 changed files with 32 additions and 17 deletions

View File

@@ -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
}