Function tx_get_all

Source
pub async fn tx_get_all<T>(
    transaction: Transaction<'_>,
    params: T,
) -> Result<(Transaction<'_>, Vec<T>), Error>
where T: SqlQuery<T> + FromRow + SqlParams + Send + Sync + 'static,
👎Deprecated since 0.2.0: Renamed to tx_fetch_all. Please use tx_fetch_all function instead.
Expand description

Retrieves multiple records within a transaction.

§Deprecated

This function has been renamed to tx_fetch_all. Please use tx_fetch_all instead.

§Arguments

  • transaction - An active transaction
  • params - Data object containing query parameters (must implement SqlQuery, FromRow, and SqlParams traits)

§Return Value

  • Result<(Transaction<'_>, Vec<T>), Error> - On success, returns the transaction and a vector of records