Skip to main content

is_in_memory_sqlite_path

Function is_in_memory_sqlite_path 

Source
pub fn is_in_memory_sqlite_path(path: &str) -> bool
Expand description

Whether a SQLite path opens a database that lives only in memory for the life of the process. rusqlite enables URI filenames, so the bare :memory: sentinel, file::memory:, and any file:...?mode=memory URI all open a non-durable database that loses its contents on restart and must not be mistaken for a durable store. Durability gates use this to refuse an in-memory path where they would otherwise advertise durable persistence.