MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / program

Method program

crates/engine/src/relational_db.rs:447–449  ·  view source on GitHub ↗

Obtain the module associated with this database. `None` if the database is not yet fully initialized. Note that a `Some` result may yield an empty slice.

(&self)

Source from the content-addressed store, hash-verified

445 /// `None` if the database is not yet fully initialized.
446 /// Note that a `Some` result may yield an empty slice.
447 pub fn program(&self) -> Result<Option<Program>, DBError> {
448 Ok(self.with_read_only(Workload::Internal, |tx| self.inner.program(tx))?)
449 }
450
451 /// Read the set of clients currently connected to the database.
452 pub fn connected_clients(&self) -> Result<ConnectedClients, DBError> {

Callers 1

try_initMethod · 0.45

Calls 2

with_read_onlyMethod · 0.80
OkFunction · 0.50

Tested by

no test coverage detected