Skip to content

Commit eb086d3

Browse files
committed
export Bytes type through DataRowBody::storage_bytes method.
1 parent 4bae134 commit eb086d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

postgres-protocol/src/message/backend.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,11 @@ impl DataRowBody {
544544
pub fn buffer(&self) -> &[u8] {
545545
&self.storage
546546
}
547+
548+
#[inline]
549+
pub fn storage_bytes(&self) -> &Bytes {
550+
&self.storage
551+
}
547552
}
548553

549554
pub struct DataRowRanges<'a> {

0 commit comments

Comments
 (0)