pub async fn select_all<T, F, R>(
transaction: &Transaction<'_>,
entity: T,
to_model: F,
) -> Result<Vec<R>, Error>Expand description
§select_all
Retrieves multiple records from the database within a transaction using a custom transformation function.
§Parameters
transaction: Transaction objectentity: Query parameter object (must implement SqlQuery and SqlParams traits)to_model: Function to convert a Row object to the target object type
§Return Value
Result<Vec<R>, Error>: On success, returns a vector of transformed objects; on failure, returns Error