Skip to content

Case

SQLiteConnection.Storage.memory

An SQLite database stored entirely in memory.
case memory

Discussion

In-memory databases persist only so long as the connection to them is open, and are not shared between processes. In addition, because this package builds the sqlite3 amalgamation with the recommended SQLITE_OMIT_SHARED_CACHE option, it is not possible to open multiple connections to a single in-memory database; use a temporary file instead.

In-memory databases are useful for unit testing or caching purposes.