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

Function get

chirpstack/src/storage/tenant.rs:195–202  ·  view source on GitHub ↗
(id: &Uuid)

Source from the content-addressed store, hash-verified

193}
194
195pub async fn get(id: &Uuid) -> Result<Tenant, Error> {
196 let t = tenant::dsl::tenant
197 .find(&fields::Uuid::from(id))
198 .first(&mut get_async_db_conn().await?)
199 .await
200 .map_err(|e| Error::from_diesel(e, id.to_string()))?;
201 Ok(t)
202}
203
204pub async fn get_for_dev_eui(dev_eui: EUI64) -> Result<Tenant, Error> {
205 let t = tenant::dsl::tenant

Callers 3

validateMethod · 0.70
get_dev_addr_prefixesMethod · 0.70
test_tenantFunction · 0.70

Calls 2

to_stringMethod · 0.80
get_async_db_connFunction · 0.70

Tested by 1

test_tenantFunction · 0.56