pub async fn tx_get_all<'a, T>(
transaction: Transaction<'a>,
params: &T,
) -> Result<(Transaction<'a>, Vec<T>), Error>Expand description
§tx_get_all
Retrieves multiple records within a transaction.
§Parameters
transaction: Active transaction objectparams: Query parameters (must implement SqlQuery, FromRow and SqlParams traits)
§Return Value
Result<(Transaction<'_>, Vec<T>), Error>: On success, returns the transaction and the retrieved records