From eb086d30a30bb402daddd29cbd53bfcfc9c00a7f Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Fri, 24 Feb 2023 09:56:05 +0800 Subject: [PATCH] export Bytes type through DataRowBody::storage_bytes method. --- postgres-protocol/src/message/backend.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/postgres-protocol/src/message/backend.rs b/postgres-protocol/src/message/backend.rs index e0eacbea..2b245101 100644 --- a/postgres-protocol/src/message/backend.rs +++ b/postgres-protocol/src/message/backend.rs @@ -544,6 +544,11 @@ impl DataRowBody { pub fn buffer(&self) -> &[u8] { &self.storage } + + #[inline] + pub fn storage_bytes(&self) -> &Bytes { + &self.storage + } } pub struct DataRowRanges<'a> {