MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / get

Function get

chirpstack/src/storage/application.rs:314–321  ·  view source on GitHub ↗
(id: &Uuid)

Source from the content-addressed store, hash-verified

312}
313
314pub async fn get(id: &Uuid) -> Result<Application, Error> {
315 let a = application::dsl::application
316 .find(fields::Uuid::from(id))
317 .first(&mut get_async_db_conn().await?)
318 .await
319 .map_err(|e| Error::from_diesel(e, id.to_string()))?;
320 Ok(a)
321}
322
323pub async fn update(a: Application) -> Result<Application, Error> {
324 a.validate()?;

Callers 1

test_applicationFunction · 0.70

Calls 2

to_stringMethod · 0.80
get_async_db_connFunction · 0.70

Tested by 1

test_applicationFunction · 0.56