//! Postgres row decoding helper that dispatches to the correct FromRow method.
use FromRow;
use crateDbCoreError;
/// Decodes a Postgres row using the correct [`FromRow`] method for the active `orm-core` feature set.
///
/// When `postgres` is combined with `libsql` or `rusqlite` on this crate, [`FromRow`] exposes
/// `from_pg_row` instead of `from_row`.
///
/// # Errors
///
/// Returns [`DbCoreError::RowMapping`] when the row cannot be decoded into `T`.