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

Function list_vendors

chirpstack/src/storage/device_profile.rs:574–581  ·  view source on GitHub ↗
(limit: i64, offset: i64)

Source from the content-addressed store, hash-verified

572}
573
574pub async fn list_vendors(limit: i64, offset: i64) -> Result<Vec<Vendor>, Error> {
575 Ok(device_profile_vendor::table
576 .order_by(device_profile_vendor::name)
577 .limit(limit)
578 .offset(offset)
579 .load(&mut get_async_db_conn().await?)
580 .await?)
581}
582
583pub async fn get_device_count(filters: &DeviceFilters) -> Result<i64, Error> {
584 let mut q = device_profile_device::table

Callers 2

test_device_profileFunction · 0.85
list_vendorsMethod · 0.85

Calls 1

get_async_db_connFunction · 0.70

Tested by 1

test_device_profileFunction · 0.68