diff --git a/sqlx-mysql/src/raw_value.rs b/sqlx-mysql/src/raw_value.rs index 3c2265e0..0c3a065b 100644 --- a/sqlx-mysql/src/raw_value.rs +++ b/sqlx-mysql/src/raw_value.rs @@ -55,7 +55,7 @@ impl<'r> MySqlRawValue<'r> { self.format } - /// Returns the underlying byte view of this value as a byte slice. + /// Returns the underlying byte view of this value. pub fn as_bytes(&self) -> DecodeResult<&'r [u8]> { self.value.map(|bytes| &**bytes).ok_or(DecodeError::UnexpectedNull) } diff --git a/sqlx-mysql/src/row.rs b/sqlx-mysql/src/row.rs index 7a8e9567..230a396f 100644 --- a/sqlx-mysql/src/row.rs +++ b/sqlx-mysql/src/row.rs @@ -19,7 +19,7 @@ impl MySqlRow { } /// Returns `true` if the row contains only `NULL` values. - fn is_null(&self) -> bool { + pub fn is_null(&self) -> bool { self.values.iter().all(Option::is_some) }