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

Method get_by_name

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

Fetch an object by name within an object type.

(
        &self,
        object_type: &str,
        name: &str,
    )

Source from the content-addressed store, hash-verified

285
286 /// Fetch an object by name within an object type.
287 pub async fn get_by_name(
288 &self,
289 object_type: &str,
290 name: &str,
291 ) -> PersistenceResult<Option<ObjectRecord>> {
292 store_dispatch!(self.get_by_name(object_type, name))
293 }
294
295 /// Delete an object by id.
296 pub async fn delete(&self, object_type: &str, id: &str) -> PersistenceResult<bool> {

Callers 7

load_settings_recordFunction · 0.45
save_settings_recordFunction · 0.45
get_message_by_nameMethod · 0.45
sqlite_get_by_nameFunction · 0.45

Calls

no outgoing calls

Tested by 2

sqlite_get_by_nameFunction · 0.36