diff --git a/sqlx-core/src/from_row.rs b/sqlx-core/src/from_row.rs index 7bd835c4..234dd941 100644 --- a/sqlx-core/src/from_row.rs +++ b/sqlx-core/src/from_row.rs @@ -275,6 +275,16 @@ pub trait FromRow<'r, R: Row>: Sized { fn from_row(row: &'r R) -> Result; } +impl<'r, R> FromRow<'r, R> for () +where + R: Row, +{ + #[inline] + fn from_row(_: &'r R) -> Result { + Ok(()) + } +} + // implement FromRow for tuples of types that implement Decode // up to tuples of 9 values