Skip to main content

open_db

Function open_db 

Source
pub fn open_db(path: &Path) -> Result<Connection>
Expand description

Owned MemoryDb connection helper. Used by services to spawn the worker without exposing the raw Connection.

pipeline.db is a rebuildable job-queue cache — on network filesystems we use the per-host sibling (pipeline.h-<host>.db) so old binaries that would flip a shared DB back to WAL cannot corrupt the no-WAL invariant. Each host starts fresh; the pipeline rebuilds state from durable stores on next run.