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

Function get

chirpstack/src/storage/user.rs:76–83  ·  view source on GitHub ↗
(id: &Uuid)

Source from the content-addressed store, hash-verified

74}
75
76pub async fn get(id: &Uuid) -> Result<User, Error> {
77 let u = user::dsl::user
78 .find(&fields::Uuid::from(id))
79 .first(&mut get_async_db_conn().await?)
80 .await
81 .map_err(|e| Error::from_diesel(e, id.to_string()))?;
82 Ok(u)
83}
84
85pub async fn get_by_email(email: &str) -> Result<User, Error> {
86 let u = user::dsl::user

Callers 15

setupFunction · 0.70
pg_establish_connectionFunction · 0.70
create_deploymentFunction · 0.70
get_schedulable_jobsFunction · 0.70
get_max_fragment_sizeFunction · 0.70
get_multicast_timeoutFunction · 0.70
test_userFunction · 0.70
setupFunction · 0.50
handle_down_commandFunction · 0.50
pg_establish_connectionFunction · 0.50
set_downlink_frameMethod · 0.50

Calls 2

to_stringMethod · 0.80
get_async_db_connFunction · 0.70

Tested by 15

test_userFunction · 0.56
test_update_uplink_listFunction · 0.40
test_update_filter_listFunction · 0.40
test_update_relay_confFunction · 0.40
test_fnsFunction · 0.40
test_snsFunction · 0.40
run_testFunction · 0.40