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

Function get_vendor_count

chirpstack/src/storage/device_profile.rs:567–572  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

565}
566
567pub async fn get_vendor_count() -> Result<i64, Error> {
568 Ok(device_profile_vendor::table
569 .select(dsl::count_star())
570 .first(&mut get_async_db_conn().await?)
571 .await?)
572}
573
574pub async fn list_vendors(limit: i64, offset: i64) -> Result<Vec<Vendor>, Error> {
575 Ok(device_profile_vendor::table

Callers 1

list_vendorsMethod · 0.85

Calls 1

get_async_db_connFunction · 0.70

Tested by

no test coverage detected