MCPcopy Create free account
hub / github.com/actix/examples / get_customer_data

Function get_customer_data

databases/mysql/src/persistence.rs:174–180  ·  view source on GitHub ↗
(pool: &mysql::Pool)

Source from the content-addressed store, hash-verified

172}
173
174pub fn get_customer_data(pool: &mysql::Pool) -> Result<CustomerResponseData, PersistenceError> {
175 let mut conn = pool.get_conn()?;
176
177 Ok(CustomerResponseData {
178 customer_data: select_customer_details(&mut conn)?,
179 })
180}
181
182/// Insert data into the database table `bank_details`.
183fn insert_bank_data(

Callers 1

get_customerFunction · 0.85

Calls 1

select_customer_detailsFunction · 0.85

Tested by

no test coverage detected