Skip to main content

sqlite_url_is_in_memory

Function sqlite_url_is_in_memory 

Source
pub fn sqlite_url_is_in_memory(url: &str) -> bool
Expand description

True when a SQLite URL points at an in-memory database, in either spelling (sqlite::memory: / sqlite://:memory: or ?mode=memory).

Shared with cognee-components (builtins::database), which must skip filesystem preparation (parent directory creation) for such URLs; keeping one predicate here prevents the layers from diverging on what counts as in-memory.