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

Function get_device_count

chirpstack/src/storage/fuota.rs:517–527  ·  view source on GitHub ↗
(fuota_deployment_id: Uuid)

Source from the content-addressed store, hash-verified

515}
516
517pub async fn get_device_count(fuota_deployment_id: Uuid) -> Result<i64, Error> {
518 fuota_deployment_device::dsl::fuota_deployment_device
519 .select(dsl::count_star())
520 .filter(
521 fuota_deployment_device::dsl::fuota_deployment_id
522 .eq(fields::Uuid::from(fuota_deployment_id)),
523 )
524 .first(&mut get_async_db_conn().await?)
525 .await
526 .map_err(|e| Error::from_diesel(e, "".into()))
527}
528
529pub async fn set_device_timeout_error(
530 fuota_deployment_id: Uuid,

Callers 3

list_devicesMethod · 0.50
list_devicesMethod · 0.50
list_devicesMethod · 0.50

Calls 2

get_async_db_connFunction · 0.70
intoMethod · 0.45

Tested by

no test coverage detected