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

Function get_count

chirpstack/src/storage/user.rs:206–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204}
205
206pub async fn get_count() -> Result<i64, Error> {
207 let count = user::dsl::user
208 .select(dsl::count_star())
209 .first(&mut get_async_db_conn().await?)
210 .await?;
211 Ok(count)
212}
213
214pub async fn list(limit: i64, offset: i64) -> Result<Vec<User>, Error> {
215 let items = user::dsl::user

Callers 8

list_api_keysMethod · 0.50
listMethod · 0.50
listMethod · 0.50
listMethod · 0.50
listMethod · 0.50
listMethod · 0.50
listMethod · 0.50
listMethod · 0.50

Calls 1

get_async_db_connFunction · 0.70

Tested by

no test coverage detected