Table of Contents

Property DatabaseName

Namespace
Qavren.Edge.Sqlite
Assembly
Qavren.Edge.Sqlite.dll

DatabaseName

File name under Directory. :memory: is allowed.

public string DatabaseName { get; set; }

Property Value

string

Remarks

:memory: is one in-memory database per registration, shared by every connection the database opens and kept until the container is disposed - not SQLite's own :memory:, which is a new, empty database for each connection. It has no file, so Directory, JournalMode and Pooling do not apply to it, and it has no write-ahead log: a connection that has started writing holds every other connection out, readers included, until it commits, and they wait on BusyTimeout. Code that reads through a second connection while its own transaction is still open on the first works against a file in WAL mode and times out here.