Skip to main content

layer_in_memory

Function layer_in_memory 

Source
pub async fn layer_in_memory() -> Result<(Layer, SqliteStore)>
Expand description

Build a session layer backed by an in-memory SQLite database, for tests. The pool below uses a single connection, so the in-memory database lives exactly as long as the returned SqliteStore (i.e. the whole test).