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

Function list

chirpstack/src/storage/user.rs:214–222  ·  view source on GitHub ↗
(limit: i64, offset: i64)

Source from the content-addressed store, hash-verified

212}
213
214pub async fn list(limit: i64, offset: i64) -> Result<Vec<User>, Error> {
215 let items = user::dsl::user
216 .order_by(user::dsl::email)
217 .limit(limit)
218 .offset(offset)
219 .load(&mut get_async_db_conn().await?)
220 .await?;
221 Ok(items)
222}
223
224// The output format is documented here:
225// https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md#specification

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