MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / is_single_replica

Method is_single_replica

crates/openshell-server/src/persistence/mod.rs:171–173  ·  view source on GitHub ↗

Returns `true` for single-replica backends (`SQLite`) where no lease coordination is needed, `false` for multi-replica backends (`Postgres`).

(&self)

Source from the content-addressed store, hash-verified

169 /// Returns `true` for single-replica backends (`SQLite`) where no lease
170 /// coordination is needed, `false` for multi-replica backends (`Postgres`).
171 pub fn is_single_replica(&self) -> bool {
172 matches!(self, Self::Sqlite(_))
173 }
174
175 /// Connect to a persistence store based on the database URL.
176 pub async fn connect(url: &str) -> CoreResult<Self> {

Callers 1

spawn_watchersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected