Function in_memory_db

Source
pub fn in_memory_db() -> (PathBuf, Connection)
Expand description

Creates an in-memory sqlite connection.

It returns a PathBuf and a Connection. The user should ensure the Connection isn’t dropped until the test completes. If all connections are dropped during the test the entire database might be cleared.